PHP Classes

mysqli_real_escape_string

Recommend this page to a friend!

      Ultimate MySQL  >  All threads  >  mysqli_real_escape_string  >  (Un) Subscribe thread alerts  
Subject:mysqli_real_escape_string
Summary:mysqli_real_escape_string how to use
Messages:5
Author:Lambros Karalis
Date:2014-05-16 11:18:02
 

  1. mysqli_real_escape_string   Reply   Report abuse  
Picture of Lambros Karalis Lambros Karalis - 2014-05-16 11:18:02
Hello everybody,
Congrats for your excellent job
however i have a question to make regarding the use of mysqli_real_escape_string with Ultimate MySQL.

The typical code i use in my pages is pretty much as follows

$db0 = mysqli_connect($server, $user, $pass, $base);
$myVar = mysqli_real_escape_string($db0, $myOtherVar);

I was wondering if there is a way to use mysqli_real_escape_string using your class.
The code below do not seem to work
$db = new MySQL(true, $base, $server, $user, $pass);
$myVar = mysqli_real_escape_string($db, $myOtherVar);

Do you have any suggestions?

  2. Re: mysqli_real_escape_string   Reply   Report abuse  
Picture of Salvazo Salvazo - 2014-11-27 05:41:20 - In reply to message 1 from Lambros Karalis
I have the same problem, any ideas?

  3. Re: mysqli_real_escape_string   Reply   Report abuse  
Picture of Lambros Karalis Lambros Karalis - 2014-11-27 13:27:23 - In reply to message 2 from Salvazo
Try this
mysqli_real_escape_string($db->mysql_link,$patent->getPatentTitle());

  4. Re: mysqli_real_escape_string   Reply   Report abuse  
Picture of Lambros Karalis Lambros Karalis - 2014-11-27 13:28:44 - In reply to message 2 from Salvazo
mysqli_real_escape_string($db_patent->mysql_link,$MyVar);

  5. Re: mysqli_real_escape_string   Reply   Report abuse  
Picture of Salvazo Salvazo - 2014-11-29 17:42:01 - In reply to message 4 from Lambros Karalis
working, thanks!