Posted on Saturday 11th August 2007 at 04:00 PM | |
Diablosblizz Senior Member |
Hey, I am trying to make my own news system for my site. So far, I LOVE IT! But... problems lie ahead. I have everything working, it display's the subject and message. If there is something in the $message variable it will display read more. My problem is with the read more... Here is the code: PHP Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
case 'readmore':
That's just the "readmore" case. You see where it says $newsie[subject]? Well where that variable is defined is where the subject SHOULD show up, but it doesn't. Does anybody have any ideas. |
Posted on Saturday 11th August 2007 at 04:20 PM | |
DanielXP Senior Member |
You have not fetched it. PHP Code
1 2
$newsie = mysql_query("SELECT * FROM `news` WHERE `id` = '$_GET[id]'");
|
Posted on Saturday 11th August 2007 at 05:13 PM | |
Diablosblizz Senior Member |
Wow, I am stupid. Thanks Dan. |
Posted on Saturday 11th August 2007 at 06:22 PM | |
DanielXP Senior Member |
Locked :) |