clothes store     


Having some problems with my..

Can someone tell me what the..

How to creat account using w..

MAILER-DAEMON@yahoo.com wrot..

How long does it usually tak..

Failure notice for message I..

How can i download videos of..

Heres the php script but i c..

Is it true that i won a Glob..

This message is realy from Y..

HOSTS file blocks virus chec..

Is what they're doi..

Does anyone have any contact..

Today 1 mesage yahoo sent to..

Daniel woods e~mail me and h..

Yahoo service problems- Host..

How to configure Yahoo! MX r..

Does complain make you sinfu..

Aanybody???? JONAS?

What is a good web host....?

Is starting a SiteBuilder We..

How can I get my Yahoo accou..

Is there such a thing as an ..

How much "bandwidth&quo..

Anyone know a free host, PHP..

I have created a website at ..

Look here urgent?

My php scripts dont work in ..

Host with mail() support?

Can't Access all We..

I need a good, free web host..

What happened to Syncromesh...

How do i stop bots?

Networked PC can't ..

What the freak!?

WHAT DO THINK OF www.listcen..

Yahoo hosts my 5 web pages. ..

Outlook Express problem erro..

Yahoo is blocking our mail (..
 
Why does my php script create two entries in my mysql db for every for..    [Imwebhost]

here's my script:

<?php

$name=$_POST['name'];

$email=$_POST['email'];

$pass=$_POST['pass2'];

$year=$_POST['year'];

$month=$_POST['month'];

$day=$_POST['day'];

$skype=$_POST['skype'];

$yahoo=$_POST['yahoo'];

if ($name == "" || $email == "" || $pass == "") {

echo "Please fill in all the fields";

}

$username = "username";

$password = "password";

$host = "localhost";

mysql_connect($host,$username,$passwor... or die("No connect");

mysql_select_db("dbname") or die("Unable to select database");

$query = "INSERT INTO members VALUES

('','$name','$email','$pass','$year','...

mysql_query($query) or die(mysql_error());

$ok = "<html><head><title>ok</title></head><bo...

if (mysql_query($query)) {

echo($ok);

}

else {

}

?>

Why does my php script create two entries in my mysql db for every form submitted?

You are calling mysql_query($query) twice - once after you declare it, and again inside the if block. You should do something like $result = mysql_query($query) or die....


[Imwebhost]


On the free version of Yahoo Geocities web space, how can I ..
Error with Outlook Express?
I just changed from dial up to DSL. For some reason (not fir..
Does anyone know how to re-activate your inactive yahoo acco..
Has Yahoo mail changed recently, I can no longer send to one..
Website,domain, dns problems?
I know i previously asked this but i did not get a goo answe..
Best webhost for photography website?
Why are our Yahoo emails are being blocked by Hotmail?
Ive just downloaded mail assisstant with voice, in setup it ..

Google


Comment
Name: Name:  Password:   Register?
Comment:
Face  
 

links:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 email hosting 25