Jump to content

append data in a DB field


denoteone

Recommended Posts

$visitor_ip = $_SERVER['REMOTE_ADDR'];

$visitor_day = date("d");

$visitor_page = curPageURL();  //function that gets the page they are visiting.

mysql_select_db($database_visitors, $visitors);

 

//my table is named visitor_list

I would like to do something like the following.

 

    $sql = update 'visitor_list' where visitor_ip and visitor_date are = to $visitor_ip and $visitor_date, append visitor_page with $visitor_page;

$result = mysql_query($sql) or trigger_error(mysql_error(),E_USER_ERROR);

Link to comment
https://forums.phpfreaks.com/topic/151100-append-data-in-a-db-field/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.