This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Give me one record | |
$queryFilms = "SELECT filmName, filmDescription FROM movies WHERE filmID = 10"; | |
$resultFilms = $mysqli->query($queryFilms); | |
$rowFilms = $resultFilms->fetch_assoc(); | |
// then to output | |
echo "<p>{$rowFilms['filmName']}</p>"; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name localhost; | |
root /home/website/web; | |
rewrite ^/app\.php/?(.*)$ /$1 permanent; | |
try_files $uri @rewriteapp; | |
location @rewriteapp { |