Code: Select all
$size = getimagesize('$logo');Code: Select all
<?php
include "dbconn.php";
$result = mysql_query ("SELECT * FROM static WHERE section = 'logo'");
$num_rows = mysql_num_rows($result);
if ($num_rows == 0)
{
echo " style='background-image: url(/images/logo.png);'";
}
while ($row = mysql_fetch_object($result))
{
echo " style='background-image: url(/images/pages/$row->image);'";
$logo = $row->image;
}
mysql_free_result($result);
mysql_close($sqlconn);
$size = getimagesize('$logo');
echo ">$size";
?>[text]Warning: getimagesize($logo) [function.getimagesize]: failed to open stream: No such file or directory in C:\xampp\phpMyAdmin\site\index.php on line 168
>[/text]
Line 168 is $size = getimagesize('$logo');
I've clearly done something wrong here.
I've also seen "list" queries for height, but cannot see how to put that into a variable, to know the $height, and then use that in my script.
Any help would be appreciated.