CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Problem with CCS

Print topic Send  topic

Author Message
Karl Reinhard
Posted: 10/08/2003, 6:33 AM

Hallo,

i have following Problem:
With Dreamweaver i`ve built the following Code:

<?php
/* showforen.php */

//Connect to MySQL
$con = mysql_connect("xxx", "xxx", "xxx");
$db = mysql_select_db("story", $con);
$res = mysql_query("select * from foren");

while($row = mysql_fetch_array($res))
{
echo "<a href=\"showthreads.php?fid=".$row['id']."\">";
echo $row['name']."</a><br>";
}
?>

If i try to show it in my browser, it works,
but if i have the same code in ccs ist doesn´t work.
The only what the browser shows is:

"; echo $row['name']."
"; } ?>

Can someone tell me why?

Karl


Sixto Luis Santos
Posted: 10/08/2003, 2:45 PM

Sure,

You are including the code in your template files. Templates files are not
interpreted in any way. The code in the php files read the template, replace
the {} markups, and display the page. If you want your code to be
interpreted, you need to add it to your CCS page in code view.

By the way, Dreamweaver works well with CCS, but you shouldn't use it to add
code, just to edit the HTML.

Regards,

Sixto

"Karl Reinhard" <krein@karl-reinhard.de> wrote in message
news:bm13md$kkv$1@news.codecharge.com...
> Hallo,
>
> i have following Problem:
> With Dreamweaver i`ve built the following Code:
>
> <?php
> /* showforen.php */
>
> //Connect to MySQL
> $con = mysql_connect("xxx", "xxx", "xxx");
> $db = mysql_select_db("story", $con);
> $res = mysql_query("select * from foren");
>
> while($row = mysql_fetch_array($res))
> {
> echo "<a href=\"showthreads.php?fid=".$row['id']."\">";
> echo $row['name']."</a><br>";
> }
> ?>
>
> If i try to show it in my browser, it works,
> but if i have the same code in ccs ist doesn´t work.
> The only what the browser shows is:
>
> "; echo $row['name']."
> "; } ?>
>
> Can someone tell me why?
>
> Karl
>
>
>

Karl Reinhard
Posted: 10/08/2003, 11:17 PM


"Sixto Luis Santos" <sixto@tecnoapoyo.com> schrieb im Newsbeitrag
news:bm20hq$ede$1@news.codecharge.com...
> Sure,
>
> You are including the code in your template files. Templates files are not
> interpreted in any way. The code in the php files read the template,
replace
> the {} markups, and display the page. If you want your code to be
> interpreted, you need to add it to your CCS page in code view.
>
> By the way, Dreamweaver works well with CCS, but you shouldn't use it to
add
> code, just to edit the HTML.
>
> Regards,
>
> Sixto

Hi Sixto,

thanks, it works correctly!!!

Regards,

Karl


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.