paul0078 on 04/15/12
Last Edited at 04/15/12 08:16pm
<?php $sql= 'SHOW DATABASES'; if (!mysql_query($sql)) { echo '<p>Error performing SQL statement: ' . mysql_error() . '</p>'; } else { echo '<p>SQL statement was successful and affected ' . mysql_affected_rows() . ' rows.</p>'; } ?>
Report this snippet Tweet
Comment:
You need to login to post a comment.