Jump to content

Workaround for / in MySQL insert


monkeypaw201

Recommended Posts

lol, Ok, so i have a script that pulls it out of one table and inserts it into the other (don't ask why.. it just does.. :P ) , how would i use mysql_real_escape_string when everything is queried as its being inserted..

 

EXAMPLE:

 

$result= mysql_query("SELECT * FROM `table`") or die(mysql_error());
$row_result= mysql_fetch_array($result);

mysql_query("INSET INTO`table2` ('column','column2') VALUES ('$row_result[column]','$row_result[column]')");

 

how would i clean it?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.