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