473,660 Members | 2,428 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_Arr ay (): supplied argument is not a valid mysql result resource in/Home/Conent/A/C/C/Acce1765/Html/Reports/Boardinfluentia l.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 1890
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
8787
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 othermore from table where othermore <> ''; othermore ----------- (0 rows)
2
1855
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 Dancing' application), and I thought it would be easy to use. I am looping through a collection of tables and extracting the field names. These are then populated in a list box, to allow users to include custom fields in a data query. The...
6
3548
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 I'm avoiding the use of fscanf and fgets to read in lines. I don't want to have to specify a temporary char* buffer to read in each line, and then have to concern myself with the (remote) possibility of overflows or with increasing the buffer...
1
1074
by: nikhilgupta | last post by:
Hi All, I am writing an simple code like this one try { string abc = "new"; } catch(Exception ex)
1
2810
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 name 2,3,5,7,9... Apple 19,37,46,1... Orange
5
3220
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 amar 27 MBA gold -------------> 2nd row of array raja 28 MSC gold -------------> 3rd row of array
2
1458
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 from this ($inf = mysql_fetch_array($res) looks like this: $inf $inf $inf
2
1992
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 Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) If PicOpponent(Index).BorderStyle = 0 Then For i = 1 To 5 PicOpponent(i).BorderStyle = 0 Next i PicOpponent(Index).ZOrder
3
2301
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"); $mail = new PHPMailer(); $mail->From = "xxxx"; $mail->FromName = "administrator";
1
3215
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 ("localhost","nitin_nick","test1234"); $db = mysql_select_db("nitin_registration",$dl); echo "<table border='0' width='986' align='center' cellspacing='1' cellpadding='5'>"; echo "<tr>"; echo "<th>Team Name</th>";
0
8428
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8341
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8754
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8542
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8630
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4343
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2760
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 we have to send another system
2
1984
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1740
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.