Parse error: unexpected T_String

Im getting the error “Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in C:\Users\Azza\Desktop\intranet\www\php\form.php on line 9”
Im using php 5.3.10
[php]<?php
$con = mysql_connect(“localhost”,“root”,"");
if (!$con)
{
die('Could not connect: ’ . mysql_error());
}

echo “Connected”
mysql_select_db(‘test’, $con);

mysql_query(“INSERT INTO Accounts (Name, Password)
VALUES (‘Azza’, ‘123’)”);

mysql_close($con);

?>[/php]

echo “Connected”

should be:

echo “Connected”;

Thanks

No problem! CYA in the bitstream… (That’s all this really is! LOL)

Sponsor our Newsletter | Privacy Policy | Terms of Service