Log in

View Full Version : Resolved mysql_query expects parameter 2 to be resource



Priyo
02-20-2012, 08:33 AM
I can't seem to figure out why is this error occurring -
Warning: mysql_query() expects parameter 2 to be resource, string given on line 62(marked red)


<?php include ('config.php');

$sqlget = "SELECT * FROM customer";
line 62 $sqldata = mysql_query($select_db, $sqlget) or die('Error');

.......

Priyo
02-21-2012, 07:40 PM
I solved this problem in a different way. Thanks for not helping.

djr33
02-21-2012, 11:20 PM
If you want help, you can post more information. There's no need to be rude. From what you posted, it's not possible to figure out what is wrong-- your query probably does not match the database structure.