Categories > TinyButStrong general >

Escape String

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Mike
Date: 2012-02-26
Time: 02:00

Escape String

How would I do an escape string using TBSSql MySQLi.

I''ve tried

$user = $Db->_Dbs_ProtectStr($user);

But, I get an object error.
By: Skrol29
Date: 2012-02-26
Time: 22:34

Re: Escape String

Hi,

You should never need that because TbsSQL protect data very well.

Nevertheless, you can do it like this:
$user = $Db->GetSql('%1%', $user);