I want to get a output like what the below command would do
but Via PHP and i want to do a where statementCode:
mysqldump --password=password --user=root hss > test_dump.sql
but this does not format it so it has the table structure etc in the outputted sql file.PHP Code:
SELECT * INTO OUTFILE '/tmp/test.sql' FROM `tblcars` WHERE `CarID` = 50
Can any one recommend a good way?