473,508 Members | 2,335 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQL Fetch Array Error

2 New Member
Hi! I need help please! I have been thrown into having to manage a database/website and have NO idea what I am doing. I'm am a marketing/communications person and have done my best to get this up and running. (Bad split with the original programmer.) I am trying to decipher this error to know where to fix the problem.

Warning: Mysql_Fetch_Array (): supplied argument is not a valid mysql result resource in/Home/Conent/A/C/C/Acce1765/Html/Reports/Boardinfluential.php on line 71

Same error for line 85. Both lines are the ones that start with the word while--at least that's how it appears in Notepad++.

Expand|Select|Wrap|Line Numbers
  1. <li>Board Influential Summary
  2.                 <ul>
  3.                 <?php        
  4.                 $thequeryz = mysql_query("SELECT boardinfluentialtext FROM study_data WHERE clientchoice = '$clientx'");                                                     
  5.                 while ($row = mysql_fetch_array($thequeryz)) {
  6.                 $theinfo = $row['boardinfluentialtext'];
  7.                     if ($theinfo == '' ) {}else{
  8.                     echo '<li>'.$theinfo.'</li>';
  9.                     }
  10.                 } ?>
  11.                  </ul>
  12.                 </li></ul>
  13.  
  14.                 <ul>
  15.                 <li>Board Influential Comments
  16.                 <ul>
  17.                 <?php        
  18.                 $thequeryz = mysql_query("SELECT boardinfluentialtext1 FROM study_data WHERE clientchoice = '$clientx'");                                                     
  19.                 while ($row = mysql_fetch_array($thequeryz)) {
  20.                 $theinfo1 = $row['boardinfluentialtext1'];
  21.                     if ($theinfo1 == '' ) {}else{
  22.                     echo '<li>'.$theinfo1.'</li>';
  23.                     }
  24.                 } ?>
  25.                 </ul>
  26.                 </li></ul>
  27. </div>
  28. <div id="table-2">

Any help would be GREATLY appreciated!!

Thanks!
Jun 9 '11 #1
2 1881
ronverdonk
4,258 Recognized Expert Specialist
Where in your code do you connect to the server and the database?
Jun 9 '11 #2
Rebecca Mace
2 New Member
I link the main site to the database in ewcfg7.php.

I link the subsite, which is where the reports are generated and where this error is generated, in conn.php.
Jun 9 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
8764
by: Sylvie Stone | last post by:
Hi All - I'm doing a fetch_array and I would like to display a "no records found" message to screen. For some reason this is not working: here's my Postgres SQL as proof: surveys=# select...
2
1847
by: Tim Pascoe | last post by:
I'm trying to implement a sorting routine for a string array. The sort routine is from http://ourworld.compuserve.com/homepages/attac-cg/acgsoft.htm (a great selection of routines in the 'Sequence...
6
3539
by: Kinbote | last post by:
Hi, I'm trying to make a function that opens a file, reads it in line by line, puts each line into an malloc'd array, and returns the array. I suspect I'm going about it in an atypical fashion, as...
1
1068
by: nikhilgupta | last post by:
Hi All, I am writing an simple code like this one try { string abc = "new"; } catch(Exception ex)
1
2799
by: yasmine | last post by:
Hi friends, I'm having a table which stores id as comma separated in string datatype. I want to fetch each of the value in a row in the form of array such as follows: table: sid ...
5
3214
by: meeanji | last post by:
Dear friends, I am storing values in Array. My array looks like this:: balu 26 MCA gold -------------> first row of array ...
2
1452
by: teser3 | last post by:
For the below query: ---------- $res = mysql_query("select * from tableOne where clientID='". $_GET."'") or die(mysql_error()); if($inf = mysql_fetch_array($res) ----------------- The return...
2
1985
by: ruckfules99 | last post by:
Can someone tell me what a "Control array error" is and how to fix it? Heres the error i get "Control Array Element "0" Doesn't Exist" And it's with the following code: Private Sub...
3
2289
ddtpmyra
by: ddtpmyra | last post by:
I have two separate query on my PHP mailer and I wonder how can it be possible to call the two queries in one fetch array. #email process starts here require("class.phpmailer.php");...
1
3202
by: BinaryBird | last post by:
Hi, i have a small script to display records from two tables. Table 1 keeps track of teams and table 2 keeps track of the members. <?php $dl = mysql_connect...
0
7224
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7120
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7323
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7039
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5050
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1553
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.