Jump to content

Karaethon

Members
  • Posts

    160
  • Joined

  • Last visited

Everything posted by Karaethon

  1. I am getting Fatal error: Uncaught Error: Call to a member function real_query() on null with this code: public final function Retrieve($TABLE, $CRIT){ $_query = "SELECT * FROM `{$TABLE}` WHERE "; foreach($CRIT as $_field => $info){ $_query .= " `{$_field}` = `{$info}` &&"; } if($this->LINK->real_query(rtrim($_query, ' &'))){ return $this->LINK->store_result(); } else{ return json_encode(array("Error"=>$this->LINK->errno(), "Description"=>$this->LINK->error())); } } (LINK is my mysql_connect() result.) I have tried everything i can think of, ->query, going to mysqli_query, breaking it sown and using a $result variable, but nothing seems to work...
  2. That is a fundamental difference in the abilities of the programmer. Some people can program well in a language but cannot think outside the box of their language, then there are those who can program INTO a language and do things that otherwise could not be done in that language. As an example (a poor one maybe) I have a Texas Instruments TI-NSpire CX CAS calculator, the TI-Basic has no class or includes capabilities so I took the time to write wrappers that allow me to mimic these abilities in the calculator. Thinking outside the box is what separates the programmer from the person who just plays around.
×
×
  • 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.