I"m facing this problem in PHP

I"m facing this problem in PHP

am 21.11.2005 13:32:27 von developers

Hello dex members,
you've been great help to me ,and i'm hopeing to find the answer to my
problem here .
i'm creating this php loop to build a site map each level of this loop
have font but when i run this code it only reads the font size and
doen't read the color.this is the code please read it and help me to
find what's wrong.


require_once('odbc.php');
$query = odbc_exec($odbc, "select * from SiteCell") or die
(odbc_errormsg());
while ($row = odbc_fetch_array($query))
{
echo "
";

if ($row['Cell_Pos'] == "1")
{
echo "";
echo "";

if ($row['flag_value'] == "Acml")
{
echo "";
echo $row['Cell_Name'].'

';
echo"
";
}
else
{
echo $row['Cell_Name'].'
';
echo"";
}
}
elseif ($row['Cell_Pos'] == "2")
{
echo "";
echo      ";
echo "";
if ($row['flag_value'] =="Acml")
{
echo "";
echo $row['Cell_Name'].'

';
echo"
";
}
else
{
echo $row['Cell_Name'].'
';
echo"
";
}
}
elseif ($row['Cell_Pos'] == "3")
{
echo "      ";
echo "";
if ($row['flag_value'] =="Acml")
{
echo "";
echo $row['Cell_Name'].'

';
echo"
";
}
else
{
echo $row['Cell_Name'].'
';
echo"";

}

}
elseif ($row['Cell_Pos'] == "4")
{
echo "       ";
echo "";
if ($row['flag_value'] =="Acml")
{
echo "";
echo $row['Cell_Name'].'

';
echo"
";
}
else
{
echo $row['Cell_Name'].'
';
echo"";
}

}

}
odbc_close ($odbc);

?>
Best regars
Yoya ali

*** Sent via Developersdex http://www.developersdex.com ***

Re: I"m facing this problem in PHP

am 21.11.2005 14:36:03 von Bob Lehmann

echo "";

Bob Lehmann

wrote in message news:ued3iep7FHA.3804@TK2MSFTNGP14.phx.gbl...
>
>
> Hello dex members,
> you've been great help to me ,and i'm hopeing to find the answer to my
> problem here .
> i'm creating this php loop to build a site map each level of this loop
> have font but when i run this code it only reads the font size and
> doen't read the color.this is the code please read it and help me to
> find what's wrong.
>
>
> > require_once('odbc.php');
> $query = odbc_exec($odbc, "select * from SiteCell") or die
> (odbc_errormsg());
> while ($row = odbc_fetch_array($query))
> {
> echo "
";
>
> if ($row['Cell_Pos'] == "1")
> {
> echo "";
> echo "";
>
> if ($row['flag_value'] == "Acml")
> {
> echo "";
> echo $row['Cell_Name'].'

';
> echo"
";
> }
> else
> {
> echo $row['Cell_Name'].'
';
> echo"
";
> }
> }
> elseif ($row['Cell_Pos'] == "2")
> {
> echo "";
> echo      ";
> echo "";
> if ($row['flag_value'] =="Acml")
> {
> echo "";
> echo $row['Cell_Name'].'

';
> echo"
";
> }
> else
> {
> echo $row['Cell_Name'].'
';
> echo"
";
> }
> }
> elseif ($row['Cell_Pos'] == "3")
> {
> echo "      ";
> echo "";
> if ($row['flag_value'] =="Acml")
> {
> echo "";
> echo $row['Cell_Name'].'

';
> echo"
";
> }
> else
> {
> echo $row['Cell_Name'].'
';
> echo"";
>
> }
>
> }
> elseif ($row['Cell_Pos'] == "4")
> {
> echo "       ";
> echo "";
> if ($row['flag_value'] =="Acml")
> {
> echo "";
> echo $row['Cell_Name'].'

';
> echo"
";
> }
> else
> {
> echo $row['Cell_Name'].'
';
> echo"";
> }
>
> }
>
> }
> odbc_close ($odbc);
>
> ?>
> Best regars
> Yoya ali
>
> *** Sent via Developersdex http://www.developersdex.com ***

Re: I"m facing this problem in PHP

am 23.11.2005 12:31:16 von developers

Thank you for replying ,
But the problem is the same , I used the(#)sign But it didn't work .
Thank you any way .
Best regards,
Yoya Ali

*** Sent via Developersdex http://www.developersdex.com ***