Re: Question: Repopulating form parameters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- Jason Wong <php-general@xxxxxxxxxxxx> wrote:

> > Close but no cigar.  Since $Ind is already
> imploded my
> > thinking is it need not be incremented in the echo
> > statement ?
> 
> You tell me, print_r() and var_dump() it before you
> use it and decide whether 
> it is correct.
> 
> One final thing: '$Ind' is not the same as "$Ind".
> 


If I choose 1, 2 , 3 then

print_r($Ind); returns
'1','2','3'
This looks okay.

I'm passed the parsing errors. Semi colon was me
trying to stop parsing errors.  

<?php
while($row = mysql_fetch_array($inds, MYSQL_BOTH)) {
echo '<option value="'.$row['CareerIDs'].'">';
if (!(strcmp($row_rsInd['CareerIDs'], "$Ind")))
{echo "SELECTED";}
echo $row['CareerCategories'].'</option>';

I could not find a difference with '$Ind', or "$Ind",
except I would think '$Ind' is correct, since " "
would be a literal string.

Any more hints ? :)

Stuart

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux