A
Anonymous
Guest
Hi there.
I'm kinda stuck with this. I'm a begginer so bear that mind. :?
My code is ;
I have declared $username and $password above this code. The connection to the server and the database seem to be fine.
Any help??
Thanks in advance
:help:
I'm kinda stuck with this. I'm a begginer so bear that mind. :?
My code is ;
Code:
<?php
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die("Unable to select database");
mysql_query($query);
$query = INSERT INTO contacts ( `id` , `first` , `last` , `phone` , `mobile` , `fax` , `email` , `web` ) VALUES(``,`John`,`Smith`,`01234 567890`,`00112 334455`,`01234567891`,`johnsmith@gowansnet.com`,`http://www.gowansnet.com`);
mysql_close();
?>
Any help??
Thanks in advance
:help: