
Being MCSD has nothing to do with cleaner code.
How could this hapen to meeeeeeeeeeeeeee?lol.
Technically it does.
Part of the certification process establishes whether or not you are able to program in clean and efficient program structures. For example:
- Functions
- Classes
- Non-Repetitive Code
- Programmers initiative to overcome problems logically so that future viewers of the source can understand how the system works.
Certification is not just about knowledge, it requires all aspects of programming to be covered and met to a required standard.
The way you have done this site off line script is a very bad way of doing it.
Not bad but as already said by others it's not very neat.
Also it's a good idea if you're going to make a web design company that you make you're site is XHTML valid.
so has anyone got help with my probleam or what
Post your full code please I followed the directions and it worked ;S
What can I say - I'm starting out, it should be HTML 4.01 Transitional, but I'll check it out, I'll try and revise it tonight and repost a better one.
How could this hapen to meeeeeeeeeeeeeee?lol.
<?php // this starts PHP coding. a bit like <html>
error_reporting(0) // this turns off error_reporting for stuff like notices
$host = "**** OFF YOU HACKER IM NOT POSTING MY DETAILS"; // this is your host
$user = "**** OFF YOU HACKER IM NOT POSTING MY DETAILS"; // your username
$db ="**** OFF YOU HACKER IM NOT POSTING MY DETAILS"; // your database
$pass = "**** OFF YOU HACKER IM NOT POSTING MY DETAILS"; // your password
mysql_connect($host, $user, $pass); // connect function with your vars
mysql_select_db($db); // selecting your database
$query = 'SELECT status FROM `status`'; // this is your SQL query
$result=mysql_query($query); // this makes the SQL query
$status = mysql_fetch_assoc($result); // this makes sense of the results.
if($status[status] == "offline") die("This website is under maintenance, please check back later"); // this is asking if the status is equal to 'offline' then kill the rest of the script and display an error message
?> // closes php with the closing tag
<html><head><title>SimplyHabbo.com ~ Were Back Omggzz ~</title>
<link href="images/blue.css" rel="stylesheet" type="text/css">
</head>
<body style="background-image: url('http://habboring.com/goodies/webbgs/newbg_blue.gif')">
<table border="0" cellpadding="20" cellspacing="0" width="100%">
<tbody><tr>
<td background="images/titlebars/blue/title_bar.PNG" height="85">
<img border="0" src="font_1201419153.gif" width="223" height="24"></td>
</tr>
</tbody></table>
<center>
<table style="margin-bottom: 4px;" border="0" cellpadding="0" cellspacing="0" id="table1" width="696">
<tr>
<td align="left" valign="middle" width="8" style="border-right-style: none; border-right-width: medium">
<img src="left.gif" height="20" width="8"></td>
<td style="font-family: Tahoma; font-size: 11px; background-image: url('url(bg.png');border-left-style:none; border-left-width:medium; border-right-style:none; border-right-width:medium; border-top-style:solid; border-top-width:1px; border-bottom-style:solid; border-bottom-width:1px" valign="top" bgcolor="#FFFFFF">
<div id="message">
DJ Says: Welcome to SimplyHabbo!<br />
</div>
</td>
<td align="right" valign="middle" width="9" style="border-left-style: none; border-left-width: medium">
<img src="right.gif" height="20" width="9"></td>
</tr>
</table>
<br>
<table border="0" cellpadding="0" cellspacing="0" width="700">
<tbody><tr>
<td valign="top">
<table border="0" cellpadding="4" cellspacing="0" width="190">
<tbody><tr>
<td background="images/navtitle.gif" height="23">
<font color="#FFFFFF"><b> Navigation</b></font></td></tr>
<tr>
<td background="images/subbg.PNG">
<a href="index.php?page=home">Hello</a><br>
<a href="index.php?page=news">Hi</a><br>
</td>
</tr>
<tr>
<td background="images/subbottom.gif" height="10">
</td>
</tr>
</tbody></table>
<br>
<table border="0" cellpadding="4" cellspacing="0" width="190">
<tbody><tr>
<td background="images/usrsys.gif" height="23">
<b><font color="#FFFFFF"> Usersystem </font><font color="#FF0000" size="1">
New!</font></b></td></tr>
<tr>
<td background="images/subbg.PNG">
<iframe width="174" height="163" name="usr" border="0" frameborder="0"></iframe></td>
</tr>
<tr>
<td background="images/subbottom.gif" height="10">
</td>
</tr>
</tbody></table>
</td>
<td width="10">
</td>
<td valign="top">
<table border="0" cellpadding="4" cellspacing="0" width="501">
<tbody><tr>
<td background="images/maintitle.gif" height="23">
<font color="#FFFFFF"><b> SimplyContent </b></font>
</td></tr>
<tr>
<td background="images/mainbg.PNG">
<?php
$_GET['page'];
if($page == "home")
{
include('home.php');
}
elseif($page == "news")
{
include('news.php');
}
else
{
include('home.php');
}
?> </td>
</tr>
<tr>
<td background="images/mainbottom.gif" height="10">
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
<br>
<table border="0" cellpadding="5" cellspacing="0" width="700">
<tbody><tr>
<td class="disclaimer" background="images/titlebars/blue/disclaimer_bar.GIF" height="25">
<font color="#ffffff">
Copyright © 200</font><font color="#FFFFFF">7 > 2008 SimplyHabbo.com</font></td>
</tr>
</tbody></table>
<br>
</center></body></html>
Seems ok, please post the other 2 files updated.php and status.php or w.e
How could this hapen to meeeeeeeeeeeeeee?lol.
Want to hide these adverts? Register an account for free!