Evert Ulises German Soto - 2013-01-15 16:53:44 -
In reply to message 2 from Jay Lepore
Hi Marco and Jay...
the answer is in manual file... im add little more params for a better comprension.
//SELECT statement with option "UNNAMED PLACEHOLDERS":
$params = array(2,'M');
$rows = $db->query_secure("SELECT NAME FROM TB_USERS WHERE ID=? AND GENRE=?;", $params, true, true);
if($rows!=false){
foreach($rows as $row){
echo "User: ". $row["NAME"] ."<br />";
}
}
$rows = null;
Regards!