Page 1 of 1

inserting into access db / parse error

Posted: Tue Nov 22, 2005 7:52 am
by ATH0
After downloading mdac_typ and setting the driver to run with dreamweaver i'v created few pages on which you can see the query results.

Now, on the page where i make insert, i get parse error but i can't find out why....

Code: Select all

if(isset($_GET['checkEntry']))
{ 

$table = 'users'; 	
$name = $_GET['name'];

//------------------------------------
$insert_into_db = 'INSERT INTO $table values('$name')';

mysql_query($unosUbazu) or die(mysql_error());
}
else
{

// -------------------form-----------------------------------
<form method="get" action='<? echo'$PHP_SELF'; ?>'>
<input name="name" type="text" id="name">
<input name="checkEntry" type="hidden" id="checkEntry">
 <input type="submit" name="Submit2" value="send"> 
 </form>
<?
}
?>
p.s. i have removed the php tag cuz i get wierd formating...