hi forum
I'm now switching from vb to php.. and i'm having problem getting this code to work.. it's suppose to query result from an input but instead, i get a " parse error"..
Pls. see:
<?php
$connection = mysql_connect("localhost", "User", "Password") or die("Error connecting to db");
mysql_select_db("mydb", $connection);
$sql = "select Username, Date from MyTable where Username = '" & $_POST["username"];
$result = mysql_query($sql, $connection) or die("error querying database");
"some code to display result.................."
?>
Pls. help.