When I try to open http://eliste.freesuperhost.com/phptest.php I get:
Parse error: parse error in /home/www/eliste.freesuperhost.com/phptest.php on line 11
line 11 is:
<?php
that's it! what's going on? i tried to change it to <? and that didn't work either.
this is the rest of the code:
if you see any other mistakes in the code, please point them out.
thanks in advance
Parse error: parse error in /home/www/eliste.freesuperhost.com/phptest.php on line 11
line 11 is:
<?php
that's it! what's going on? i tried to change it to <? and that didn't work either.
this is the rest of the code:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>PHP Test Page</title>
</head>
<body>
<?php
$user="";
$password="";
$database="";
mysql_connect(,$user,$password);
@mysql_select_db($database) or die( "Unable to select database");
$car_id="1"
?>
<table border="1">
<tr>
<td>Make</td>
<td><?php
print "SELECT Make: FROM cars WHERE car_id="$car_id";"
?></td>
</tr>
<tr>
<td>Model</td>
<td><?php
print "SELECT Model: FROM cars WHERE car_id="$car_id";"
?></td>
</tr>
</table>
<?php
mysql_close();
?>
</body>
</html>
if you see any other mistakes in the code, please point them out.
thanks in advance