I've got this piece of script:
[php]
$schque = $_SESSION['user'];
$a=$_REQUEST['$schque'];
$username="daed alus_admin";
$password="test ";
$database="daed alus_db";
mysql_connect(l ocalhost,$usern ame,$password);
@mysql_select_d b($database) or die( "Unable to select database");
$query="SELECT * FROM user WHERE username='$a'";
$result=mysql_q uery($query);
$num=mysql_numr ows($result);
[/php]
Read the Posting Guidelines at the top of this forum, especially the part about enclosing shown code within php or code tags!!!
moderator
The problem is that $schque is the correct value, but it won't pass to $a. I've tried put $schque straight into the query but that doesn't work either. Any help would be appriecated.
[php]
$schque = $_SESSION['user'];
$a=$_REQUEST['$schque'];
$username="daed alus_admin";
$password="test ";
$database="daed alus_db";
mysql_connect(l ocalhost,$usern ame,$password);
@mysql_select_d b($database) or die( "Unable to select database");
$query="SELECT * FROM user WHERE username='$a'";
$result=mysql_q uery($query);
$num=mysql_numr ows($result);
[/php]
Read the Posting Guidelines at the top of this forum, especially the part about enclosing shown code within php or code tags!!!
moderator
The problem is that $schque is the correct value, but it won't pass to $a. I've tried put $schque straight into the query but that doesn't work either. Any help would be appriecated.
Comment