|
|
|
|
![]() ![]() |
Oct 18 2004, 09:08 PM
Post
#1
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 178 Joined: 14-October 04 Member No.: 1,752 |
I am working on my guestbook, better to say I am transfuring it from old to new site, but I got some errors now I did not had at my old hoster and I cannot figure out whats wrong:
CODE Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/pbrugge/public_html/guest.php on line 104 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/pbrugge/public_html/guest.php on line 110 This is the complete relevant code perhaps I overlooked something but I keep overlooking it CODE if(!$rowstart) $rowstart=0; $result = mysql_query("select * from gbook order by id desc limit $rowstart,20"); $result2 = mysql_query("select * from gbook"); $numrows = mysql_num_rows($result2); //set backfire list while($r=mysql_fetch_array($result)) { echo "<div class='ginfo'>Posted By: <a href='mailto:$r[email]'>$r[name]</a></div>"; echo "<div class='gmes'>$r[message]</div>"; } Which mysql - php guru can help me with this? |
|
|
|
Oct 18 2004, 09:44 PM
Post
#2
|
|
|
Administrator ![]() Group: Admin Posts: 1,556 Joined: 11-June 04 From: Somewhere in Time & Space. Member No.: 1 myCENT:97.31 |
Definately something wrong with the mysql code or the syntax
It can also happen if the version is old. |
|
|
|
Oct 18 2004, 11:23 PM
Post
#3
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 178 Joined: 14-October 04 Member No.: 1,752 |
QUOTE(admin @ Oct 18 2004, 09:44 PM) Definately something wrong with the mysql code or the syntax It can also happen if the version is old. Old version of what mysql? It hosted here so I guess mysql version is oke, script is my own so there's no version number there |
|
|
|
Oct 18 2004, 11:41 PM
Post
#4
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 178 Joined: 14-October 04 Member No.: 1,752 |
Arg found it it was a problem with the database_user rights I did set it a little to strict, works now,
Told ya it would be something stupid |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 22nd November 2008 - 03:58 PM |