Re: [PHP-DB] Re: inserting data into database!

2004-05-14 Thread Chris Berlioz
D] > > ...or whatever class contains $row-> functionality? > > > > > > > > > > > -Original Message- > > > From: Ronald Allen [mailto:[EMAIL PROTECTED] > > > Sent: Friday, May 14, 2004 4:13 PM > > > To: [EMAIL PROTECTED] >

Re: [PHP-DB] Re: inserting data into database!

2004-05-14 Thread Ronald \"The Newbie\" Allen
; > > > > > -Original Message- > > From: Ronald Allen [mailto:[EMAIL PROTECTED] > > Sent: Friday, May 14, 2004 4:13 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP-DB] Re: inserting data into database! > > > > > > Now that I closed th

RE: [PHP-DB] Re: inserting data into database!

2004-05-14 Thread Hutchins, Richard
...or whatever class contains $row-> functionality? > -Original Message- > From: Ronald Allen [mailto:[EMAIL PROTECTED] > Sent: Friday, May 14, 2004 4:13 PM > To: [EMAIL PROTECTED] > Subject: [PHP-DB] Re: inserting data into database! > > > Now that I clo

RE: [PHP-DB] Re: inserting data into database!

2004-05-14 Thread Hutchins, Richard
Have you declared a new instance of the db class anywhere on your page? > -Original Message- > From: Ronald Allen [mailto:[EMAIL PROTECTED] > Sent: Friday, May 14, 2004 4:13 PM > To: [EMAIL PROTECTED] > Subject: [PHP-DB] Re: inserting data into database! > > &g

[PHP-DB] Re: inserting data into database!

2004-05-14 Thread Ronald Allen
Now that I closed the bracket it tells me that $row is not defined. I have plagiarized from a couple of different places to come up with my code so that is the reason that it may not work that well. Here is my code right now $conn = mysql_connect($db_host,$db_user,$db_pass); if ($conn == true) {

Re: [PHP-DB] Re: inserting data into database!

2004-05-14 Thread dpgirago
> Here is my code now, but I am getting a parsing error > Parse error: parse error, unexpected $end > $db_table = 'log'; > $conn = mysql_connect($db_host,$db_user,$db_pass); > if ($conn == true) { > $insert = "INSERT INTO $db_table SET "; > $insert .= "Base = '" . $row->Base . "', "; > $inse

[PHP-DB] Re: inserting data into database!

2004-05-14 Thread Ronald Allen
Here is my code now, but I am getting a parsing error Parse error: parse error, unexpected $end $db_table = 'log'; $conn = mysql_connect($db_host,$db_user,$db_pass); if ($conn == true) { $insert = "INSERT INTO $db_table SET "; $insert .= "Base = '" . $row->Base . "', "; $insert .= "Date_and_

[PHP-DB] Re: inserting data into database!

2004-05-14 Thread Torsten Roehr
"Ronald Allen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Two questions? > First why am I getting undefined variable tmp , yet it works > Second how would I insert data into this table? > $db_table = 'log'; > $conn = mysql_connect($db_host,$db_user,$db_pass); > > if ($conn == t