Re: [PHP] Insert in database

2002-04-30 Thread Jason Wong
On Tuesday 30 April 2002 18:15, Ford, Mike [LSS] wrote: > > echo("Hi ",$_POST['fname']," ",$_POST['lname'],"Thank You For > > Registering !!!"); > You don't need to go as far as that. Just removing the parentheses from > the original statement would have done the trick -- the comm

RE: [PHP] Insert in database

2002-04-30 Thread Ford, Mike [LSS]
> -Original Message- > From: Justin French [mailto:[EMAIL PROTECTED]] > Sent: 30 April 2002 00:04 > > instead of > > echo("Hi ",$_POST['fname']," ",$_POST['lname'],"Thank You For > Registering !!!"); > > try > > echo "Hi ".$_POST['fname']." ".$_POST['lname']."Thank You For > Registerin

Re: [PHP] Insert in database

2002-04-29 Thread Justin French
; $exeQuery=odbc_do($connectionString,$query); >> odbc_close($connectionString); >> >> echo("Hi ",$_POST['fname']," ",$_POST['lname'],"Thank You For >> Registering !!!"); >> } >> >> ?> >> >&

Re: [PHP] Insert in database

2002-04-29 Thread Arpan De
ose($connectionString); > > echo("Hi ",$_POST['fname']," ",$_POST['lname'],"Thank You For > Registering !!!"); > } > > ?> > > Rick > > "It is the mark of an educated mind to be able to entertain a thought &

Re: [PHP] Insert in database

2002-04-29 Thread Miguel Cruz
On Mon, 29 Apr 2002, Richard Baskett wrote: > Well you don't have an curly braces anywhere in your code.. > > Try this: > > > If (($_POST['fname']=="") || ($_POST['lname']=="") { > echo("Please Enter Information In All The Fields !!!"); } > Else { > $connectionString=odbc_connect("PHPI

Re: [PHP] Insert in database

2002-04-29 Thread Richard Baskett
02:34:53 +0530 > To: [EMAIL PROTECTED] > Subject: [PHP] Insert in database > > I have a simple HTML Form where a user has to enter his first & last name > which will be inserted in a SQL Server database table. The PHP code which > does the needful is as follows (I have created a DS

[PHP] Insert in database

2002-04-29 Thread Arpan De
I have a simple HTML Form where a user has to enter his first & last name which will be inserted in a SQL Server database table. The PHP code which does the needful is as follows (I have created a DSN named PHPInsert successfully as well): The above code, when executed, throws the following err