Jump to content

It just won't insert!


Avalanche

Recommended Posts

[php:1:20ca43efce]// Record in change logs if roster_trackchanges is 1

if ($roster_trackchanges == 1) {

$query_changes = \"INSERT INTO roster_changes(er, ee, type, date, time)

VALUES(\'user\',\'\".$_SESSION[mem_alias].\"\',\'edited\',date(), time())\";

mysql_query($query_changes);

}[/php:1:20ca43efce]

 

I added a \"else { echo \"hey hey\"; }\" but the \"hey hey\" didn\'t come up, so $roster_trackchanges IS 1, it just doesn\'t insert.

Link to comment
https://forums.phpfreaks.com/topic/480-it-just-wont-insert/
Share on other sites

Try assigning the session, so you dont have to break it, or w/e

 

[php:1:8452372283]

if ($roster_trackchanges == 1) {

$session = $_SESSION[mem_alias];

 

$query_changes = \"INSERT INTO roster_changes(er, ee, type, date, time)

VALUES(\'user\',\'$session\',\'edited\',date(), time())\";

mysql_query($query_changes);

}

[/php:1:8452372283]

 

Try that, it\'s all I can think of

Link to comment
https://forums.phpfreaks.com/topic/480-it-just-wont-insert/#findComment-1617
Share on other sites

Lol, hmmm...

Once again, try assigning some stuff:

 

[php:1:4eac3f3181]

if ($roster_trackchanges == 1) {

$session = $_SESSION[mem_alias];

$date = date();

$time = time();

 

$query_changes = \"INSERT INTO roster_changes(er, ee, type, date, time)

VALUES(\'user\',\'$session\',\'edited\',\'$date,\' \'$time\')\";

mysql_query($query_changes);

}

[/php:1:4eac3f3181]

 

Again, just a suggestion?

Link to comment
https://forums.phpfreaks.com/topic/480-it-just-wont-insert/#findComment-1619
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.