-
Posts
2,527 -
Joined
-
Last visited
Everything posted by DeanWhitehouse
-
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
-
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
-
http://www.tizag.com/phpT/ http://www.w3schools.com/PHP/
-
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.
-
this may do it http://uk3.php.net/manual/en/function.stristr.php
-
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>
-
Safari Not Displaying Something In Input Box?
DeanWhitehouse replied to spiceydog's topic in PHP Coding Help
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. -
is character the correct table name and try this sql = "(SELECT COUNT(*) FROM Character WHERE user = '".$name."' AND password = '".$pass."')";
-
are you connected to the database and also add a die to the query $loginresult = mysql_query($sql) or die(mysql_error());
-
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.
-
Safari Not Displaying Something In Input Box?
DeanWhitehouse replied to spiceydog's topic in PHP Coding Help
Please take our advice ,and fix them. How do you know what one relates to your problem. -
<option selected="selected" value="<?php echo $a; ?>"><?php echo $a; ?></option>
-
A php mailing application. Google it
-
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.
-
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.
-
do you not need to do , fopen and fwrite.
-
require help on contact form please.
DeanWhitehouse replied to utdfederation's topic in PHP Coding Help
As i have said the email must be from an email registered on the host. this is wrong 'From: WebContact'; -
do you want to run it the same time , every day?
-
require help on contact form please.
DeanWhitehouse replied to utdfederation's topic in PHP Coding Help
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 -
The problem with that is that you will be relying on people coming on your site frequently.
-
The from address must be an email registered with the host on the server, no other emails will work.
-
thnks for pointing that out , sasa.
-
thats because you need to put whatever you want it to be there. I added $row['id']; as an example.
-
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); ?>