When I run this I can write "userid"
where you see Welcome,
But it is not working with my sql statement.
Need code help please. Can somebody fix this.
I tried GET and POST, no luck.
Thank you,
----------------------------------------
Welcome <?php echo $_REQUEST["userid"]; ?>.<br />
<?php
$conn = odbc_connect("dsnname", "username", "password");
if (!$conn)
{
exit("Connection Failed: " . $conn);
}
$sql="SELECT * FROM usersNew where userid =$_REQUEST[userid]";
$rs=odbc_exec($conn,$sql);
if (!$rs)
{
exit("Error in SQL");
}
?>
where you see Welcome,
But it is not working with my sql statement.
Need code help please. Can somebody fix this.
I tried GET and POST, no luck.
Thank you,
----------------------------------------
Welcome <?php echo $_REQUEST["userid"]; ?>.<br />
<?php
$conn = odbc_connect("dsnname", "username", "password");
if (!$conn)
{
exit("Connection Failed: " . $conn);
}
$sql="SELECT * FROM usersNew where userid =$_REQUEST[userid]";
$rs=odbc_exec($conn,$sql);
if (!$rs)
{
exit("Error in SQL");
}
?>