in reply to Mysql select and store one field

Also, to avoid the Bobby Tables problem, be sure to pass the content of $url as a parameter to the query .. never, ever, EVER by direct inclusion into a string variable!