Jump to content

syncrhonouse processing or not?


blue-genie

Recommended Posts

assume my flash file passes a value to my php to get some data using an ID.

 

but if the ID doesn't exist I want to go get the ID from the database.

would this kind of logic work

 

$curGameID = $_REQUEST['gameID'];

 

if ($curGameID == "") {

$gameResult = mysql_query("SELECT gameID from gamedetails where startDate <= date('".$compDateStr."') AND endDate >= date('".$compDateStr."') AND gameIsActive = 1");

$gameID = mysql_query($gameResult);

$curGameID = $gameID;

}

 

and then here have another select statement using a WHERE gID = $gameID;

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/202942-syncrhonouse-processing-or-not/
Share on other sites

  • 2 weeks later...

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.