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]
|