Hi
I have a COLUMN in a databse which stores a URL. I need to add new URLs WHERE there is no copy in the table.
The Problem is the WHERE clause when it comes to a string which has a '?' mark. I am using PHP to pass the stuff to the MySQL database. How can I pass a '?' (question mark) to the MySQL. I have tried all the following:
Putting it in quotes i.e. WHERE field='abd'?''
Putting it in double quotes i.e. WHERE field='abd"?"'
Using addslashes() or adding one manually i.e. WHERE field='abd/?'
Or even stciking into a vairable and trying to pass the variable.
None of the above work. I would REALLY appreciate any help.
Thanks
Taqi
I have a COLUMN in a databse which stores a URL. I need to add new URLs WHERE there is no copy in the table.
The Problem is the WHERE clause when it comes to a string which has a '?' mark. I am using PHP to pass the stuff to the MySQL database. How can I pass a '?' (question mark) to the MySQL. I have tried all the following:
Putting it in quotes i.e. WHERE field='abd'?''
Putting it in double quotes i.e. WHERE field='abd"?"'
Using addslashes() or adding one manually i.e. WHERE field='abd/?'
Or even stciking into a vairable and trying to pass the variable.
None of the above work. I would REALLY appreciate any help.
Thanks
Taqi