it didn't work
I got it to work but my width is showing up as 60 instead of 60*num_of_sm_images
here's the code:
$query1 = "SELECT num_of_sm_images FROM Eli2 where page_number='5'";
$result1 = mysql_query($query1);
$data = mysql_result($result1, 0, 'num_of_sm_images');
echo 'The data retrieved from the database is ' .$data;
Data shows up as 7 which is correct.
But when I try to do multiplication for the width, I get a blank.
here's the code for the width calculation:
<table width="<?php ($data)*60 ?>" border="0" cellspacing="0">
Why am I getting a blank instead of 420?
thanks