You are here: Re: correct syntax? « PHP SQL « IT news, forums, messages
Re: correct syntax?

Posted by Nadine St-Amand on 06/18/05 16:48

Tony wrote:
> Second, you can't include an array variable inside a
> string like that you'll have to use concatenation.

In fact you need to know that string inside single quote '' arent
interpreting variables but those inside double-quotes are.

for instance you can write $sql = "select * from $table";
but you may not write $sql = 'select * from $table';

--
Nadine St-Amand
Code generator sql2php http://www.phpbackend.com/

 

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

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