= @mysql_field_flags ($id, $i); $res["meta"][$res[$i]["name"]] = $i; } } // free the result only if we were called on a table if ($table) { @mysql_free_result($id); } return $res; } /* public: find available table names */ function table_names() { $this->connect(); $h = @mysql_query("show tables", $this->Link_ID); $i = 0; while ($info = @mysql_fetch_row($h)) { $return[$i]["table_name"] = $info[0]; $return[$i]["tablespace_name"] = $this->Database; $return[$i]["database"] = $this->Database; $i++; } @mysql_free_result($h); return $return; } /* private: error handling */ function halt($msg) { $this->Error = @mysql_error($this->Link_ID); $this->Errno = @mysql_errno($this->Link_ID); if ($this->locked) { $this->unlock(); } if ($this->Halt_On_Error == "no") return; $this->haltmsg($msg); if ($this->Halt_On_Error != "report") die("Session halted."); } function haltmsg($msg) { printf("query($query)) { $this->halt("lock() failed."); return false; } $this->locked = true; return true; } function unlock() { // set before unlock to avoid potential loop $this->locked = false; if(!$this->query("unlock tables")) { $this->halt("unlock() failed."); return false; } return true; } /* public: evaluate the result (size, width) */ function affected_rows() { return @mysql_affected_rows($this->Link_ID); } function num_rows() { return @mysql_num_rows($this->Query_ID); } function num_fields() { return @mysql_num_fields($this->Query_ID); } /* public: shorthand notation */ function nf() { return $this->num_rows(); } function np() { print $this->num_rows(); } mount, status, comments, dt, product_id, buyer_id, session) values (NULL, 0, 0, '$amount', 2, 'This was a split, affiliate already paid directly', NOW(), '$pro $trial_template1=str_replace("{trial}",$trial,$trial_template1); }else{ $recurring_template1=str_replace("{trial}","",$recurring_template1); } $pay_buttons=str_replace("{recurring_paypal}", $recurring_template, $pay_buttons); $pay_buttons=str_replace("{trial}", $trial, $pay_buttons); if ($times==1){ $pay_buttons=str_replace("{src}", "0", $pay_buttons); }else{ $pay_buttons=str_replace("{src}", "1", $pay_buttons); } $pay_buttons=str_replace("{paypal_email}", $paypal_email, $pay_buttons); $pay_buttons=str_replace("{on_click_paypal}", $on_click_paypal, $pay_buttons); $pay_buttons=str_replace("{stormpay_email}", $stormpay_email, $pay_buttons); $pay_buttons=str_replace("{id}", $item_number, $pay_buttons); $pay_buttons=str_replace("{button_id}", $button_id, $pay_buttons); $pay_buttons=str_replace("{show_shipping_paypal}", $show_shipping_paypal, $pay_buttons); $pay_buttons=str_replace("{shipping_fee}", $shipping_fee, $pay_buttons); $pay_buttons=str_replace("{ask_shipping_adress}", $ask_shipping_adress, $pay_buttons); $pay_buttons=str_replace("{shiping_country_list_paypal}", "$shiping_country_list_paypal", $pay_buttons);
Fatal error: Class cdb: Cannot inherit from undefined class db_sql in /home/sites/searchbasic.com/public_html/inc.all.php on line 59