Jump to content

return value from SQL "CREATE"


PC Nerd

Recommended Posts

Hi,

 

Im writing a cron that maintains data between databases.  Im working with a  "CREATE IF NOT EXCISTS 'users' (~~~)" statement - but i want my cron to return a value depending on whether the SQL creates the table or not - ie like a log.

 

my output log would give me information such as:

"Creating Users

Updating User Data"

 

How can i get mysqli ( or MySQL?)  to return values based on this?

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/118755-return-value-from-sql-create/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.