[Solved] Random Sentence generator in HTML / JavaScript [closed]
Using php and javascript I created 2 files. call.php – Retrieves a sentence from a database and prints one of them (Random) index.html – A page with a button that runs a function which retrieves a sentence from call.php call.php: <?php $db_host = “localhost”; //Host address (most likely localhost) $db_name = “DATABASE_NAME”; //Name of Database … Read more