PHP Classes

problems with sample code

Recommend this page to a friend!

      Easy Mysqli OO  >  All threads  >  problems with sample code  >  (Un) Subscribe thread alerts  
Subject:problems with sample code
Summary:update does not work
Messages:2
Author:António Lourenço
Date:2015-10-10 21:59:42
 

 


  1. problems with sample code   Reply   Report abuse  
Picture of António Lourenço António Lourenço - 2015-10-10 21:59:42
Check (sample) the lines 43 to 48.
If the parameter is a number or a variable the code it does not work (function prepareWere and update function).
The problem must also happen to insert using parameters that are not strings.
You must modify / revamp the entire class.

Antlou


  2. Re: problems with sample code   Reply   Report abuse  
Picture of Allan Klaus Allan Klaus - 2015-12-03 20:32:00 - In reply to message 1 from António Lourenço
You are using in the wrong form u always need to send a array in parameter, it's the best way when you have more than one parameter, if you have only one put it in a array.