View Full Version : Calender
Sharribee
08-01-07, 08:04 PM
Hi guys, MOM is having problems posting in the calender, any ideas????
Thanks
xxx
Hi guys, MOM is having problems posting in the calender, any ideas????
No problems posting and then deleting a test event. Does he get any error messages?
Kymmy
Sharribee
08-01-07, 08:58 PM
I have had no problems either, he does get an error message but he can't remember what. (must be his age)
He is going to try again and then post here the message he gets
Thanks Kymmy
Mabels Old Man
08-01-07, 09:31 PM
OK tried again and I get the following
Arse! Query failed:
errorno=1064
error=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 Old Man', 'I\'ll be there ')' at line 9
clean_query=INSERT INTO tbl_event_participant (fld_event_id, fld_participant_user_id, fld_participant_username, fld_participant_comment) VALUES (128, 1141, 'Mabel's Old Man', 'I\'ll be there ')
query=INSERT INTO tbl_event_participant (fld_event_id, fld_participant_user_id, fld_participant_username, fld_participant_comment) VALUES (128, 1141, 'Mabel's Old Man', 'I\'ll be there ')
Hope this means something to somebody
OK tried again and I get the following
Arse! Query failed:
errorno=1064
error=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 Old Man', 'I\'ll be there ')' at line 9
clean_query=INSERT INTO tbl_event_participant (fld_event_id, fld_participant_user_id, fld_participant_username, fld_participant_comment) VALUES (128, 1141, 'Mabel's Old Man', 'I\'ll be there ')
query=INSERT INTO tbl_event_participant (fld_event_id, fld_participant_user_id, fld_participant_username, fld_participant_comment) VALUES (128, 1141, 'Mabel's Old Man', 'I\'ll be there ')
Hope this means something to somebody
By the look of it the words I'll be there is throwing up the error. Try altering that line to something else especially without the apostraphy
Kymmy 8)
Mabels Old Man
08-01-07, 10:25 PM
Okey dokey Tried something simple with no punctuation
Arse! Query failed:
errorno=1064
error=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 Old Man', 'My calendar is clear')' at line 9
clean_query=INSERT INTO tbl_event_participant (fld_event_id, fld_participant_user_id, fld_participant_username, fld_participant_comment) VALUES (128, 1141, 'Mabel's Old Man', 'My calendar is clear')
query=INSERT INTO tbl_event_participant (fld_event_id, fld_participant_user_id, fld_participant_username, fld_participant_comment) VALUES (128, 1141, 'Mabel's Old Man', 'My calendar is clear')
See told you it doesn't like BMW riders.
Okey dokey Tried something simple with no punctuation
Arse! Query failed:
errorno=1064
error=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 Old Man', 'My calendar is clear')' at line 9
clean_query=INSERT INTO tbl_event_participant (fld_event_id, fld_participant_user_id, fld_participant_username, fld_participant_comment) VALUES (128, 1141, 'Mabel's Old Man', 'My calendar is clear')
query=INSERT INTO tbl_event_participant (fld_event_id, fld_participant_user_id, fld_participant_username, fld_participant_comment) VALUES (128, 1141, 'Mabel's Old Man', 'My calendar is clear')
See told you it doesn't like BMW riders.
Nope, only thing I can think of is that it's the apostraphy in your username
The code is trying to seperate inputed text and code by the use of apostraphies, you having one in your username is getting it confused. Try going into your profile and changing the username then retrying the entry...just remember you might have to login again using the new username and password
ThanX Kymmy 8)
samwise
09-01-07, 10:25 AM
I'd agree with that - apostrophes cause merry hell in MS SQL anyway, if not doubled-up :thumb:
This can be sorted in the php code..... it is the apostrophe that's causing the problems.
Leave it with me a bit to sort.
Mabels Old Man
12-01-07, 05:23 PM
This can be sorted in the php code..... it is the apostrophe that's causing the problems.
Leave it with me a bit to sort.
OK boss
Try replacing the apostrophes with double quotation marks.
example:
INSERT INTO tbl_tablename (fld_txtname) VALUES ( "use double quotation marks, when there are apostrophes or apostrophe in the string");
HTH
Billy :)
Hi guys, MOM is having problems posting in the calender, any ideas????
Should now be sorted MOM if you could give it a go. :thumb: :thumb:
Try replacing the apostrophes with double quotation marks.
example:
INSERT INTO tbl_tablename (fld_txtname) VALUES ( "use double quotation marks, when there are apostrophes or apostrophe in the string");
HTH
Billy :)
Ahhh Bill you've been hanging around MS stuff too long. :teeth:
string = addslashes(string) will do the trick in PHP.
The username had not been escaped properly, but is now sorted. :-)
Mabels Old Man
14-01-07, 05:54 PM
Give the man a coconut, cheers :thumb: :thumb: :thumb: :thumb: :thumb: :thumb: :thumb: :thumb:
I know Dave...sad really :)
Regards
Bill
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.