Jump to content

Find and replace when doing $_post


viion

Recommended Posts

Nut working =( Trying ereg_replace because the str_replace seemed, weird.

 

$salon_name = htmlspecialchars(mysql_real_escape_string($_POST['salon_name']));

$salon_name_clean = ereg_replace('&', 'and', $salon_name);

 

SQL

$sql = "INSERT INTO salon_data SET salon_name='$salon_name_clean'

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.