Hi, I wonder if you can help?
I a newbie to PHP and I'm having a problem with running an update query which modifed a field via a function call.
The function strips leading "http://", trailing "index.htm(l)" etc from a URL - to tidy up entries in a links database. The function is:
function url_strip($arg_url)
.....
And works correctly when run against individual strings and updates of individual records.
However, when I use the following mysql call, it does not affect any change to the "url" field in the "links" table.
$result = mysql_db_query(reviews, "UPDATE links SET url = url_strip(url)");
Is this because functions cannot be applied withing the SQL statement and if this is the case, what would you recommend to perform this update?
Thanks.