title: missing ) after argument list
body: <p>I'll show the main parts of the code as most of it is irrelevant:</p>
  
  <pre><code>    $url = $row['url'];
      echo "&lt;div id='anything'&gt;&lt;img id='$url' src='$cover' alt='$title' onclick='myFunction($url)'&gt;"; 
  </code></pre>
  
  <p>and the javascript function:</p>
  
  <pre><code> function myFunction(something) { 
   alert (something);
   }
  </code></pre>
  
  <p>I recieve the following error in firebug: </p>
  
  <pre><code>missing ) after argument list
  [Break On This Error]   
      myFunction(http://anything.com/anything...
  -------------------^
  </code></pre>
  
  <p>I am relatively new to javascript but I can tell it is obviously not allowing the ":" from the url. However, I can't change or alter the id, as I need to alert the exact id of the Image.</p>
  
  <p>I have made this work in a different format without the php, so I assume it's there where the problem lies?</p>