saving a into an existing DB

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

yafitmv7
New php-forum User
New php-forum User
Posts: 2
Joined: Mon Dec 10, 2012 6:47 am

saving a into an existing DB

Postby yafitmv7 » Mon Dec 10, 2012 7:24 am

Hi,

I'm new to PHP and would love some help:

I have a table and I want to take details from a row in the table and save it to an existing DB..

1) How do I take a value from a row?
2) How can I add something to an existing DB using PHP?


Thanks!

faust
New php-forum User
New php-forum User
Posts: 109
Joined: Thu May 03, 2012 7:22 am

Re: saving a into an existing DB

Postby faust » Sat Dec 15, 2012 5:28 am

What do you mean by table? Excel table or database table? If it is database table, you have to get the row (all the values or only the ones you need) with a simple select statement and then insert the values in the new table.
OR
You can use INSERT INTO ..... (SELECT ... FROM ...) statement.
Give us more details so we can help. :)


Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 1 guest

cron