bgmoey Posted June 4, 2012 Share Posted June 4, 2012 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /srv/disk5/1005747/www/visaonline.tk/signup.php on line 365 I keep getting this error message on my signup page, though the data are created and inserted in the row at the MYSQL table after clicking submit on the page. But instead of connecting to the database to retrieve and display the data, it's giving me above error. Here is the code 359 // echo "QRY=".$query."<br>"; 360 if(mysql_query($query)) 361 { 362 //echo "Submitted"; 363 $qrysel="select user_id from account where user_name='".$user_name."' and password='".$password."' and email='".$email."'"; 364 rs_getid=mysql_query($qrysel); 365 $row_id=mysql_fetch_array($rs_getid); 366 $arry=array(); 367 $catid_list=array(); I'm a newbie in PHP usage, someone please help me out. Thanks, Bgmoey Quote Link to comment https://forums.phpfreaks.com/topic/263649-help-warning-mysql_fetch_arraysupplied-argument-is-not-a-valid-mysql-result/ Share on other sites More sharing options...
litebearer Posted June 4, 2012 Share Posted June 4, 2012 missed the $ sign 364 rs_getid=mysql_query($qrysel); Quote Link to comment https://forums.phpfreaks.com/topic/263649-help-warning-mysql_fetch_arraysupplied-argument-is-not-a-valid-mysql-result/#findComment-1351163 Share on other sites More sharing options...
bgmoey Posted June 4, 2012 Author Share Posted June 4, 2012 I added it but still same result. What else can i do to solve this problem. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/263649-help-warning-mysql_fetch_arraysupplied-argument-is-not-a-valid-mysql-result/#findComment-1351172 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.