spenceddd Posted December 27, 2009 Share Posted December 27, 2009 Hi I keep getting this error when trying to update a row in my database: Unknown column 'xxx' in 'field list' the line of code which must be responsible for this is: $query="UPDATE PortfolioItems SET PortfolioItems.name=$name WHERE id=$id"; ...even though there is a colomn called name in my database. Can anyone help? Thanks Spencer Link to comment https://forums.phpfreaks.com/topic/186460-mysql-error-message-unknown-column-xxx-in-field-list/ Share on other sites More sharing options...
darkfreaks Posted December 27, 2009 Share Posted December 27, 2009 try: <?php $query="UPDATE PortfolioItems SET PortfolioItems.name='$name' WHERE id='$id'"; ?> Link to comment https://forums.phpfreaks.com/topic/186460-mysql-error-message-unknown-column-xxx-in-field-list/#findComment-984612 Share on other sites More sharing options...
spenceddd Posted December 27, 2009 Author Share Posted December 27, 2009 Great! That worked. Thanks a lot. Spencer Link to comment https://forums.phpfreaks.com/topic/186460-mysql-error-message-unknown-column-xxx-in-field-list/#findComment-984613 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.