Old 10-10-2006   #1 (permalink)
Registered User
 
Join Date: Oct 2006
Posts: 22

PHP Help Needed

Ok... First of all, I only just started PHP (as in this is only my second script ) and I can't figure out what's going wrong. Everything that I've looked at tells me that it should work. Here's my code:

PHP
TXT File 1
TXT File 2
TXT File 3
Stylesheet

Here's what I get (you can ignore the warning ) and what I should get. (No PHP)

Help as soon as possible would be appreciated because I have content to add, but I'm reluctant to do so until it's easier for me to manage my links. Thanks!
__________________
I like smilies... what?

Last edited by Krazy3; 10-10-2006 at 04:24 AM.
Krazy3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 10-10-2006   #2 (permalink)
Rusty Bio-Hazard!
 
notjustgraphics's Avatar
 
Join Date: Sep 2006
Location: Toronto, Ontario, Canada
Posts: 1,069

Send a message via MSN to notjustgraphics
You are closing an <a> tag that is not opened:

if ($mainnav7[$b] == "title") {
echo "<div class=\"menutitle\">$mainnav5[$b]</a></div>";

I know that is not causing your problem but it's all I could find wrong with the code... everything else seems ok.

I am not a PHP expert by any means though... I am sure there are others here who may be of more assistance.

Best of Luck

Mike.
Not Just Graphics.
__________________
notjustgraphics is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 10-10-2006   #3 (permalink)
Registered User
 
Join Date: Oct 2006
Posts: 22

I found the solution, thanks. I just use the following code and put the html in the txt file.

<div id="ddblueblockmenu">

<?php

$file = "links/test.txt";
$data = file($file) or die("could not read file!!!");

foreach ($data as $line) {
echo $line;
}

?>
</div>
__________________
I like smilies... what?
Krazy3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pro's and Con's to Upgrading PHP pipersdragon HTML / PHP / ASP / JS 1 12-29-2005 11:43 PM
Help needed with PHP: Pagination in a tut system nitr0x HTML / PHP / ASP / JS 3 05-24-2005 05:30 PM
Php... Joe HTML / PHP / ASP / JS 35 06-22-2004 12:08 AM
Digital's Quick and Dirty Guide to PHP Order HTML / PHP / ASP / JS 15 05-05-2004 01:18 AM
PHP Help Needed... Young Spartan HTML / PHP / ASP / JS 1 12-02-2003 08:37 AM


All times are GMT +1. The time now is 06:33 PM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT