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()? Quote Link to comment 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 Quote Link to comment 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.