brsy
nah mang
- May 12, 2011
- 1,530
- 272
I am creating a site where I can share stuff like my progress on projects, give demo's, etc. Basically I am creating the projects page right now, and I need a little help. I rather have the data in a database then having to edit the file over and over. So can something like this work?
How would I possibly go about streaming the title which would go in the "<div class="headertitle"></div>" and the content to go in "<div class="content"></div>"?
Demo Link:
PHP:
<?php include("includes/config.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>zTriick.com | OOP Testing</title>
<link href="css/styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="header">
<div class="headercontent">
<div class="menu"><a href="/index">Home</a> | <a href="#prjs">Tests</a> | <a href="http://devbest.com/members/ztriick.2912/">DevBest</a></div><div class="logo">zTriick.com</div>
</div>
</div>
<?php
$sql = $mysqli->query("SELECT * FROM projects");
?>
<div class="container">
<div class="prjs">
<div class="headertitle"></div>
<div class="content"></div>
Demo Link:
You must be registered for see links