Jump to content

Recommended Posts

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

 

 

Link to comment
https://forums.phpfreaks.com/topic/98971-upgraded-to-php-525-help/
Share on other sites

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

 

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

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.