Forum Moderators: coopster

Message Too Old, No Replies

Is this possible ?

im not to sure

         

malcolmcroucher

10:28 am on May 3, 2008 (gmt 0)

10+ Year Member



echo " <li><a href=$first.php>$first</a></li>";

Im trying to make a list e.g

widget.php

where widget is the database entry being called.

al i get is

[domain.com...]

not getting the .php part

any suggestions ?

Regards

henry0

11:54 am on May 3, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Both examples worked
as soon as removing the extra space after your closing quote (where is widget) :)

<?php
$first="http://www.domain.com/widget";
$ext=".php";
$all=$first.$ext;
echo " <li><a href='$all'>$first</a></li>";
?>
<?php
$aaaa="http://www.domain.com/widget";

echo " <li><a href='$aaaa.php'>$first</a></li>";

malcolmcroucher

12:21 pm on May 3, 2008 (gmt 0)

10+ Year Member



Thanks alot