Reply to Re: Mysql_fetch_col()

Your name:

Reply:


Posted by Richard Conway on 07/12/05 16:30

Luigi Donatello Asero wrote:
> "Richard Conway" <ric@shoe.com> skrev i meddelandet
> news:EoPAe.1910$y86.1491@fe03.ams...
>
>>Luigi Donatello Asero wrote:
>>
>>>"Richard Conway" <ric@shoe.com> skrev i meddelandet
>>>news:65PAe.4097$2I4.453@fe05.ams...
>>>
>>
>>Maybe try replacing the number references in the array with the column
>>names from the table, ie instead of having $mycolumn[1], $mycolumn[2]...
>>have $mycolumn['<column_1_name>'], $mycolumn['<column_2_name>']...
>
>
>
> I did but I still get
> Parse error: parse error, unexpected T_VARIABLE in
> /home/s/scaiecat/www/sv/test20.php on line 10
> One extra question:
> While writing names of the columns which consist of several words should I
> set a "_" among these words?
>
No, just make sure they are enclosed in single quotes ' '. I generally
try to avoid using table names or column names with spaces in as it can
be a bit confusing. From the way your code appears on usenet I find it
hard to determine which is line 10. I assume it is the printf() line
but could you clarify?

[Back to original 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

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