I have one more Query on MYSQL
I need to create files from MySQL Tables
For example there is MYSQL DB called Customers with table information with following fields
Cust_id, cust_name, cust_phone,_cust_ordid, cust_addr, cust_phone
I want to grab all this info in a text file or a pdf file,can this be possible using PHP or i need to use shell script.
Help appreciated
Thanks in advance
CJ
There are a few ways to do this:
mysql -u $user -p $dbname -e "SELECT ... FROM $tbl" > out.txt