Flinkman Posted July 3, 2007 Share Posted July 3, 2007 I need to help with this, I have a small problem with mysql query ??? $query="UPDATE something SET whatever='$rater_rating."|".$rater_ip.$rater_end_of_line_char' WHERE id='$id'"; Thanks Quote Link to comment https://forums.phpfreaks.com/topic/58315-mysql-help/ Share on other sites More sharing options...
per1os Posted July 3, 2007 Share Posted July 3, 2007 You have a small problem with your syntax <?php $query="UPDATE something SET whatever='$rater_rating" . "|" . "$rater_ip" . "$rater_end_of_line_char' WHERE id='$id'"; ?> Probably not the cleanest but should work. Quote Link to comment https://forums.phpfreaks.com/topic/58315-mysql-help/#findComment-289139 Share on other sites More sharing options...
Flinkman Posted July 3, 2007 Author Share Posted July 3, 2007 You have a small problem with your syntax <?php $query="UPDATE something SET whatever='$rater_rating" . "|" . "$rater_ip" . "$rater_end_of_line_char' WHERE id='$id'"; ?> Probably not the cleanest but should work. It's better but the problem is it inserts just this part to the mysql database '$rater_rating" everything behind that " is ignored. Quote Link to comment https://forums.phpfreaks.com/topic/58315-mysql-help/#findComment-289145 Share on other sites More sharing options...
per1os Posted July 3, 2007 Share Posted July 3, 2007 $rater_info = $rater_rating . '|' . $rater_ip . $rater_end_of_line_char; $query="UPDATE something SET whatever='$rater_info' WHERE id='$id'"; Give that a go. Quote Link to comment https://forums.phpfreaks.com/topic/58315-mysql-help/#findComment-289159 Share on other sites More sharing options...
Flinkman Posted July 3, 2007 Author Share Posted July 3, 2007 thanks for help everbody, I created that table again and it works now. Quote Link to comment https://forums.phpfreaks.com/topic/58315-mysql-help/#findComment-289176 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.