php & MySQL question?

Irish

New member
I've some basic knowledge of php and MySQL. What I'm trying to figure out is: if we have the following query
'SELECT username FROM ! where id = ?'
what ! and ? stand for? Thanks.
Rockstar: Yes, I do have a site that has statements like that in the code.
Just an exctraction from the code:

$sql = 'SELECT * FROM ! WHERE userid = ?';

$data = $db->getAll( $sql, array( USER_SEARCH_TABLE, $_SESSION['UserId'] ) );
 
Back
Top