NiPsTeRS Posted April 1, 2008 Share Posted April 1, 2008 absolute_path."/classes/shopingcart_settings.php"); $obj_scs=new shopingcart_settings(); $done=0; if(isset($_GET['pid'])) { } else { $_GET['pid']=6; } //echo $_GET['pid']; if(($scs_data=$obj_scs->getmenupagesdetail(mysql_escape_string($_GET['pid'])))!= null) { //print_r($scs_data); $done = 1 ; } ?> Getting the above message when viewing the website, any ideas ? Please note this is a PHP install on a windows server. Thanks Quote Link to comment Share on other sites More sharing options...
trq Posted April 1, 2008 Share Posted April 1, 2008 Are you using short open tags? eg <? Is php configured to handle them? Quote Link to comment Share on other sites More sharing options...
NiPsTeRS Posted April 1, 2008 Author Share Posted April 1, 2008 Hiya. Thanks for the quick response. The website is using short tags, this was provided to me like this. I have located in the php.ini "short_open_tag" and changed to "short_open_tag = On" however the problem still persits. is there a quick way to change the short tags or am i still doing something wrong ? thanks Quote Link to comment Share on other sites More sharing options...
trq Posted April 1, 2008 Share Posted April 1, 2008 Did you restart the server after making the configuration changes? Quote Link to comment Share on other sites More sharing options...
NiPsTeRS Posted April 1, 2008 Author Share Posted April 1, 2008 Doh! Ok once i rebooted i am not getting the error however i am now getting a blank white page no website I do get the phpinfo page any ideas ? Thanks again Quote Link to comment Share on other sites More sharing options...
NiPsTeRS Posted April 1, 2008 Author Share Posted April 1, 2008 Latest Error Fatal error: Call to undefined function mysql_pconnect() in C:\Home\l\i\lichfield\www\classes\DBaccess.php on line 10 this worked in version PHP4 why has it totally broken my site :S Quote Link to comment Share on other sites More sharing options...
NiPsTeRS Posted April 1, 2008 Author Share Posted April 1, 2008 OK last Question! as you have been very helpful to date: if($_POST["currency_id"]){ $_SESSION["currency_id"] = $_POST["currency_id"]; } if($_SESSION["currency_id"]){ $currency_info = $currency->getCurrencyDetials($_SESSION["currency_id"]); if($currency_info){ $currency_info = $currency_info[0]; $currency_info['currency_symbol'] = html_entity_decode($currency_info["currency_symbol"]); $_SESSION["exchange_rate"] = $currency_info["exchange_rate"]; $_SESSION["currency_symbol"] = $currency_info["currency_symbol"]; } } ----------------------- i am getting the following error from the above lines: Notice: Undefined index: currency_id in C:\Home\l\i\lichfield\www\header.php on line 20 Quote Link to comment Share on other sites More sharing options...
trq Posted April 1, 2008 Share Posted April 1, 2008 This... if($_SESSION["currency_id"]){ should be... if (isset($_SESSION["currency_id"])) { Notices are typically caused by poor coding practices, they can either be fixed, or you can turn down your error reporting level so they don't show. As for your undefined mysql* function error. The mysql extension is no longer enabled by default. Have you enabled it manually? Quote Link to comment Share on other sites More sharing options...
NiPsTeRS Posted April 4, 2008 Author Share Posted April 4, 2008 Thank you for your help! i appear to have the website working! 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.