Search results

  1. P

    storing ip address of visitors

    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!"); ?>
  2. P

    storing ip address of visitors

    Actually my code works properly in local server of my pc. Maybe I need to upgrade my account?
  3. P

    storing ip address of visitors

    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...
  4. P

    mysql.sock error

    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...
Top