[PHP-DB] data is not entering in created database

2004-12-24 Thread amol patil
hallo , i have wriiten simple php script , below. created databse dollar1_allinfo with table 'totalinfo' but on clicking submit button , information entered is not entering in database. also, echo statements are also not displaying after submit ?php if ($submit) { $db =

Re: [PHP-DB] data is not entering in created database

2004-12-24 Thread graeme
I suspect that your $submit is not set up, try the following echo statements before the if statement: echo --$submit--; echo --$_POST[submit]--; amol patil wrote: hallo , i have wriiten simple php script , below. created databse dollar1_allinfo with table 'totalinfo' but on clicking submit

Re: [PHP-DB] data is not entering in created database

2004-12-24 Thread Mike S.
hallo , i have wriiten simple php script , below. created databse dollar1_allinfo with table 'totalinfo' but on clicking submit button , information entered is not entering in database. also, echo statements are also not displaying after submit ?php if ($submit) { $db =

[PHP-DB] Table Info

2004-12-24 Thread Brad Ciszewski
I am having problems coming up with a way to do this. I highly appreciate any help what so ever. Problem: I need to extract data from the database, and display it on a table with 2 columns. It has to alternate columns automaticly, for each row. Like I said earlier, any help is highly

[PHP-DB] Handling DB query errors

2004-12-24 Thread Todd Cary
I am not sure about how to properly handle DB Query errors. Here is a typical query where the possible is NOT handled. Any suggestions are welcomed e.g. how to code the query; how to have an error page; how to handle errors produced by the Interbase server. /* Get member data */ function

RE: [PHP-DB] Table Info

2004-12-24 Thread Bastien Koert
how is the data to be presented? is it top to bottom left to right or left to right then top to bottom? bastien From: Brad Ciszewski [EMAIL PROTECTED] To: php-db@lists.php.net Subject: [PHP-DB] Table Info Date: Fri, 24 Dec 2004 10:29:58 -0600 I am having problems coming up with a way to do this.

RE: [PHP-DB] Handling DB query errors

2004-12-24 Thread Bastien Koert
function db_get_member_data($dbh, $member_id) { $stmnt = SELECT * FROM Member WHERE MEM_MEM_ID=' . $member_id . '; $sthdl = ibase_query($stmnt,$dbh); if ( ibase_errcode != 0 ){ //call some function to tell the user there is an error }else{ return $sthdl; }//end if }

Re: [PHP-DB] Table Info

2004-12-24 Thread bandito
define 2 variables, $col1data and $col2data if it is to alternate based on the count of the row (regularly, every other row) use the modulus operator in an if statement and assign data to proper column. then just print both, the wrong one will be empty and the right one will have data if it is to

Re: [PHP-DB] want to execute comments on new pages after clicking submit.

2004-12-24 Thread amol patil
hallo, i wrote this echo Submit = $submit; before 'if statement' but , the sentences in echo statements are executing on same pages , showing original page with these echo statement. i want to execute , some comments and tables on same page(without original contents) or on new

Re: [PHP-DB] want to execute comments on new pages after clicking submit.

2004-12-24 Thread graeme
The purpose of putting the echo Submit = $submit; is to find out what is happening with your code. Once everything is working correctly they will be removed. What you need to find out is what is being held in the variable submit when you move from one page to the next, a point when you are

[PHP-DB] want to execute comments on new pages after clicking submit.

2004-12-24 Thread amol patil
hallo, thanks for reply, but code is like below , i want comment in echo statemets to executed on same page(without pages original contenti.e only echo comments )or on new pages how to link new pages in php, after clicking submit also. [these first two echo statements are giving parse

[PHP-DB] how to connect new html page in PHP.

2004-12-24 Thread amol patil
hallo , i wrote this , echo Submit = $submit;as you said. but comments in echo statements are appearing on same pages before clicking submit button and in between same pages content . i want these comment on new page or same page but without original content of that page how to