Jump to content

DeanWhitehouse

Members
  • Posts

    2,527
  • Joined

  • Last visited

Everything posted by DeanWhitehouse

  1. are you storing the message in this var $message?? mail($to, $subject, $message, $headers);
  2. or you could just show us the $message , and then we can solve this
  3. add error_reporting(E_ALL); to the top of both php pages
  4. this line $query = "SELECT comments.comment_image, album.image_id FROM album, comments WHERE comment_image = image_id ORDER BY comment_id"; shoud be $query = "SELECT * FROM album, comments WHERE comment_image = image_id ORDER BY comment_id";
  5. well i am to tired to write the code out , but the logic is , have a set of tags (div for me) that have the image inside , and use JS to hide the rest of the page (that needs to be in tags, div) e.g. <html> <script type="text/javascript"> document.getElementById('main').style.visibility="hidden"; function loading() { document.getElementById("main").style.visibility="visible"; document.getElementById('loader').style.visibility="hidden"; document.getElementById('loader').style.marginTop="0%"; document.body.style.backgroundColor="#CCCCCC"; document.getElementById('loader').innerHTML = ' '; } </script> <style type="text/css"> body { visibility:hidden; background-color:#000000; } </style> <body onLoad="loading()"> <div id="loader" align="center" class="test"> <h1>Loading</h1> <br /><img src="loading.gif" alt="loading" align="absmiddle"> </div> <div align="center" id="main"> Main stuff </div> </body> </html>
  6. do you want something like this http://djw-webdesign.awardspace.com/Mail%20App/
  7. have a look at innerHTML that should do it
  8. why not try elseif? it will do the same thing
  9. thnks DW im still right though
  10. try an elseif elseif(mysql_num_rows($links) >= 1)
  11. change this $db = mysql_connect($hostname, $username, $password); to $db = mysql_connect($hostname, $username, $password) or die (mysql_error());
  12. yer i just saw, i agree with DW , i have been doin this a few months and never seen a syntax error for no reason.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.