In message <[EMAIL PROTECTED]>, Kosuke <[EMAIL PROTECTED]> writes >Hello, I'm new to this list. I'm a multimedia designer doing mainly animation, >web design, video editing, etc. Now as part of a project I'm doing, I have to >create a database using PhP and mySQL. I'm quite new to programming so if >anyone >can help me with the following problem, I'd really appreciate it. > >I made two pages. One is HTML for a FORM which sends information to another >PHP >page which then accesses a table in a database. The PHP page connects to the >database and retrieves the data from the table. This code <?php echo >$row['test_1']?> makes the data appear on the page. It works this far. However >what I'd like to know is how I can transfer the information of $row['test_1'] >to >a different page and also record the data to another table.
You want to access the data which you requested in Page1, returned in Page2, and use it in a new Page3? Normally, you would pass something unique (Row ID, or whatever you are using that is unique) to Page3, and have Page3 retrieve it again. A second method would be to put the information of $row['test_1' ] into a session variable, and access that. Which you choose depends on what you are doing. If you are going to access the data on many different pages, then session variables. If you are only going to access the data on one or two pages, then retrieve it again. HOWEVER, your subject is "info transfer to database problem" - but you don't seem to be transferring info TO a database, you seem to be transferring data FROM a database - correct? -- Pete Clark http://www.hotcosta.com http://www.spanishholidaybookings.com Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
