Include files not working
Posted by: gshanthi (---.28.144.59.touchtelindia.net)
Date: July 27, 2006 07:24AM

hi,
I am a newbie to wamp. How to setup our include files in my local host server. I am using windows XP os.

my code is


<?
include ("include/header.inc.php"winking smiley;
?>
<p>This is the addressbook for [name].</p>

<?
include ("include/dbconnect.php"winking smiley;
$sql="SELECT * FROM $table";

$result = mysql_query($sql);

$resultsnumber = mysql_numrows($result);
echo "The current total of entries in the address book is: $resultsnumber";

include ("include/footer.inc.php"winking smiley;

?>



need to your help....



Post Edited (07-27-06 07:37)

Options: ReplyQuote
Re: Include files not working
Posted by: slade (---.range86-133.btcentralplus.com)
Date: July 27, 2006 10:48AM

Do you have short tags enabled?

If not, use <?php instead.

slade

Options: ReplyQuote
Re: Include files not working
Posted by: gshanthi (---.28.144.59.touchtelindia.net)
Date: July 27, 2006 11:49AM

hi,

how to enable "short tags" in wamp server?


shanthi

Options: ReplyQuote
Re: Include files not working
Posted by: yfastud (72.236.169.---)
Date: July 27, 2006 02:06PM

Check this post
[forum.wampserver.com]
Hope this help.



Post Edited (07-27-06 14:42)

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote


Sorry, only registered users may post in this forum.