I have to insert data in two different database\'s table. I have created database1 and table1 for database1, also i have created database2 and table2 for database2.
For
Well, that's how i do it...
1 - connect --> that you are doing right 2 - check for errors 3 - USE a database (1) you want to put data in (and not 'SELECT') 4 - check for errors 5 - now INSERT items into the database THAT IS BEING USED - that is (1) 6 - check for errors 7 - USE the other database (2) 8 - check for errors 9 - INSERT the data into (2) - because that is the one in use now 10 - check for errors
Yes, be paranoid :P Hope this helps