PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 26th, 1999, 02:38 PM
Tyrnt
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I know i have seen this somewhere else but i cant recall it right now. And now i have that problem, can someone please help?

Thanx,
--Tyrnt
http://www.blizzardnexus.com

Reply With Quote
  #2  
Old August 26th, 1999, 05:36 PM
subburs
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
hi,
There is a problem in your select(query) statement.but still it will display the content and show's the error,this because u r passing orderby clause as parameter while executing it the orderby is null that's the reason i feel.

Reply With Quote
  #3  
Old August 26th, 1999, 11:03 PM
Tyrnt
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
now the error is on a different script. i will paste the actual code

$result = mysql_query( "select * from friends where $type is $search");


// fetch the rows one at atime, and then echo the data to the page
while ($row = mysql_fetch_row($result)) {

os there an error here? the $type and $search are variables from a form that is also on this script.

Thank you,
--Tyrnt
http://www.blizzardnexus.com
ICQ UIN: 1802676

Reply With Quote
  #4  
Old August 27th, 1999, 10:11 AM
moderator
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
After your mysql_query line you can put a echo mysql_error() line to print the mysql error to the browser. That should help you troubleshoot your query.

A couple things to make sure of however, is $type always going to be a correct column name, and perhaps you should put apostrophe's around $search.

Reply With Quote
  #5  
Old August 27th, 1999, 07:41 PM
Tyrnt
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
i did finally figure out what the problem, it was the syntax or somethin, kinda forgot exactly what i did but it works now and i even made another script and i made it so i can delete entries from my web browser, its really really kewl =) thank you for your help.


--Tyrnt
http://www.blizzardnexus.com
ICQ UIN: 1802676

Reply With Quote
  #6  
Old August 29th, 1999, 03:45 PM
Paul Cotton
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I have found the quickest way to debug these errors is to print the query string to the browser and cut and paste iy into a MySQL session (i telnet into the linux web server for this).

This way you can fine tune the syntax.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > 0 is not a MySQL result index ...

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap