I would like to execute the MySQL command in a script / cron shell job that returns a dynamic number of rows in which I can access a specific field from these rows. Then I would like to skip this execution of additional commands in these field entries.
Here are my two questions:
How to return a set of rows (ideally only one cell in each row) into a script shell variable?
Can I write a PHP script that returns the information I need and then save it in a script shell variable? If so, how do I run a PHP script from the shell and return it?
source
share