What does a "?" represent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In the some code I'm working with I see many database queries using the
PEAR DB class where  "?" is used for a value in the SQL.  What is the
rule for using "?" in this way what value does it take.

Example code.   

     $ticket=$db->getRow(
            "SELECT id,department,`from`, cc, bcc FROM tickets WHERE
id=?",
            array($tid)
        );

Jeff

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux