rswyatt
01-15-2005, 05:49 PM
Hello all -
I'm having SERIOUS brain freeze this morning. I'm trying to insert some variables that contain addresses and URLs into mysql using PHP.
The problem is that I'm obviously not formatting them right before the insert.
Does anyone have any examples of what I need to do to address fields and URL fields to prepare them for an INSERT query?
I tried addslashes() and that didn't work. I'm specifically having problems when my variable contains like an apartment number: #20 or a url like: http://www.somedomain.com
Any help is appreciated.
I'm having SERIOUS brain freeze this morning. I'm trying to insert some variables that contain addresses and URLs into mysql using PHP.
The problem is that I'm obviously not formatting them right before the insert.
Does anyone have any examples of what I need to do to address fields and URL fields to prepare them for an INSERT query?
I tried addslashes() and that didn't work. I'm specifically having problems when my variable contains like an apartment number: #20 or a url like: http://www.somedomain.com
Any help is appreciated.