Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

php not working...

$
0
0


<?php
include("../konnect.php");
$sql = mysql_query("SELECT * FROM ask") or die("MySQL Failure: " . mysql_error());

if (mysql_num_rows($sql) === 0) die("There were no rows returned");

while ($row = mysql_fetch_array($sql))
{
$msg = $row['msg'];
$mes_id = $row['mes_id'];
$up = $row['up'];
$down = $row['down'];
    
 
$echo = <<<ECHO
<div id='main'><div class='box1'><div class='up'><a href='' class='vote' id='" . $mes_id . "' title='Up' name='up'>" . $up . "</a></div><div class='down'><a href='' class='vote' id='" . $mes_id . "' title='Down' name='down'>" . $down . "</a></div></div><div class='box2' >" . $msg . " <br /><br /><div class='fb-comments' data-href='http://naturalnaring.com/engage.php?id=" . $mes_id . "' data-num-posts='2'></div><br /><br />";

ECHO;

echo $echo;
?>

 

can anyone see where i am outputting it wrong? it seems to work fine in dreamweaver locally.


Viewing all articles
Browse latest Browse all 13200

Trending Articles