0

I have 2 mysql tables i.e customers1 and customers2 with same column names. How do I search from all but only show results of 1?

Php Mysql

18th Jul 2019, 7:28 AM
joseph sakala
4 odpowiedzi
0
Ah I see, you mean you want to return only one result? I'm more familiar with SQL than php, but you would need to do something like making sure the account number column is unique, then writing an SQL query with a UNION clause that searches both tables. If that isn't your problem then tutorials on CRUD operations with PHP might help: https://www.tutorialrepublic.com/php-tutorial/php-mysql-crud-application.php
18th Jul 2019, 7:54 AM
Rincewind
Rincewind - avatar
+ 1
I'm not sure I understand, why would you need to search both tables if you only want the results from one of them?
18th Jul 2019, 7:33 AM
Rincewind
Rincewind - avatar
0
Rincewind i 1st start by selecting an option for district then search for account number. The results shows and there is an edit button. So when i press edit i want it to bring those same results on an edit form. But its not doing that.
18th Jul 2019, 7:37 AM
joseph sakala
0
Thanks alot
18th Jul 2019, 8:25 AM
joseph sakala