Jump to content

spiderwell

Members
  • Posts

    1,008
  • Joined

  • Last visited

Posts posted by spiderwell

  1. lots of nasty nested if conditions!  ...anyway the registration goes to fff.html, back tracking from there I noticed you store your SQL INSERT statement in $aql, and then execute using $sql, typo perhaps?

  2. i dont think you need the ($adopt == $row['id'])  for a start as that will always be true anyway. you missed out passing the record set result to $row

     

    <?php
    $con = mysql_connect("localhost","","");
    if (!$con)
      {
      die('Could not connect: ' . mysql_error());
      }
    
    mysql_select_db("a8784hos_adopts", $con);
    $adopt = $_POST['adoptid'];
    $uniquecode = $_POST['uniquecode'];
    $result = mysql_query("SELECT uniquecode, id FROM id WHERE id='$adopt'");
    mysql_fetch_array($result);
    while ($row = mysql_fetch_array($result)){
    if  ($uniquecode == $row['uniquecode']){
    mysql_query("DELETE FROM id WHERE id='$adopt'");
    echo 'Done! <br/><br/><a href="tester.php">Go back....</a>';
    }
    else {
    echo 'Bad unique code. <br/><br/><a href="tester.php">Go back....</a>';
    }
    }
    ?>
    

     

  3. stop sending them.

     

    you need to contact your hosts and find out how many mails can be sent at once/over a period or ask them about how to do large mailshots for your site. most hosts have some kind of throttle on number of emails sent as standard anti spam procedures

  4. i dont think you need the single quotes around the echo statement, but you do need them around the $data array,

    try

    
    $PlayerDefaultSkin = $data['PlayerDefaultSkin'];
    
    <img src="skins/<?php echo $PlayerDefaultSkin; ?>.png">
    

     

    also check src path, is it /skins/ or just skins/

×
×
  • 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.