Jump to content

Cal

Members
  • Posts

    67
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Cal's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. the single quotes need to be slash'd fixed: echo ' <a href="#" onclick="slidedown_showHide(\'box2\');return false;">';
  2. Try: $body = " <br><hr><br> Username: $username <br> Name: $name <br> Email: $email <br> How Did You Finding Us: $findingus <br> Rss Yes Or No: $rssfield <br> Comments: $comments <br> ";
  3. hehe ` ` } There's two little alternate quote things, remove them.
  4. $success = mail($emailField , $emailSubject, $body, $headers); You haven't defned $body, that is why there is no content, maybe you wrote the wrong variable.
  5. Can you post the whole script.?
  6. mysql_query("INSERT INTO users (username,password,email) VALUES ('$username','$password','$email')") You're missing the semi-colon on the end of that line.
  7. Redarrow, yours still have a little mistake (the single quote is in a wrong place): Fixed here: <?php mysql_query("INSERT INTO results(user, movie, input, prediction, error) VALUES('" . mysql_real_escape_string($_POST['email']) ."' , '" .mysql_real_esape_string($Movies[$m]['title']) . "','" . mysql_real_esape_string($Movies[$m]["rating"]) . "','" . mysql_real_escape_string($result) . "','" . mysql_real_esape_string($err) . "' ) ") or die(mysql_error()); ?>
  8. <?php if($_POST['submit']){ if($_POST['username'] && $_POST['password']){ if(mysql_num_rows($data) == 1){ if($data2['active'] == 1){ if($data2['banned'] == 0){ }else{ $message = "You have been banned by an administrator."; } }else{ $message = "Your account is not activated, if you have just registered check your emails for an activation email."; } }else{ $message = "Incorrect username or password."; } }else{ $message = "Enter a username and password."; } } ?> I think it's best to code in a structure like that.
  9. Try this... if($_SERVER["SCRIPT_NAME"] == '/products/expitem.php') { It should work even with $_GET variables.
  10. It's very badly structured, I definitely wouldn't use it.
  11. Use round(); round([number], [decimalplaces])
  12. echo '<div id="',$row['arena'],'">';/ What diference do the commas have?
×
×
  • 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.