Jul 15
This is a guide to manually installing the CakePHP TextMate bundle in the TextMate Windows equivalent E TextEditor.
Click to continue reading “Install CakePHP TextMate bundle in E Texteditor”
This is a guide to manually installing the CakePHP TextMate bundle in the TextMate Windows equivalent E TextEditor.
Click to continue reading “Install CakePHP TextMate bundle in E Texteditor”
Usually I insert data into a MySQL database through PHP using something like
$mysql_query = "INSERT INTO table SET name = '$name', age = '$age'"
etc.
However, if I want to insert something that contains the ‘ character, I will get a MySQL error. Instead of manually handling all this stuff, PHP offers the function mysql_real_escape_string() which solves this problem. It also prevents SQL-injections, and thus it is recommended that all user-input be handled by this function before the MySQL insert is done.
An example
$mysql_query = "INSERT INTO table SET name = '". mysql_real_escape_string($name) ."'";
I assume that you have installed Python.