I seem to have a problem that I can't quite pin down, maybe a fresh pair of eyes will spot it for me
$newmin = $min_math[0]*$days*1440 + $min_math[1]*1440 + $min_math[2]*60 + $min_math[3];
$newapp = $newrow[appearances] + 1;
$noexist = 0;
mysql_query("UPDATE `signature` SET `isnow` = '0' AND `appearances` = '" . $newapp . "' AND `minutes` = '" . $newmin . "' WHERE `filename` = '" . $newrow[filename] . "'") OR
DIE (mysql_error());
$fin_sql = mysql_query("SELECT * FROM signature WHERE filename = " . $finalize) OR
DIE (mysql_error());
$finrow = mysql_fetch_array ($fin_sql);
mysql_query("REPLACE INTO signature (filename, isnow, date, minutes, appearances) VALUES (" . $finalize .", 1, " . $findate . ", " . $finrow[minutes] . ", " . $finrow[appearances] . ")") OR
DIE (mysql_error());
mysql_free_result($fin_sql);
copy ($finalize . '.jpg' , 'now.jpg');
echo ("<br><br><br><img src='now.jpg' alt='New Signature'>");
echo ("<br><br>The New Signature");
- $newmin = $min_math[0]*$days*1440 + $min_math[1]*1440 + $min_math[2]*60 + $min_math[3];
- $newapp = $newrow[appearances] + 1;
- $noexist = 0;
- mysql_query("UPDATE `signature` SET `isnow` = '0' AND `appearances` = '" . $newapp . "' AND `minutes` = '" . $newmin . "' WHERE `filename` = '" . $newrow[filename] . "'") OR
- DIE (mysql_error());
- $fin_sql = mysql_query("SELECT * FROM signature WHERE filename = " . $finalize) OR
- DIE (mysql_error());
- $finrow = mysql_fetch_array ($fin_sql);
- mysql_query("REPLACE INTO signature (filename, isnow, date, minutes, appearances) VALUES (" . $finalize .", 1, " . $findate . ", " . $finrow[minutes] . ", " . $finrow[appearances] . ")") OR
- DIE (mysql_error());
- mysql_free_result($fin_sql);
- copy ($finalize . '.jpg' , 'now.jpg');
- echo ("<br><br><br><img src='now.jpg' alt='New Signature'>");
- echo ("<br><br>The New Signature");
The problem I think is somewhere in here:
mysql_query("REPLACE INTO signature (filename, isnow, date, minutes, appearances) VALUES (" . $finalize .", 1, " . $findate . ", " . $finrow[minutes] . ", " . $finrow[appearances] . ")") OR
DIE (mysql_error());
- mysql_query("REPLACE INTO signature (filename, isnow, date, minutes, appearances) VALUES (" . $finalize .", 1, " . $findate . ", " . $finrow[minutes] . ", " . $finrow[appearances] . ")") OR
- DIE (mysql_error());
because the image that is supposed to be displayed after it, isn't displayed, nor is the text. I do not recieve any errors when viewing the page, it is just acting similarly to when you try viewing and html page where you left a ">" off.
Pixel Acres V2