Jump to content

Help Please


Vivid Lust

Recommended Posts

The "activedate" query is not inserting into the database where there is nothing stored in it.

 

Heres the code:

 

<?php
function lastactive(){

$timenow = time();
$datenow = date("y,m,d");
$timediff = $timenow-$row['activetime'];
$datediff = $datenow-$row['date'];

$link = mysql_connect('localhost', 'jacsta_jakey', '9348109001');
mysql_select_db('jacsta_db1',$link);
mysql_query("SELECT activetime, activedate WHERE member = '{$_GET['member']}'");


if ($row['activedate']==""){
mysql_query("UPDATE members SET activedate=$datenow WHERE member = '{$_GET['member']}'");}


if ($row['activetime']==""){
mysql_query("UPDATE members SET activetime=$timenow WHERE member = '{$_GET['member']}'");}
}
?>

 

Please help!!!!

Thanks :D

Link to comment
https://forums.phpfreaks.com/topic/92249-help-please/
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.