Jump to content

DeanWhitehouse

Members
  • Posts

    2,527
  • Joined

  • Last visited

Everything posted by DeanWhitehouse

  1. 1. yes , as far as i can see 2. not sure , try it 3.yes, if($day<01||$day>31){ what if you put 7 , will it still work, try it
  2. so you want to get the path of the script , i dont know if you can get one like /home/public_html/ but $_SERVER['DOCUMENT_ROOT']; may be what you want
  3. http://www.tizag.com/phpT/ http://www.w3schools.com/PHP/
  4. I would advise you to read some PHP tutorials , and learn stuff. As we are not here to write all the code for you, and it helps you fix small errors like the one with the $_GET statement.
  5. this may do it http://uk3.php.net/manual/en/function.stristr.php
  6. Yes i did understand you, i have shown you how to make something selected, i am not writing it all for you. Please try your self. All you need to do is add an if statment. There are two ways , first: <option selected="selected" value="<?php if($a == 4) echo 4; ?>"><?php if($a == 4) echo 4; ?></option> second: <option value="2" <?php if($a == 2) echo "selected='selected'";?>>123</option> <option value="3" <?php if($a == 3) echo "selected='selected'";?>>test</option> <option value="4" <?php if($a == 4) echo "selected='selected'";?>>something</option>
  7. If you want help dont act like a jerk, W3C compliancy is what you should aim for when coding , and it can cause wierd display errors in some browsers. If you dont want to listen to our advice , dont ask for it.
  8. is character the correct table name and try this sql = "(SELECT COUNT(*) FROM Character WHERE user = '".$name."' AND password = '".$pass."')";
  9. are you connected to the database and also add a die to the query $loginresult = mysql_query($sql) or die(mysql_error());
  10. maybe because you are on private dedicated servers. Anyway , register an email with the host and try it, note* to use phpmailer, you need an email registered with the host.
  11. Please take our advice ,and fix them. How do you know what one relates to your problem.
  12. <option selected="selected" value="<?php echo $a; ?>"><?php echo $a; ?></option>
  13. dont double post. http://www.phpfreaks.com/forums/index.php/topic,213402.0.html
  14. I think it is , thats why the SMTP error is appearing, as when i tried sending emails via mail(); with my hotmail address, it wouldnt send, i contacted my host and they said it has to be one registered on the server. So i used PHPmailer, and set it in the SMTP settings.
  15. As far as i know the from email , must be registered on the host , unless you set the SMTP email somewhere else , for example by using PHPmailer. So you need to change the from email to one that is set up on the host.
  16. do you not need to do , fopen and fwrite.
  17. As i have said the email must be from an email registered on the host. this is wrong 'From: WebContact';
  18. do you want to run it the same time , every day?
  19. If i read it correctly , you dont have any headers, except reply to, wheres the from header? And add error_reporting(E_ALL); to the top
  20. The problem with that is that you will be relying on people coming on your site frequently.
  21. The from address must be an email registered with the host on the server, no other emails will work.
  22. thats because you need to put whatever you want it to be there. I added $row['id']; as an example.
  23. are you using the updated one <?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); ?>
×
×
  • 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.