<?php
$con = mysql_connect("localhost","root","SLAPTA");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("ip", $con);
$result = mysql_query("SELECT * FROM ip");
if(mysql_num_rows($result) != 0)
{
echo 'Tu jau uzsiregistraves';
}
else
{
echo 'Registracija';
exit;
}
mysql_close($con);
?>