Jump to content

echo queries


Porkie

Recommended Posts


what am    <?php

 

$con = mysql_connect("");

if (!$con)

  {

  die('Could not connect: ' . mysql_error());

  }

 

mysql_select_db("", $con);

 

 

$count = "SELECT COUNT(id) FROM gg_video";

echo '</td>';

    echo '</tr>';

    echo "Currently['$count'] Videos";

?>

i doing wrong when showing queries?

 

cheers

Link to comment
https://forums.phpfreaks.com/topic/164960-echo-queries/
Share on other sites

still shows nothing mate,

 

any reason why?

 

cheers

 

try:

 

    $count = "SELECT COUNT(id) FROM gg_video";
    $result = mysql_query($count);
    $row = mysql_fetch_array($result);
    echo '</td>';
    echo '</tr>';
    echo "Currently ".{$row['COUNT(id)']}." Videos";
[/code

Link to comment
https://forums.phpfreaks.com/topic/164960-echo-queries/#findComment-869843
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.