Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 200003

RE: [PHP3] "notice[51] 'zend is not a valid constant - assumed to be "zend From: alain samoun (alain <email protected>)
Date: 03/01/00

Assuming that zend is a constant (?) You need probably to replace zend with
$zend in your conditions, like:
if ($note != $zend)echo ("<tr><td>$note</td></tr>");

 Message from Alain Samoun
alain <email protected>

-----Original Message-----
From: Christopher M. Chadwick [mailto:chris <email protected>]
Sent: Wednesday, March 01, 2000 2:45 PM
To: php3 <email protected>
Subject: [PHP3] "notice[51] 'zend is not a valid constant - assumed to
be "zend

I am getting a notice from debug when I run my code it says "notice[51]
'zend is not a valid constant - assumed to be "zend"
The code runs ok is this something I should be concerned about?

<?

require("common.php3");
$result = mysql_query("SELECT voicemail_id, voicemail_title
,voicemail_description, voicemail_note, vm_step1, vm_step2, vm_step3,
vm_step4,
vm_step5, vm_step6, vm_step7, vm_step8, vm_step9, vm_step10, vm_step11,
vm_step12, vm_step13, vm_step14, vm_step15, vm_step16, vm_step17,
vm_step18, vm_step19, vm_step20 FROM voicemail where voicemail_id = 2",$db);

$row = mysql_fetch_array($result);
 $id = $row["voicemail_id"];
        $title = $row["voicemail_title"];
        $description = $row["voicemail_description"];
        $note = $row["voicemail_note"];
        $step_1 = $row["vm_step1"];
        $step_2 = $row["vm_step2"];
        $step_3 = $row["vm_step3"];
        $step_4 = $row["vm_step4"];
        $step_5 = $row["vm_step5"];
        $step_6 = $row["vm_step6"];
        $step_7 = $row["vm_step7"];
        $step_8 = $row["vm_step8"];
        $step_9 = $row["vm_step9"];
        $step_10 = $row["vm_step10"];
        $step_11 = $row["vm_step11"];
        $step_12 = $row["vm_step12"];
        $step_13 = $row["vm_step13"];
        $step_14 = $row["vm_step14"];
        $step_15 = $row["vm_step15"];
        $step_16 = $row["vm_step16"];
        $step_17 = $row["vm_step17"];
        $step_18 = $row["vm_step18"];
        $step_19 = $row["vm_step19"];
        $step_20 = $row["vm_step20"];
echo "<!DOCTYPE HTML PUBLIC>";
echo "<html><head>";
echo "<title>$title<//title>";
echo "<//head>";
echo "<body>";
echo "<table><tr>";
echo "<td>$description<//td>";
echo "<//tr>";
     if ($note != zend)echo ("<tr><td>$note</td></tr>");
     if ($step_1 != zend)echo ("<tr><td>$step_1</td></tr>");
     if ($step_2 != zend)echo ("<tr><td>$step_2</td></tr>");
     if ($step_3 != zend)echo ("<tr><td>$step_3</td></tr>");
     if ($step_4 != zend)echo ("<tr><td>$step_4</td></tr>");
     if ($step_5 != zend)echo ("<tr><td>$step_5</td></tr>");
     if ($step_6 != zend)echo ("<tr><td>$step_6</td></tr>");
     if ($step_7 != zend)echo ("<tr><td>$step_7</td></tr>");
     if ($step_8 != zend)echo ("<tr><td>$step_8</td></tr>");
     if ($step_9 != zend)echo ("<tr><td>$step_9</td></tr>");
     if ($step_10 != zend)echo ("<tr><td>$step_10</td></tr>");
     if ($step_11 != zend)echo ("<tr><td>$step_11</td></tr>");
     if ($step_12 != zend)echo ("<tr><td>$step_12</td></tr>");
     if ($step_13 != zend)echo ("<tr><td>$step_13</td></tr>");
     if ($step_14 != zend)echo ("<tr><td>$step_14</td></tr>");
     if ($step_15 != zend)echo ("<tr><td>$step_15</td></tr>");
     if ($step_16 != zend)echo ("<tr><td>$step_16</td></tr>");
     if ($step_17 != zend)echo ("<tr><td>$step_17</td></tr>");
     if ($step_18 != zend)echo ("<tr><td>$step_18</td></tr>");
     if ($step_19 != zend)echo ("<tr><td>$step_19</td></tr>");
     if ($step_20 != zend)echo ("<tr><td>$step_20</td></tr>");
echo "<//table>";
echo "<//body>";
echo "<//HTML>";
?>

--
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>

-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>