
October 27th, 2002, 10:24 PM
|
|
Registered User
|
|
Join Date: Apr 2007
Posts: 22,309
Time spent in forums: < 1 sec
Reputation Power: 24
|
|
|
Querying errors
Im going away from post nuke and need the content of the user database. I will put in a new database.
I have made several attempts to retrive the data, the following code is best yet.
Im sure its a simple problem to solve, but I just dont get it.
php Code:
Original
- php Code |
|
|
|
$result = mysql_query("SELECT `pn_name`,`pn_uname`,`pn_email`,`pn_url`,`pn_user_ regdate`,`pn_user_icq`,`pn_user_from`,`pn_user_int rest`,`pn_user_aim`,`pn_user_yim`,`pn_user_msnm`,` pn_pass`,`pn_timezone_offset` FROM nuke_users WHERE pn_uname='$uname'", $db); echo "First Name: ". $myrow["pn_uname"];
How come I get
Warning: Supplied argument is not a valid MySQL result resource in /home/zenantho/public_html/transfer.php on line 22
Line 22 is
php Code:
Original
- php Code |
|
|
|
I have also tried
php Code:
Original
- php Code |
|
|
|
$result = mysql_query("SELECT * FROM nuke_users WHERE pn_uname='$uname'", $db);
|