Hello all
Im new to php and flowing a tutorial on youtube…
here is my code
[php]<?php
$dbc = mysqli_connect (‘localhost’, ‘root’, ‘’, “sampledatebase”)
or die (‘Error connecting to your database!!’);
echo “got you”;
$query = " INSERT INTO mydata (first_name, last_name, address, city, zip, phone_number)";
“VALUES (‘Bob’, ‘Marshall’, ‘123 Road’, ‘Hope BC’,‘v0x 2l3’ ‘888 2345’)”;
$result =($dbc, $query) LINE !8
or die (‘Error querrying your database’);
myquli_close ($dbc);
?>
[/php]this is my result
//Parse error: syntax error, unexpected ‘,’ in c:wamp\www\test_database.php on line 18
I really cant see where it is
thanks in advance bob