Jump to content

DeanWhitehouse

Members
  • Posts

    2,527
  • Joined

  • Last visited

Everything posted by DeanWhitehouse

  1. No it doesnt, it will submit to self if it isnt. And 404 error , is when the page is not found , check all the links and redirects.
  2. <?php $con = mysql_connect("localhost","apnimusk","password"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("my_db", $con); $result = mysql_query("SELECT * FROM album"); while($row = mysql_fetch_array($result)) { echo $row['name'] . " " . $row['age']; echo "<a href='?id='".$row['id']."'>".$row['name']."</a>'"; } mysql_close($con); ?>
  3. What your saying isnt making sense, and loose the caps lock. Please post the code you have , and the question and we will try and help.
  4. Alot to update ,lolz
  5. One not all hosts allow that , and two he would have to have the script running all the time
  6. mysql_query("UPDATE chateau SET booked = '$booked', date = '$date', name = '$name', property = '$property', adults = '$adults', children = '$children', babies = '$babies', address = '$address', daytime = '$daytime', evening = '$evening', mobile = '$mobile', email = '$email', find = '$find', cot = '$cot', chair = '$chair', linen = '$linen', cleaning = '$cleaning', catering = '$catering', other = '$other', cotcost = '$cotcost', chaircost = '$chaircost', linencost = '$linencost', cleaningcost = '$cleaningcost', cateringcost = '$cateringcost', othercost = '$othercost', totalholiday = '$totalholiday', depositagreed = '$depositagreed', firstagreed = '$firstagreed', secondagreed = '$secondagreed', thirdagreed = '$thirdagreed', due = '$due', depositreceived = '$depositreceived', firstreceived = '$firstreceived', secondreceived = '$secondreceived', thirdreceived = '$thirdreceived', duereceived = '$duereceived', totalreceived = '$totalreceived' WHERE date = '$date'") or die(mysql_error()); try that , i added the die statement
  7. show your code please
  8. That wont work, maximum exectution time is 30 seconds
  9. trust me , its the same thing.
  10. ok, solved, using string replace for anyone who wants it $name = htmlentities($_POST['dbhost']); $name = trim($name); $name = str_replace (" ", "", $name);
  11. Thats what i have already.
  12. I have this <?php $name = htmlentities($_POST['dbhost']); $name = trim($name); if(strlen($name) == 0) { echo alert("Enter your host address."); } ?> <form action="" method="post"> <input type="text" name="dbhost" value="<?php if(isset($_POST['dbhost']))echo $_POST['dbhost']; else{?>Database Host<?php } ?>" onClick="if(this.value == 'Database Host'){this.value='';}else {this.select();}" onBlur="if(this.value=='') this.value='Database Host';" title="Database Host"><br> <input type="submit" value="Continue" name="stage1" onClick="this.disabled=true"> <input type="reset" value="Reset"><br><input type="submit" value="Test" name="test"> </form> When i just enter a space , it doesnt show an error. ?? why is this
  13. Quote from: Blade280891 on Today at 08:29:54 PM If i were you , i would not use smarty, when i used it is was very problematic. Not true, Smarty is a great system. =/ darkwater how can it not be true, i did find it very problematic.
  14. If i were you , i would not use smarty, when i used it is was very problematic.
  15. I think he wants to create a table, then insert data into it, and then display it.
  16. Hey , and welcome to the site. Do you know any PHP
  17. because i think he doesnt want to enter each var that has to be updated, although that is the best way to do it.
  18. i dont think he wants to enter var1= $var etc. for each one, he could use a loop but that would take longer, and may even exceed maximum execution time.
  19. have you turned error reports on?? error_reporting(E_ALL);
  20. I would advise PHP mailer.
  21. It is realtime, and as i said it is just the principal to help get him started.
  22. Please view it first, and it was the principal ,as it can act as a chat room.
  23. can you use tags , as it makes the code easier to read.
  24. only glanced, but this looks wrong if($emails[$email]) , as $email is a undefined var, try defining it first.
×
×
  • 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.