I have already linked to the database. I didn't think that was necessary to post. However, here is the code that I've used
<?php
mysql_connect("localhost", "username", "password") or die ("Can't connect!");
mysql_select_db("db_name") or die("Can't select database!");
?>
Hi! does anyone know how to capture ip address of visitors? Well! I have used the following code but , it' s not working in this server.
<?php
$ip=$_SERVER['REMOTE_ADDR'];
mysql_query("INSERT INTO table (count,ipaddress)
VALUES ('null', '$ip')");
?>
Note: Database is well connected and the...
Can someone help me with this error message
"Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock"
you can view my site at http://bagurumba.elementfx.com/bagurumba/dictionary.php
The query was working properly before.But now whenever I search for a world I get the above...