Log in

View Full Version : Code Help - Signature Checking


Alexia
11-11-2005, 02:03 AM
I can't quite figure out what is going wrong with this code. It is supposed to pull the user's signature from the database and check to make sure it isn't empty. However, it isn't even getting the signature to check. This is in the file newthread.php.

// ~~~~#### SIGNATURE CHECK by ALEXIA####~~~~
$signaturenotnull = $DB_site->query("SELECT signature FROM usertextfield WHERE userid = " . $bbuserinfo[userid]);

echo $signaturenotnull[signature];

if (empty($signaturenotnull[signature]))
{
eval(print_standard_error('signaturenotset'));
}
// ~~~~#### SIGNATURE CHECK by ALEXIA####~~~~

akanevsky
11-11-2005, 02:05 AM
use query_first() instead of just query().

Alexia
11-11-2005, 02:10 AM
use query_first() instead of just query().

Thank you, Sir! :)