grlayouts Posted June 14, 2008 Share Posted June 14, 2008 echo "$q :" . price($q) . '<br>'; how would i put price($q) into the database i get the read out as a number mine is $sql = "UPDATE price SET cost = price($q) where ITEM = 'drugs'"; mysql_query($sql) or die($sql . ' : ' . mysql_error()); doesnt work. Link to comment https://forums.phpfreaks.com/topic/110159-simple-one-this-time/ Share on other sites More sharing options...
DarkWater Posted June 14, 2008 Share Posted June 14, 2008 $sql = "UPDATE price SET cost =" . price($q) . "where ITEM = 'drugs'"; Link to comment https://forums.phpfreaks.com/topic/110159-simple-one-this-time/#findComment-565332 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.