Jump to content

Insert


guestabc

Recommended Posts

yer i have it installed though only had my files on the online server. But i have them backed up now. I've tried the mysql_real_escape_string() however i get a connection error, I guess its because i'm using Access (don't ask why, its a requirement for the project).

 

As long as you have a mysql db setup, you just have to make a connection to that DB and do not necessarily have to use that db.

 

But if you do some googling you can find functions that "simulate" the mysql_real_escape_string in fact you may be able to find it in the comments on the page.

 

However it simulates it, it is not it. So yea.

Link to comment
https://forums.phpfreaks.com/topic/135440-insert/#findComment-706028
Share on other sites

yer i have it installed though only had my files on the online server. But i have them backed up now. I've tried the mysql_real_escape_string() however i get a connection error, I guess its because i'm using Access (don't ask why, its a requirement for the project).

 

As long as you have a mysql db setup, you just have to make a connection to that DB and do not necessarily have to use that db.

 

But if you do some googling you can find functions that "simulate" the mysql_real_escape_string in fact you may be able to find it in the comments on the page.

 

However it simulates it, it is not it. So yea.

 

so i have to setup a MYSQL database along as my Microsoft Access database?  :-\

Link to comment
https://forums.phpfreaks.com/topic/135440-insert/#findComment-706290
Share on other sites

There are a few different alternative options to it:

 

http://www.google.com/search?hl=en&q=mysql_real_Escape_string+alternative&btnG=Google+Search&aq=f&oq=

 

The best example that I used to use is:

 

function my_real_escape_string($value)
{
$search = array("\x00", "\n", "\r", "\\", "'", "\"", "\x1a");
$replace = array("\\x00", "\\n", "\\r", "\\\\" ,"\'", "\\\"", "\\\x1a");

return str_replace($search, $replace, $value);
}

 

Link to comment
https://forums.phpfreaks.com/topic/135440-insert/#findComment-706297
Share on other sites

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.