Lisa23 Posted July 29, 2011 Share Posted July 29, 2011 Hi i have this table that retrieves data from the database (images) now i was wondering if is possible to get the height of the images multiply with the number of data that comes from the database and give the value into the ajax div example <table> <tr> <td height='90'> pick up this height value </td> </tr> </table> height * number of row from the database = $result number row from database * 90 =$result add the result value into the ajax div height <div id="ajaxDiv" style="height:$result.px"> </div> or get the number of row retrieve from the database calculate * 90 and give the value to the <div id="ajaxDiv" style="height:$result.px"> </div> Link to comment https://forums.phpfreaks.com/topic/243142-how-can-i-get-the-height-value-of-a-table-calculate-with-certain-number/ Share on other sites More sharing options...
darkfreaks Posted July 29, 2011 Share Posted July 29, 2011 http://www.roseindia.net/ajax/ajax-multiply-example.shtml you can use Ajax to retrive $_GET values Link to comment https://forums.phpfreaks.com/topic/243142-how-can-i-get-the-height-value-of-a-table-calculate-with-certain-number/#findComment-1248848 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.