pkey; $title = $row->title; $content = $row->content; if(ereg("~~", $content)) { $first_space = strrpos($content, "~~"); $display_content = substr($content, 0, $first_space); $display_content = nl2br($display_content); } else { $display_content = nl2br($content); } //get the picture, if any; $sql_picture = "select id, height, width from pictures where story_id = '$pkey'"; $result_picture = mysql_query($sql_picture); $row_picture = mysql_fetch_array($result_picture); $pid = $row_picture[id]; $height = $row_picture[height]; $width = $row_picture[width]; ?>
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||