You are here: Re: Array problem (MySQL/PHP) « All PHP « IT news, forums, messages
Re: Array problem (MySQL/PHP)

Posted by .:[ ikciu ]:. on 10/04/06 10:22

Hmm BlackSpider <BlackSpider@I.Dont.Exist.com> wrote:
> function TableData($slot)
> {
> global $row_Recordset1, $colour_FREE, $colour_TOOK;
> $var = "'"."$slot"."'";

What ???????

If you will pass string to this function you no need to add ['] !!!


> if ($row_Recordset1[$var] == "") {
> return ($colour_FREE.'" class="timeslot"><div
> align="center">'.$row_Recordset[$var]);
> }
> else {
> return ($colour_TOOK.'" class="timeslot"><div
> align="center">'.$row_Recordset1[$var]);
> }

Same here - no sense

return ((strlen($row_Recordset1[$var]) == 0?$colour_FREE:$colour_TOOK).'"
class="timeslot"><div> align="center">'.$row_Recordset[$var]);

maybe you will tell us what is stored in variables: $row_Recordset1 and
$slot ???

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ikciu | gg: 718845 | yahoo: ikciu_irsa | www: www.e-irsa.pl

2be || !2be $this => mysql_query();

 

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

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