hass1980 Posted April 17, 2009 Share Posted April 17, 2009 Hello My index page isnt picking up the template directory to be displayed. This is what I get on my index.php emplatedir/header.php"); ?> Hello and welcome to MyMarket! This is the homepage, web masters, use this area: * Provide a basic map of the site * Advertise your on-sale items * Welcome customers to your site * Do useful things To begin shopping, go to the shopping page or buy the on-special items to your right. Your shopping cart is always visible on the left side of your screen. Click it to edit the contents of your basket or to check out. templatedir/footer.php"); ?> I have included the application.php file as an attachment. Could anyone see whether I have the settings correct plz. [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
ILMV Posted April 17, 2009 Share Posted April 17, 2009 Can I have your index.php file instead please. Quote Link to comment Share on other sites More sharing options...
hass1980 Posted April 17, 2009 Author Share Posted April 17, 2009 yes sure, i have attached it. [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
ILMV Posted April 17, 2009 Share Posted April 17, 2009 Try this: include($CFG->templatedir."/header.php"); instead of this: include("$CFG->templatedir/header.php"); Quote Link to comment Share on other sites More sharing options...
hass1980 Posted April 17, 2009 Author Share Posted April 17, 2009 include("application.php"); $DOC_TITLE = "MyMarket Home"; include("$CFG->templatedir."/header.php"); ?> <table width=100%> <tr valign="top"> <td class=normal> Hello and welcome to MyMarket! This is the homepage, web masters, use this area: <ul class=normal> <li>Provide a basic map of the site</li> <li>Advertise your on-sale items</li> <li>Welcome customers to your site</li> <li>Do useful things</li> </ul> <p>To begin shopping, <a href="shopping/">go to the shopping page</a> or buy the on-special items to your right. Your shopping cart is always visible on the left side of your screen. Click it to edit the contents of your basket or to check out. </td> </tr> </table> <? include("$CFG->templatedir."/footer.php"); ?> Quote Link to comment Share on other sites More sharing options...
hass1980 Posted April 17, 2009 Author Share Posted April 17, 2009 reposting index.php [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
hass1980 Posted April 17, 2009 Author Share Posted April 17, 2009 errors on webpage, see attached file [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
hass1980 Posted April 17, 2009 Author Share Posted April 17, 2009 Notice: Undefined index: SESS_USERID in C:\wamp\www\website\functions.php on line 31 Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\wamp\www\website\functions.php on line 34 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\wamp\www\website\functions.php on line 39 You have not added anything to your shopping cart yet. [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
ILMV Posted April 17, 2009 Share Posted April 17, 2009 The error you are experiencing is usually down to an invalid sql query. Could you echo your sql query and post it here, echo it before line 34 ILMV Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.