vicodin Posted March 14, 2008 Share Posted March 14, 2008 I am drawing a blank... I cant remember how to pull a result from mysql using the WHERE. Is this right i dont have my IDE to check it. $query = "SELECT * FROM products WHERE $myproductid"; Link to comment https://forums.phpfreaks.com/topic/96189-search-in-mysql/ Share on other sites More sharing options...
jkewlo Posted March 14, 2008 Share Posted March 14, 2008 I am drawing a blank... I cant remember how to pull a result from mysql using the WHERE. Is this right i dont have my IDE to check it. $query = "SELECT * FROM products WHERE $myproductid"; i am also having the same problem using MS ACCESS thou but im trying to call from a url. Link to comment https://forums.phpfreaks.com/topic/96189-search-in-mysql/#findComment-492390 Share on other sites More sharing options...
AdRock Posted March 14, 2008 Share Posted March 14, 2008 you need a condition to end the where clause WHERE field_name = $myproductid Link to comment https://forums.phpfreaks.com/topic/96189-search-in-mysql/#findComment-492398 Share on other sites More sharing options...
vicodin Posted March 14, 2008 Author Share Posted March 14, 2008 thank you! ;D Link to comment https://forums.phpfreaks.com/topic/96189-search-in-mysql/#findComment-492400 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.