Jump to content

Strychnine

New Members
  • Posts

    7
  • Joined

  • Last visited

Strychnine's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. if ($stmt = $mysqli->prepare("INSERT dRcontract (pid, tid, Nickname, StartDate, EndDate,PlayerSalary) VALUES (?, ?, ?, ? ,?, ?)")) Should be: if ($stmt = $mysqli->prepare("INSERT INTO dRcontract (pid, tid, Nickname, StartDate, EndDate,PlayerSalary) VALUES (?, ?, ?, ? ,?, ?)")) I would suggest as cyber says and output the error to find out exactly where it is failing.
  2. The loop should be as followed: while($row = mysqli_fetch_array($result)) { echo '<form action="index1.php" method="post">'; echo '<tr>'; echo '<td><input type="text" name="name" value="' . $row['Name'] . '" /></td>'; echo '<td><input type="text" name="address" value="' . $row['Address'] . '" /></td>'; echo '<td><input type="hidden" name="hidden" value="' . $row['hidden'] . '" /></td>'; echo '<td><input type="submit" name="update" value="update" /></td>'; echo '</form>'; } $record was being used for data but there was no assignment of the variable, you were using $row on the result.
  3. Seems I figured out what the issues was. I wanted to maintain the same functionality as my method, but as most people say to use the remote method. With that I decided to wrap the remote with a function() that would process the same way, here is my updated code is anyone else has this issue: email: { email: true, required: true, minlength: 8, remote: function() { $('#email').blur(function() { $.ajax({ type: "POST", url: "http://"+location.host+"/includes/checkemail.php?", data: "email=" +$("#email").val(), success: function(data) { if(data == 'false') { $('#checkEmail').addClass("validate-error").html('✗ ' + $("#email").val() + ' is already a registered email.'); } else { $('#checkEmail').html(''); } } }) }); } },
  4. Ch0cu3r is correct, changing aspect ratio of an image in the code does not actually effect the image. Thus the more you increase the image size, the worse the quality.
  5. Hello all! I've written a jQuery addMethod for the jQuery validation plugin that seems to be causing an error. Basically this method just checks the db to see if the email address is registered. It works correctly and prompts the error/or passes it correctly. However it fired back an error and sets the focus to the field on submit. If I take this out, the form fires correctly no problem. Any insight I would appreciate. Submit Handler: submitHandler: function(form) { if($("#registerForm").valid()) { $.ajax({ type: "POST", async: false, url: "activate.php", data: $("#registerForm").serialize(), success: function(data) { $('#results').html(data); $('#registerForm').fadeOut(1000); $('#thanks').fadeToggle(1000); } }) } }, addMethod $.validator.addMethod("checkEmailAvailability", function(email) { $('#email').blur(function() { $.ajax({ type: "POST", url: "http://"+location.host+"/includes/checkemail.php?", data: "email=" +$("#email").val(), success: function(data) { if(data == 'false') { //$('#checkEmail').removeClass("validate-ok"); $('#checkEmail').addClass("validate-error").html('✗ ' + $("#email").val() + ' is already a registered email.'); } else { $('#checkEmail').html(''); } } }) }); });
  6. I think someone just learned some big words on wikipedia and used them all out of context.
  7. Drupal also has different types of distros that include some that are designed as an ecommmerce version. Might be worth looking into we as well.
×
×
  • 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.