Jump to content

MisterWebz

Members
  • Posts

    24
  • Joined

  • Last visited

    Never

Everything posted by MisterWebz

  1. <html> <body> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> Name: <input type="text" name="name" /> <input type="submit" /> </form> <p><b><?php echo $_POST['name'] ?></b></p> </html> </body>
  2. I've had this problem several times too. I think it's something caused by the beginning of your php code. Did you use session_start() at the beginning of your code?
  3. You forgot the ';'. <?php session_start(); ?>
  4. Oh, nevermind. Didn't notice you tried that already. I'm not sure what the problem is here, but try this: <?php "Amount to Donate: <strong>" . $option . "</strong><br /><br />" ?>
  5. You didn't define $DBConn . Try using something like this: <?php $con = mysql_connect("localhost","username","****"); $result = mysql_query($sql, $con) or die(mysql_error()); ?> edit: oops adrek beat me to it.
  6. Could you cut the meta refresh code out for a second? I can't quite understand the error.
  7. <?php while($row=mysqli_fetch_assoc($r)){ //code } foreach($row['cat'] as $key=>$val){ //code } ?>
  8. I've never really thought about it that way. I'm sure it wouldn't work, but i'm still curious to know why it wouldn't work.
  9. Or you could just delete the old one and send them a random generated password.
  10. I'm not sure, but it's widely used. Besides, even if they open myconnection.php, they wouldn't be able to read it.
  11. if $uself is not set or equals 0, then perform: "\r\n. If it's false, then it'll output : "\n". and it's already set to 0, so what it basically does is output "\n" all the time. <?php $headersep = (!isset( $uself ) || ($uself == 0)) ? "\r\n" : "\n" ; //What is the difference between the two? What is the purpose? ?> if the $uself is only used for this, then you can just use the code below and delete the $uself: <?php $headersep = "\r\n"; ?>
  12. No, -1 day means substracting 1 day off the amount of days the cookie has been set for. If the cookie has been set for 2 days and you're substracting 1 day, then there's still 1 day left.
  13. I noticed you have your CSS and HTML code in the same file as your PHP code. Seperate them. Use 1 file for each type of code.
  14. I don't understand what you're trying to say. Do you mean something like this? <?php $result = mysql_query("SELECT * FROM members WHERE name='$name'); ?>
  15. Could you post your updated code again? I'm not sure what you've changed.
  16. I thought quotes weren't necessary when sending a query? <?php $query = mysql_query("SELECT Title, Path FROM Games WHERE id = '$id'") or die(mysql_error()); ?>
  17. Try this: <?php mysql_select_db("Corrupshun", $con); $query = mysql_query("SELECT 'Title', 'Path' FROM 'Games' WHERE 'id' = $id"); while($row = mysql_fetch_array($query)){ echo $row['title']; echo '<br />'.$row['path']; } ?> Copy the above code and replace it with the same part in your code.
  18. When you don't even bother posting the error, why should we bother to help you? edit: <?php include_once $_SERVER['DOCUMENT_ROOT'] . '/webdevolpments/securimage/securimage.php'; $securimage = new Securimage(); if ($securimage->check($_POST['captcha_code']) == false) { header("Location: error.php") } ?> You mean something like this?
  19. <?php Array ( ◦=> Array ( [group_detail_id] => 2 [franchise_detail_id] => 7 [location_detail_id] => 13 [feed_location_stock_limit] => 10 [rule_parameter] => transmission_type_name [rule_type] => != [rule_match_value] => Automatic [rule_order] => 1 [export_feed_detail_id] => 1 [rule_set_stock_limit] => 44 ) ) Array ( ◦=> Array ( [group_detail_id] => 1 [franchise_detail_id] => 1 [location_detail_id] => 1 [feed_location_stock_limit] => 10 [rule_parameter] => marque_name [rule_type] => = [rule_match_value] => Ford [rule_order] => 1 [export_feed_detail_id] => 1 [rule_set_stock_limit] => 5 ) [1] => Array ( [group_detail_id] => 1 [franchise_detail_id] => 1 [location_detail_id] => 1 [feed_location_stock_limit] => 10 [rule_parameter] => price [rule_type] => = [rule_match_value] => 10495 [rule_order] => 2 [export_feed_detail_id] => 1 [rule_set_stock_limit] => 5 ) ) ?>
  20. ERROR - not sent. -------------------------------------------------------------------------------- "$valid_ref1" and "$valid_ref2" are incorrect within the file: contact_process.php On your system these should be set to: $valid_ref1="http://viridianecosolutions.com/Thermapure/thermapure-form.html"; $valid_ref2="http://viridianecosolutions.com/Thermapure/thermapure-form.html"; Copy and paste the two lines above into the file: contact_process.php (replacing the existing variables and settings) It looks like you've already done the above. I'll try looking at the forms this time. EDIT: the '12' means you need atleast 12 characters in the information form that needs to be filled in or something. Looks like it's been fixed though.
  21. $valid_ref1 and 2 have identical URL's, so try changing those. Also, you have a double ';;' at the end of this: <?php $valid_ref2="http://viridianecosolutions.com/Thermapure/thermapure-form.html";; ?> So change it to this: <?php $valid_ref2="http://viridianecosolutions.com/Thermapure/thermapure-form.html"; ?> And see if that helps.
  22. First of all, i don't think it's a good idea to show us your host,username and pass. And excuse me if i'm wrong, but shouldn't you send a query to find the clubs, because from what i see, you're only fetching the username and not the clubs. <?php $club = mysql_query("SELECT * FROM clubs WHERE clubId='memberId'"); $result = mysql_fetch_array($club); ?> <html> <body> <p> <?php $result['clubName']; ?> </p> <p> <?php $result['clubScore']; ?> </p> </body </html> Perhaps something like the above.
  23. I'm still new to PHP, but try this. Replace the original with this: setcookie("BusinessgameRemember", "", time() - 60*60*24*60);
×
×
  • 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.