LeChris
https://habbo.codes/
Recently, I started creating my personal portfolio, and I have actually got a lot done! My experience with PHP is not actually the best, and I can still be classified as a newbie. I am hoping to get the most out of PHP, and mysqli with this website and also make it a lot easier to code themes, and add to my website!
Snippets
Screenshots
Live Demo
***********************
(Will make it /blog without ?page= as index directly later on)
Snippets
PHP:
<?php
include ('application/configuration/config.website.php');
$mysqli = new mysqli("$host", "$user", "$pass", "$name");
$page= $_GET['page'];
$query = "SELECT * FROM light_pages WHERE name = '$page' ";
$query2 = "SELECT * FROM light_themes WHERE name = '$website_theme' ";
$result2 = $mysqli->query($query2);
$t = $result2->fetch_array(MYSQLI_ASSOC);
$result2 = $mysqli->query($query);
$result = $mysqli->query($query);
$c = $result->fetch_array(MYSQLI_ASSOC);
echo '<!DOCTYPE html>';
echo '<head>';
echo '<title>';
echo $website_name;
echo ' | ';
echo $c["name"];
echo '</title>';
echo '<style>';
echo $t["css"];
echo '</style>';
echo '</head>';
echo $c["content"];
$mysqli->close();
?>
Live Demo
***********************
(Will make it /blog without ?page= as index directly later on)
Last edited by a moderator: