mdvignesh Posted March 10, 2011 Share Posted March 10, 2011 Warning: mysql_query() expects parameter 1 to be string, resource given in C:\wamp\www\mariyano\profile.php on line 37 Help me to solve this problem I just want to display the datas in table Thanks in advance [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/230214-warning-mysql_query-expects-parameter-1-to-be-string/ Share on other sites More sharing options...
kenrbnsn Posted March 10, 2011 Share Posted March 10, 2011 Please post the code between tags. Ken Link to comment https://forums.phpfreaks.com/topic/230214-warning-mysql_query-expects-parameter-1-to-be-string/#findComment-1185573 Share on other sites More sharing options...
HuggieBear Posted March 10, 2011 Share Posted March 10, 2011 Remove lines 37 - 42 and replace line 28 with this: if (!$qry = mysql_query("SELECT * FROM pro")){ die('error ' . mysql_error()); } Link to comment https://forums.phpfreaks.com/topic/230214-warning-mysql_query-expects-parameter-1-to-be-string/#findComment-1185649 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.