none
Remove WhiteSpaces

    Question

  • <?php$username = "root";$password = "";$hostname = "localhost"; $db="dynamic";//connection to the database$dbhandle = mysql_connect($hostname, $username, $password)   or die("Unable to connect to MySQL");$selected = mysql_selectdb($db); $module_id=$_GET['module_id'];$modname_query ="select * from module_image where module_id = $module_id";$resultModName =mysql_query($modname_query);if(!$resultModName){die('Invalid Query:' .mysql_error($resultModName));} //$dataqryMod = mysql_fetch_array($resultModName); echo '<div id="cropImage" style="border:1px dotted black;">';while ($dataqryMod = mysql_fetch_array($resultModName)) { echo "<script>function goclick(meh){    var x = screen.width/2 - 700/2;    var y = screen.height/2 - 450/2;    window.open('http://localhost/elementalcrafts/source/edit_image.php?img_id= $dataqryMod['img_id']','sharegplus','height=485,width=700,left='+x+',top='+y);}</script>"; echo '<a href="#"  onclick="goclick(this)"><img style="height: 30%;width: 30%;float: left;border: 1px solid black;margin-right: 3%;margin-padding: 18px;" src="http://localhost/elementalcrafts/source/imagemlp/'.$dataqryMod["image_name"].'" /></a>';}echo '</div>';echo '<a  href= "#" onclick="goclicky(this)"><p>Upload new pic..</p></a>';?>
    this is being my code and i m getting a whitespace error,dnt know where the error is.Please help  me out.
    • Edited by saeyu Tuesday, January 22, 2013 6:39 AM
    Tuesday, January 22, 2013 6:38 AM

All replies

  • If you put some effort into the question, I'll put some effort into an answer.


    Rob

    Tuesday, January 22, 2013 3:24 PM
  • Hi Saeyu,

    Could you please post the code more clearly?

    It is hard for the experts in this forum troubleshoot your issue by moving the slider.

    Thanks for your understanding and support.


    Iric Wen
    TechNet Community Support

    Thursday, January 24, 2013 8:14 AM
    Moderator
  • It's not just unclear, it's wrong. Everything from // to ?> is a comment.

    Rob

    Monday, January 28, 2013 12:52 PM