I am 开发者_开发问答trying to use mysqli in object orientated way, this is the code: class conect {
Well I tried to extend the class mysqli with its inheritance called Database, which can retrieve database info easily(in one line if done correctly). It does not work out so far, as I am getting the f
My db table looks like that I\'m trying to get page title and content from this function function page($current, $lang){
I have a form that submits to itself and when I submit I get a header and the background but no content on the page, nothing below title in the html. It doesnt write to my database either, no erro开发
I have been writing php and mySQL functions all day and as I was writing the simplest part of my project I have hit a wall.
My query keeps failing to fetch. It works just fine in my SQL Console so I\'m at a loss. Here\'s the code.
My php code looks like that if (isset($_REQUEST[\'term\'])) { $term = trim(strip_tags($_REQUEST[\'term\']));//retrieve the search term that autocomplete sends
I\'m just getting into MySql/MySqli really, and I\'m using prepared statements. The whole of my script is working fine except this single line:
This question already has answers here: How can I prevent SQL injection in PHP? (27 answers) Closed 2 years ago.
I created a function i intent to use in running my queries: function selectquery ($sql, $params) { $connection = getConnect ();