So far the code looks something like this:
index.php
<?php
$site_title = "Aberdeen Student Radio";
$page_title = "Demo Page v1";
$main .= '<img src="../../Media/Pix/mm_entertainment_image.jpg" width="100" height="100">';
$main .= "<div>
//formating attempt - see below
Welcome to the ASR demo page
<br>
<br>
Listen in live to FREE internet radio, coming to you from Aberdeen University Campus, Student Radio for you by you!
<br>
<br>
Aberdeen Student Radio is finally here after 12 years of silence, radio is back in Aberdeen!
Dreams of Student Radio are coming true for over 40 DJs who will be filling your ears from now on. Also not forgetting the News, Sports and Student issues teams who will be bringing you what you won't hear anywhere else!
<br>
<br>
ON-AIR 10am till 9pm, Monday to Friday
ON-AIR 10am till 5pm, Saturday
Click on one of the logos at the top of the page to listen during ON-AIR hours.
If you have problems listening then please email us with all the details.
<br>
<br>
To Get Involved...
To get involved (you don't need any experience just enthusiasm), please go to the 'Get Involved' page.
</div>";
require('header.php');
require('footer.php');
require('news.php');
require('gigs.php');
require('layoutlow.php');
?>
layoutlow.php
<html>
<head>
<title>
<?php echo "$site_title - $page_title"; ?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0000ff" vlink="#800080">
<!--Overall Size Is Set Here = 1400px-->
<table width="1400px" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
<tr>
<td colspan="3" align="bottom" valign="bottom" height="100">
<p><font size="20pt" face="Base 02">
<img src="../Pictures/LeftBarH.jpg" width="180" height="100"><img src="../Pictures/TBarH.jpg" width="1040" height="100"><img src="../Pictures/LeftBarH.jpg" width="180" height="100">
</font></p>
</td>
</tr>
<tr>
<!--The individual column sizes are set here, Left to Right, 300,800,300-->
<td width="300px" colspan="1" align="center" valign="top" bgcolor="#f0f0f0">
<div align="left"><font face="Calibri"><?php echo $news; ?></font></div>
</td>
<td width="800px" align="center" valign="top">
<div align="left"><font face="Calibri"><?php echo $main."\n"; ?></font></div>
</td>
<td width="300px" colspan="1" align="center" valign="top" bgcolor="#f0f0f0">
<div align="center"><font face="Calibri"> <?php echo date("F j, Y"); ?></font></div>
<div align="center"><font face="Calibri"> <?php echo date("g:i a"); ?></font></div>
<div align="right"><font face="Calibri"> <?php echo $gigs; ?></font></div>
</td>
</tr>
<!--End of set sizes-->
<tr>
<td align="center" valign="top" height="5" bgcolor="#f0f0f0">
<div align="center"><font size="2" face="Calibri"><a href="resolutions.php">High Res Version</a></font></div>
<a href="http://www.ausa.org.uk/"><img src="../Pictures/AUSA.gif" alt="ASR" width="50" height="52" align="absmiddle"></a></td>
<td align="center" valign="baseline" height="5"><div align="center"><font face="Calibri"><a href="http://www.abdn.ac.uk/~u41am6"><?php echo $footer; ?></a></font></div></td>
</tr>
</table>
</body>
</html>
Well, you are probably going to point plenty of flaws in my code, so feel free to point out all my errors.
Additionally, I was wondering if you could help me out with this question. It probably is answered in a million places online, but not being sure what to google to find it, I'm asking you guys.
In the index.php you will notice I use $main= to type in the text I want displayed. However, I cannot get it to format the code from within index.php. I would use echo but it won't work when already with the $main section. I am also aware I could split it into seperate $main sections however, I'd rather not if possible.
Inserting the code in the index.php page (see above for exact placement):
<font size="20pt"> Welcome to the ASR demo page </font>
results in:
Parse error: parse error, unexpected T_LNUMBER in /home/bio-u1/u41am6/PCFILES/public.htm/ASR/PHP/index.php on line 9
The error is displayed within the browser.
So, if you can help with the formating, or have noticed some other stupid rookie thing I've done (probably the whole thing) then please let me know.
Cheers
Domestic


Sign In
Create Account



Back to top









