Nile... another problem came up... 
i am using your method and the variable is being echoed fine.
but when i am using it on a sql query a few lines lower i am getting an error..
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL...
Code:
$ar = "<script type='text/javascript'>document.write(ar);</script>";
//$ar = '124356';
echo "ar-->".$ar;
$result = mysql_query ("SELECT thumb,title,descr FROM videos WHERE url='$ar' LIMIT 1");
while($row = mysql_fetch_array($result))
the echo works fine but i get the error on the while line.
if i use the $ar = '124356'; things are working so there is no some other error...
could you explain this?
Bookmarks