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]
>
;
>
>
>
> > -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
...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
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
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) {
> 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
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_
"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