Jump to content

How to add white space


Tasos

Recommended Posts

Hello i try to add a white space but i cant figure it out.
I want to add a space between AllCars like All Cars
and when i add space you see this,
Warning: Invalid argument supplied for foreach() in /domain/domain/domain/domain.com on line 11

 

Can anyone please help me ?

<?php
include 'connect.php';
 
$result = mysql_query("select
(select count(1) FROM videos WHERE title LIKE '%Funny%') as Funny,
(select count(1) FROM videos WHERE title LIKE '%Bikes%') as Bikes,
(select count(1) FROM videos WHERE title LIKE '%Cars%') as AlCars");  <-------
                                                         
$row = mysql_fetch_assoc($result);
 
foreach($row as $title => $total)
{
  echo '<div class="textbl">' . $title . ': ' . $total .'</div>';
}
 
 
 
?>

THANKS

Link to comment
https://forums.phpfreaks.com/topic/276966-how-to-add-white-space/
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.