lynxus Posted July 26, 2009 Share Posted July 26, 2009 Hi guys, Has anyone come across and issue with a var named 'read' if i use read as a var or have a column named read in mysql. PHP cant update the field!! Ive just spent the passed 2 hours pulling my hair out. i change the field and var to a different name ( opened ) and it all works ok.. Theres something about the name "read" in either php or mysql that doesnt seem to work well. Anyone else seen this issue? Thanks G Link to comment https://forums.phpfreaks.com/topic/167556-solved-problems-with-a-var-named-read/ Share on other sites More sharing options...
ldougherty Posted July 27, 2009 Share Posted July 27, 2009 That would be a reserved word in mySQL. http://dev.mysql.com/doc/refman/5.0/en/reserved-words.html In some cases you can still use them but it is best not to. Link to comment https://forums.phpfreaks.com/topic/167556-solved-problems-with-a-var-named-read/#findComment-883543 Share on other sites More sharing options...
lynxus Posted July 27, 2009 Author Share Posted July 27, 2009 Ahh that explains it.. Thats sorta the conclusion i came too after loosing too much hair lol Thanks G Link to comment https://forums.phpfreaks.com/topic/167556-solved-problems-with-a-var-named-read/#findComment-883551 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.