Jump to content

AlexanderTheGr

Members
  • Posts

    4
  • Joined

  • Last visited

    Never

About AlexanderTheGr

  • Birthday 12/07/1975

Contact Methods

  • Website URL
    http://www.warcraft.gr

Profile Information

  • Gender
    Not Telling
  • Location
    Greece

AlexanderTheGr's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi I have that query Select (sum(field1*field2)) as c from table where c > 100 group by field4 And i got that error Unknown column 'c' in 'where clause' Any idea how can i have a similar query
  2. Hi there I need your help I am developing a online shop and a have a small problem Here is the code class orders { . . . function shipping_price() { ..... } function saturday_deliv_price() { ..... } function count_basket_total_price_items() { ..... } function count_total_basket_price() { $shipping_price = $this->shipping_price(); $saturday_deliv_price = $this->saturday_deliv_price(); $count_basket_total_price_items = $this->count_basket_total_price_items(); return $shipping_price+$saturday_deliv_price+$count_basket_total_price_items; } . . . } Then i call count_total_basket_price() class template { . . . . function top_header_my_basket() { echo "Price:".orders::count_total_basket_price()."€"; } . . . . } And i am receiving that error message Fatal error: Call to undefined method template::shipping_price() in ....../orders.class.php on line 80 It seems shipping_price which is part of orders class runs via template class. And i think that not suppose to happent any idea?
×
×
  • 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.