Author Topic: PHP fans... I need you [and CSS fans!]  (Read 1067 times)

0 Members and 1 Guest are viewing this topic.

Offline vyper

  • 210
  • The Sexy Scotsman
PHP fans... I need you [and CSS fans!]
Alright let's see... I'm trying to create an RSS feed. Right now, the php file that generates it looks thusly:

header('Content-type: text/xml', true);
$link =insert sensitive password stuff here

$sqlquer = sprintf("SELECT * FROM Content ORDER BY id DESC");
$result=mysql_query($sqlquer);
$nRows = mysql_num_rows($result); ?>



CaledonianEnterprise

[url]http://www.CaledonianEnterprise.co.uk[/url]

To entertain the masses
Copyright 2005

for ($i=0; $i< $nRows; $i++){
$row = mysql_fetch_object($result);?>


<? echo"$row->Title"; ?>

Article"; ?>

}?>


 

Now the output looks like: http://www.caledonianenterprise.co.uk/rss2.php

Unfortunately when I call it up in Thunderbird as a news feed, all I get is one news item (Drop-In) and it's blank!

Any ideas?

edit: god damned PHP and CODE tags made half the rss code vanish
« Last Edit: July 12, 2005, 10:07:36 am by 798 »
"But you live, you learn.  Unless you die.  Then you're ****ed." - aldo14

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Yeah, BBs suck for posting HTML code.

I can't see anything wrong with the generated output, I expected to find a non-closed tag someplace, but couldn't. Maybe there's an errant caret or something in one of the posts that's screwing things up?
-C

 

Offline Taristin

  • Snipes
  • 213
  • BlueScalie
    • Skelkwank Shipyards
Why this no worky?

while ($n < $cnt); {
echo
    ; }
?>
« Last Edit: July 11, 2005, 09:46:07 pm by 273 »
Freelance Modeler | Amateur Artist

 

Offline vyper

  • 210
  • The Sexy Scotsman
A ton of you have looked at the php file (vyper checked the server stats). So, c'mon people inspire me! :p
"But you live, you learn.  Unless you die.  Then you're ****ed." - aldo14

 

Offline vyper

  • 210
  • The Sexy Scotsman
Quote
Originally posted by Raa
Why this no worky?

while ($n < $cnt); {
echo "
    $name" ; }
?>
 


If that doesn't work now, you may hurt me.
"But you live, you learn.  Unless you die.  Then you're ****ed." - aldo14

 

Offline Admiral LSD

  • 27
  • Shorter of breath and one day closer to death
    • http://adphq.dyndns.org
errm, what's supposed to be wrong with it again? Works perfectly for me in Opera 8.02...
00:19  * Snail cockslaps BotenAnna
00:19 -!- Snail was kicked from #hard-light by BotenAnna [Don't touch me there! RAPE!!!]

15:36 <@Stealth_T1g4h> MASSIVE PENIS IN YOUR ASS Linux

I normally enjoy your pornographic website... - Stealth
Get Internet Explorer!

 

Offline vyper

  • 210
  • The Sexy Scotsman
Mine or his? Basically mine will not display in Thunderbird properly. It works in SharpReader bar a small character error.
"But you live, you learn.  Unless you die.  Then you're ****ed." - aldo14

 

Offline Admiral LSD

  • 27
  • Shorter of breath and one day closer to death
    • http://adphq.dyndns.org
Yours. I went to the RSS link you provided, Opera detected it was an RSS feed and prompted me to subscribe which I did and then it presented me with the usual email-style view of what I presume is the full feed:

http://members.westnet.com.au/iweber/CaledonianEnterprise.jpg
00:19  * Snail cockslaps BotenAnna
00:19 -!- Snail was kicked from #hard-light by BotenAnna [Don't touch me there! RAPE!!!]

15:36 <@Stealth_T1g4h> MASSIVE PENIS IN YOUR ASS Linux

I normally enjoy your pornographic website... - Stealth
Get Internet Explorer!

 

Offline vyper

  • 210
  • The Sexy Scotsman
Thanks man, it means I'm doing something right! :D

Must be a Mozilla specific bug...
"But you live, you learn.  Unless you die.  Then you're ****ed." - aldo14

 

Offline Taristin

  • Snipes
  • 213
  • BlueScalie
    • Skelkwank Shipyards
Mine just got completely rewritten, but thanks.

*just started learning PHP 2 days ago*
Freelance Modeler | Amateur Artist

  

Offline vyper

  • 210
  • The Sexy Scotsman
Alright, anyone know why my CSS coded background image will sit properly in I.E.6 (fixed attatchment) but seems to shift about 50px up the way in Firefox?

http://www.CaledonianEnterprise.co.uk/ce_final.php
"But you live, you learn.  Unless you die.  Then you're ****ed." - aldo14

 

Offline Taristin

  • Snipes
  • 213
  • BlueScalie
    • Skelkwank Shipyards
Is the position hard coded, or relative?
Freelance Modeler | Amateur Artist

 

Offline vyper

  • 210
  • The Sexy Scotsman
The position of the layer is relative to the larger containing div that holds all in creation. The div itself is not moving, otherwise the text would be skew-if. So I'm stumped.
"But you live, you learn.  Unless you die.  Then you're ****ed." - aldo14

 

Offline Taristin

  • Snipes
  • 213
  • BlueScalie
    • Skelkwank Shipyards
I was reading through the template that I used for my site, and the author said that the code he used was initially set to relative, but doing so didn't cooperate, so he had to settle for hard coded.
Freelance Modeler | Amateur Artist