I could not edit a photo after it was posted, here is what I got.
Any ideas to correct the problem?
Thanks
Could not update pic information
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '1959 Cab During Restoration - 002', pic_desc= '' WHERE pic_i
UPDATE phpbb_album SET pic_title = 'My '1959 Cab During Restoration - 002', pic_desc= '' WHERE pic_id = '9'
Line : 188
File : album_edit.php
FAP SUPPORT - Bug When Trying To Edit A Photo Title After It's Posted.
Subject: Re: Bug When Trying To Edit A Photo Title After It's Posted.
It is a wrong escaped SQL...
Can you try to edit that SQL in this way please?
If it doesn't work we need to add "ADDSLASHES" function...
Which version of FAP do you have?
Can you try to edit that SQL in this way please?
$sql = "UPDATE ". ALBUM_TABLE ."
SET pic_title = '" . $pic_title . "', pic_desc= '" . $pic_desc . "'
WHERE pic_id = '" . $pic_id . "'";
SET pic_title = '" . $pic_title . "', pic_desc= '" . $pic_desc . "'
WHERE pic_id = '" . $pic_id . "'";
If it doesn't work we need to add "ADDSLASHES" function...
Which version of FAP do you have?
Subject: Re: Bug When Trying To Edit A Photo Title After It's Posted.
using FAP 1.4.1, is this the latest version?
I made the edit, sometimes it works and sometimes it doesn't. Here is the debug message after the edit.
Could not update pic information
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 's 550 Spyder Bike with Fat Boy tires - 004', pic_desc= ''
UPDATE phpbb_album SET pic_title = 'Mark's 550 Spyder Bike with Fat Boy tires - 004', pic_desc= '' WHERE pic_id = '44'
Line : 188
File : album_edit.php
I made the edit, sometimes it works and sometimes it doesn't. Here is the debug message after the edit.
Could not update pic information
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 's 550 Spyder Bike with Fat Boy tires - 004', pic_desc= ''
UPDATE phpbb_album SET pic_title = 'Mark's 550 Spyder Bike with Fat Boy tires - 004', pic_desc= '' WHERE pic_id = '44'
Line : 188
File : album_edit.php
Subject: Re: Bug When Trying To Edit A Photo Title After It's Posted.
Seems to be working. I only got the debug message once.
Subject: Re: Bug When Trying To Edit A Photo Title After It's Posted.
It is related to single quote...
It is strange that on some server it still doesn't work.
Anyway let me know if you are still having problems.
It is strange that on some server it still doesn't work.
Anyway let me know if you are still having problems.
Page 1 of 1
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.1507s (PHP: 12% SQL: 88%)
SQL queries: 10 - Debug Off - GZIP Enabled