<?php $linkID = @mysql_connect("localhost","root","") or die("Could not connect to MySQL server"); $query = "INSERT INTO mytable set id='1', title='pants', myvalue='4'"; $result = mysql_db_query("mydatabase", $query); mysql_close(); ?>