lead2gold Posted April 13, 2006 Share Posted April 13, 2006 [code] $result=db_query("SELECT softball_game.gid FROM softball_game WHERE softball_game.sid = '?'",$this->sid); while($row=mysql_fetch_array ($result)){ $delresult = db_query("DELETE FROM softball_stats WHERE softball_stats.gid = '",$row['gid']); }[/code]I need to simplify the above code... is it possible? like into one db_query()? Link to comment https://forums.phpfreaks.com/topic/7359-delete-from-table-where/ Share on other sites More sharing options...
michaellunsford Posted April 14, 2006 Share Posted April 14, 2006 It seems you're really looking for mysql query help. You might try posting on the mysql forum on this site -- I've gotten good answers there before -- most of which refer me to the reference manual -- but good answers just the same Link to comment https://forums.phpfreaks.com/topic/7359-delete-from-table-where/#findComment-26878 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.