| ★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum5/HTML/001730.html | Nouvelle recherche | Portail wanayoo |
|
|
DevShed Discussion Forums
![]() PHP
![]() Unable to save result set?
|
| next newest topic | next oldest topic |
| Author | Topic: Unable to save result set? |
|
Chrille Member |
Hello all, Does anybody know why this does´nt work? <? $mysql = mysql_query ("SELECT * FROM statsMonth WHERE month='$y'"); $kategorinamn=$rad["namn"]; echo "OK<br>"; } while($rad = mysql_fetch_array($mysql)); It says that it was unable to save the result set... Please help! Best regards, |
|
Shiju Rajan Member |
code seems fine except "$mysql" variable.(i think that might be a database variable or keyword.we can't use it.i am not sure .. but any way just give a try). one more thing ,you have missed a '=' sign in the end of the loop. <? $sql = mysql_query ("SELECT * FROM statsMonth WHERE month='$y'"); $kategorinamn=$rad["namn"]; echo "OK<br>"; } while($rad ==mysql_fetch_array($sql)); ------------------ "The fear of the LORD is the beginning of knowledge..." [This message has been edited by Shiju Rajan (edited July 03, 2000).] |
|
rod k Member |
No, you don't need == in the while, you've done that correctly. I believe the problem is available RAM. Try increasing the limit in php.ini (assuming the machine has enough RAM available. |
All times are MST (US) | next newest topic | next oldest topic |
![]() |
|
Copyright © 1997-2000 ngenuity. All rights reserved.
Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.