php3-list | 2000051
Date: 05/06/00
- Next message: Delbono: "[PHP3] R: [PHP3] Useing PHP"
- Previous message: A Robertson: "RE: [PHP3] php editing tool of choice?"
- In reply to: Saurabh Gupta: "Re: [PHP3] Useing PHP"
- Next in thread: Saurabh Gupta: "Re: [PHP3] Useing PHP"
- Reply: Saurabh Gupta: "Re: [PHP3] Useing PHP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thank you, for your answer but i dont know how to make those programs work
toghether.
What should happen if I press Apply on a remote computer that is connected
to internet(or even on my computer) ?
It's all about how the php3 connect to mysql server.Do I have to open a
progrm first?
or it automaticaly open mysql without any program previously opened .
Thank you again .
----- Original Message -----
From: "Saurabh Gupta" <error <email protected>>
To: "Mircea Circiumarescu" <mircea <email protected>>
Cc: "php list" <php3 <email protected>>
Sent: Wednesday, April 05, 2000 1:47 PM
Subject: Re: [PHP3] Useing PHP
> Hi!
>
> I think your script is just fine.
>
> I wonder however if your first field is the primary key or somethin .. in
which
> case
> $query="INSER INTO $NumeTabel VALUES('NULL','$Name','$Phone',$EMAIL');
> will become $query="INSER INTO $NumeTabel
VALUES('','$Name','$Phone',$EMAIL');
>
>
> Also you could use
> if($query){
> PRINT "<CENTER> Your Data has been successfully updated </CENTER>";
> }else PRINT "<CENTER> Error Executing query </CENTER>";
>
>
> Mircea Circiumarescu wrote:
>
> > I have the following html page :
> >
> > <HTML>
> > <HEAD>
> > <TITLE> Formular </TITLE>
> > <BODY>
> > <DIV ALLIGN="CENTER">
> > Enter the information bellow
> > <br>
> > <BR>
> > <BR><BR>
> > <FORM ACTION ="introduce.php3" METHOD="POST">
> > Name:<BR>
> > <INPUT TYPE="TEXT" NAME="Name" SIZE="20" MAXLENGTH="20">
> > <BR><BR>
> > Phone:<BR>
> > <INPUT TYPE="TEXT" NAME="Phone" SIZE="9" MAXLENGTH="9">
> > <BR><BR>
> > E-MAIL:<BR>
> > <INPUT TYPE="TEXT" NAME="EMAIL" SIZE="20" MAXLENGTH="50">
> > <BR><BR>
> > <INPUT TYPE="SUBMIT" VALUE="Submit">
> > </FORM>
> > </DIV>
> > </BODY>
> > </HTML>
> >
> > and the following PHP script :
> >
> > <?
> > $server="localhost";
> > $User="root";
> > $Pass="";
> > $DB="example"
> > $NumeTabel="Persons";
> >
> > MYSQL_CONNECT($server,$User,$Pass) OR DIE("Unable to select DataBase");
> > <email protected>($DB) or die ("Unable connect to database");
> >
> > $NumeTabel="Persons";
> >
> > $query="INSER INTO $NumeTabel VALUES('NULL','$Name','$Phone',$EMAIL');
> >
> > $result=MYSQL_QUERY($query);
> >
> > PRINT "<CENTER> Your Data has been successfully updated </CENTER>";
> >
> > MYSQL_CLOSE();
> > ?>
> >
> > I have MySQL instaled and a database "example " created and I also have
a
> > Sambar Web server installed.
> > What else do I have to do to get the data from the html page in my
database?
> >
> > Thank you ,
> > Mircea Circiumarescu
> >
> > --
> > PHP 3 Mailing List <http://www.php.net/>
> > To unsubscribe, send an empty message to php3-unsubscribe <email protected>
> > To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
> > To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> > To contact the list administrators, e-mail: php-list-admin <email protected>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe <email protected>
> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Delbono: "[PHP3] R: [PHP3] Useing PHP"
- Previous message: A Robertson: "RE: [PHP3] php editing tool of choice?"
- In reply to: Saurabh Gupta: "Re: [PHP3] Useing PHP"
- Next in thread: Saurabh Gupta: "Re: [PHP3] Useing PHP"
- Reply: Saurabh Gupta: "Re: [PHP3] Useing PHP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

