Variable Assignment

From: Date: Wed, 02 May 2001 17:33:39 +0000
Subject: Variable Assignment
Groups: php.db 
Request: Send a blank email to php-db+get-9061@lists.php.net to get a copy of this message
All: I am new to PHP and was hoping for some input to what is probably an 'easy' question. The following SQL statement returns 1 row: $sql = "SELECT id, real_name FROM authorization WHERE username='$username' and password='$password'"; All I want to do is assign the results of the field real_name to a variable called $salesperson, but I cannot seem to get it to work. Thanks inadvance for your help, Randy Rankin

« previous php.db (#9061) next »