You are here: Re: Storing array in a row « PHP Programming Language « IT news, forums, messages
Re: Storing array in a row

Posted by Jerry Stuckle on 11/19/50 11:47

guitarromantic@gmail.com wrote:
> Jerry Stuckle wrote:
>
>>As I said - untested and not guaranteed. And I don't guarantee its valid. But
>>the problem is there should be another single quote after the last right square
>>bracket.
>
>
> Sorry, I don't mean to sound like I expect everything to work 100%.
> That said, adding the missing ' didn't change the error message.
>

Well, I never was good at matching quotes and parens. And I shouldn't have
tried to get fancy. The following should work:

$insert .= "($id, " . $value['author'] . ', ' .
$value['score'] . ", '" . $value['review'] . "')";

And BTW you'll need a double quote (") before the semicolon on the $query= line.

Sorry.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация