<?php

mysql_connect('10.0.0.10', 'test', 'test');
mysql_db_query('test_northwind', "REPLACE INTO foo VALUES ('bar'baz')");
mysql_db_query('test_northwind', "REPLACE INTO foo VALUES ('bar'baz')");

echo mysql_error() . PHP_EOL;

?>