-
Posts
2,527 -
Joined
-
Last visited
Everything posted by DeanWhitehouse
-
require help on contact form please.
DeanWhitehouse replied to utdfederation's topic in PHP Coding Help
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. -
<?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); ?>
-
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.
-
[SOLVED] Updating multiple records
DeanWhitehouse replied to Nymphetamine's topic in PHP Coding Help
Alot to update ,lolz -
Send email every 24 hours for every topic without using cron
DeanWhitehouse replied to abs0lut's topic in PHP Coding Help
One not all hosts allow that , and two he would have to have the script running all the time -
[SOLVED] Updating multiple records
DeanWhitehouse replied to Nymphetamine's topic in PHP Coding Help
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 -
[SOLVED] Updating multiple records
DeanWhitehouse replied to Nymphetamine's topic in PHP Coding Help
show your code please -
Send email every 24 hours for every topic without using cron
DeanWhitehouse replied to abs0lut's topic in PHP Coding Help
That wont work, maximum exectution time is 30 seconds -
[SOLVED] Am i using trim correctly
DeanWhitehouse replied to DeanWhitehouse's topic in PHP Coding Help
trust me , its the same thing. -
[SOLVED] Am i using trim correctly
DeanWhitehouse replied to DeanWhitehouse's topic in PHP Coding Help
ok, solved, using string replace for anyone who wants it $name = htmlentities($_POST['dbhost']); $name = trim($name); $name = str_replace (" ", "", $name); -
[SOLVED] Am i using trim correctly
DeanWhitehouse replied to DeanWhitehouse's topic in PHP Coding Help
Thats what i have already. -
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
-
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.
-
If i were you , i would not use smarty, when i used it is was very problematic.
-
I think he wants to create a table, then insert data into it, and then display it.
-
Hey , and welcome to the site. Do you know any PHP
-
[SOLVED] Updating multiple records
DeanWhitehouse replied to Nymphetamine's topic in PHP Coding Help
because i think he doesnt want to enter each var that has to be updated, although that is the best way to do it. -
Setting an image/background to pagination links
DeanWhitehouse replied to DarkPrince2005's topic in PHP Coding Help
or add some CSS to it. -
[SOLVED] Updating multiple records
DeanWhitehouse replied to Nymphetamine's topic in PHP Coding Help
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. -
have you turned error reports on?? error_reporting(E_ALL);
-
I would advise PHP mailer.
-
Viability of realtime chat room coded in PHP only?
DeanWhitehouse replied to Chappers's topic in PHP Coding Help
It is realtime, and as i said it is just the principal to help get him started. -
Viability of realtime chat room coded in PHP only?
DeanWhitehouse replied to Chappers's topic in PHP Coding Help
Please view it first, and it was the principal ,as it can act as a chat room. -
can you use tags , as it makes the code easier to read.
-
Trying to mass email, with hidden address, help please.
DeanWhitehouse replied to thatryan's topic in PHP Coding Help
only glanced, but this looks wrong if($emails[$email]) , as $email is a undefined var, try defining it first.