Jump to content

[SOLVED] PHP Script Not Responding


refiking

Recommended Posts

I'm sure this is simple, but I can't find anything wrong.  I run the script and the screen is blank.  No error message or anything.  Please help.

 

<?php
//news.php
$stories = $_GET['num'];
Echo $stories;
$news1 = '<p><b>Lehman Brothers CFO and COO Resign With Stock Down 32% in a Week<br></b>A pair of top executives at Lehman Brothers have resigned with shares of the company in freefall.
Shares of the company are trading down 3% to $22.87 ahead of the open.<a href="/newsletter/latenews.php">   more ...</a></p>';
$news2 = '<p><b>Treasury's Paulson Says More Liquidity to Financial Institutions to Come</b><br>Speaking at the Women in Housing & Finance's annual meeting in Washington, D.C., Treasury Secretary Henry Paulson said that the U.S. may have to offer more liquidity to more institutions in the future.<a href="/newsletter/latenews.php">   more ...</a></p>';
$news3 = '<p><b>Lehman Brothers CFO and COO Resign With Stock Down 32% in a Week<br></b>A pair of top executives at Lehman Brothers have resigned with shares of the company in freefall.
Shares of the company are trading down 3% to $22.87 ahead of the open.<a href="/newsletter/latenews.php">   more ...</a></p>';
$news4 = '<p><b>Treasury's Paulson Says More Liquidity to Financial Institutions to Come</b><br>Speaking at the Women in Housing & Finance's annual meeting in Washington, D.C., Treasury Secretary Henry Paulson said that the U.S. may have to offer more liquidity to more institutions in the future.<a href="/newsletter/latenews.php">   more ...</a></p>';
$news5 = '<p><b>Lehman Brothers CFO and COO Resign With Stock Down 32% in a Week<br></b>A pair of top executives at Lehman Brothers have resigned with shares of the company in freefall.
Shares of the company are trading down 3% to $22.87 ahead of the open.<a href="/newsletter/latenews.php">   more ...</a></p>';
IF ($stories == 1){
Echo $news1;
}
IF ($stories == 2){
Echo $news2;
}
IF ($stories == 3){
Echo $news3;
}
IF ($stories == 4){
Echo $news4;
}
IF ($stories == 5){
Echo $news5;
}
IF ($stories == 22){
Echo $news2.$news3;
}
IF ($stories == 23){
Echo $news3.$news4;
}
IF ($stories == 24){
Echo $news4.$news5;
}
?>

Link to comment
Share on other sites

$news2 = '<p><b>Treasury\'s Paulson Says More Liquidity to Financial Institutions to Come</b><br>Speaking at the Women in Housing & Finance\'s annual meeting in Washington, D.C., Treasury Secretary Henry Paulson said that the U.S. may have to offer more liquidity to more institutions in the future.<a href="/newsletter/latenews.php">   more ...</a></p>';

 

Put a \ before ' whenever they are inline text...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.