Jump to content

DELETE FROM table where....


lead2gold

Recommended Posts

[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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.