Jump to content

Regular expression


son

Recommended Posts

that's exactly what boen_robot said, it is from sprintf and it is used on sql queries a lothere is an example from php.net

$query = sprintf("SELECT firstname, lastname, address, age FROM friends WHERE firstname='%s' AND lastname='%s'", $firstname, $lastname);

%d is for a decimal number that will come as a second argument on sprintfread more @ php.net

Link to comment
Share on other sites

that's exactly what boen_robot said, it is from sprintf and it is used on sql queries a lothere is an example from php.net
$query = sprintf("SELECT firstname, lastname, address, age FROM friends WHERE firstname='%s' AND lastname='%s'", $firstname, $lastname);

%d is for a decimal number that will come as a second argument on sprintfread more @ php.net

Got it! Thanks a lot...Son
Link to comment
Share on other sites

Archived

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

×
×
  • Create New...