Ollifi Posted August 21, 2011 Share Posted August 21, 2011 I have this code $id = $_GET['esitysid']; $esitysnimi = mysql_query("SELECT * FROM varasto WHERE id = '".$id."", $yhteys); print "esitysnimi $esitysnimi"; $esitysnim = mysql_result($esitysnimi, "0", "nimi"); varasto: nimi hinta maara id lippuja Esitys Nimi 1 10 14 0 5 Esitys Nimi 2 120 5 1 0 Esitys Nimi 3 950 5 2 0 and it says Warning: mysql_result() expects parameter 1 to be resource, boolean given How can I fix it? Thank you for help Quote Link to comment https://forums.phpfreaks.com/topic/245332-warning-mysql_result-expects-parameter-1-to-be-resource-boolean-given/ Share on other sites More sharing options...
Ollifi Posted August 21, 2011 Author Share Posted August 21, 2011 there was ' missing, i fixed it now Quote Link to comment https://forums.phpfreaks.com/topic/245332-warning-mysql_result-expects-parameter-1-to-be-resource-boolean-given/#findComment-1260045 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.