|
-
Apr 23rd, 2010, 02:38 PM
#1
Thread Starter
Hyperactive Member
-
Apr 23rd, 2010, 05:37 PM
#2
Re: Just when I thought a MySQL read would be easy
nothing is obviously wrong -- but try using print_r() to see what is being returned inside of your loop:
PHP Code:
while($record = mysql_fetch_assoc($result)){ print_r($record); }
-
Apr 24th, 2010, 12:57 AM
#3
Re: Just when I thought a MySQL read would be easy
Make sure you don't mix up cases; unix is mostly case sensitive.
As you do seem to return the correct amount of results I suspect that cid is the little bugger.
Check the database, it might be something like 'cID' or 'CID'.
Delete it. They just clutter threads anyway.
-
Apr 26th, 2010, 07:53 PM
#4
Re: Just when I thought a MySQL read would be easy
In this case the case sensitivity is dependant on the collation type of the database table and not the host operating system. Try enabling strict error messages.
PHP Code:
error_reporting(E_ALL | E_STRICT)
-
Apr 29th, 2010, 01:28 AM
#5
Thread Starter
Hyperactive Member
Re: Just when I thought a MySQL read would be easy
 Originally Posted by penagate
In this case the case sensitivity is dependant on the collation type of the database table and not the host operating system. Try enabling strict error messages.
PHP Code:
error_reporting(E_ALL | E_STRICT)
Thanks dude, weirdly there's something strange going on. I put in a little script to extract field names etc and when I browse to it I'm getting page not found errors
-
Apr 29th, 2010, 01:43 AM
#6
Re: Just when I thought a MySQL read would be easy
Here again, mind the casing.
Delete it. They just clutter threads anyway.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|