![]()
Now you can use friendly URLs when you develop using localhost. Remove the # in #LoadModule rewrite_module libexec/apache2/mod_rewrite.so.Press Ctrl+W, type rewrite, and press enter.Go to Terminal and type sudo nano /etc/apache2/nf followed by pressing enter.Let’s make this work by enabling mod_rewrite so you can use RewriteRules. Instead of going to localhost/profile.php?user=david, it looks nicer when you can go to localhost/profile/david. Great! You now have MySQL working, so you can use localhost to store information in databases. Refresh localhost on Safari and you should see:.There's even a PDO version, if you prefer that more. CANNOT FIND MYSQL ON MAC HOW TOHowever, if you don’t understand MySQLi prepared statements as well as you’d like, check out this post for an excellent tutorial on how to prevent SQL injection □. Obviously this example is immune to SQL injection, since there are no user-inputted values. Query("SELECT message FROM myTable")->fetch_object()->message CANNOT FIND MYSQL ON MAC CODE
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |