You are here: Re: $txt line « PHP Programming Language « IT news, forums, messages
Re: $txt line

Posted by Rik on 08/18/06 08:50

gavino wrote:
> http://hashphp.org/pastebin.php?format=plain&pid=8181 the $txt line
> here is giving me problems along with the two if lines below
>
> complaint from log:
> [client 207.71.33.86] PHP Notice: Use of undefined constant depend -
> assumed 'depend' in /var/www/html/billingticket/sliputils.php3 on line
> 203
> [client 207.71.33.86] PHP Notice: Use of undefined constant problem -
> assumed 'problem' in /var/www/html/billingticket/sliputils.php3 on
> line 199
> [client 207.71.33.86] PHP Notice: Use of undefined constant problem -
> assumed 'problem' in /var/www/html/billingticket/sliputils.php3 on
> line 200
> [client 207.71.33.86] PHP Notice: Use of undefined constant sid -
> assumed 'sid' in /var/www/html/billingticket/sliputils.php3 on line
> 203
>
> this is php3 app now on php 4.3.9
> its pissed

Well, the complaining about sid I understand:
Use :
echo "<option value=\"{$row['sid']}\" $sel> {$row['sid']} - $txt\n";
Instead of:
echo "<option value=\"$row[sid]\" $sel> $row[sid] - $txt\n";

http://nl2.php.net/manual/en/language.types.array.php#language.types.array.foo-bar

The rest is not clear to me, unless your not pasting your actual code.

Grtz,
--
Rik Wasmus

 

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

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