Location: PHPKode > projects > Esp php p2p project > p2p/siteadded.php
<?
 include('config.inc');

$db_connect = mysql_connect($datahost,$datauser,$datapasswd)or die("Could not connect");

$base_selection = mysql_select_db("p2p",$db_connect);

mysql_query("insert into sites (siteurl,created,updated,membername) VALUES('$siteurl','$created','$updated','$membername')");
echo" website:$siteurl has been added to the Database";  
?>
Return current item: Esp php p2p project