Jump to content
acnos

multiplication and data base

Recommended Posts

Hi all !
 
I wrote this short code :
<html>
<head>
<style>
table, th{
    max-width: 600px;
}
.e2 {
  width: 200px;
}
</style>
</head>
<div style="background-color:TRANSPARENT;width:603px">
<body>
<table>
  <tr bgcolor="TRANSPARENT" height="20">
    <td class="e2" style="background-color:GREEN"></td>
  </tr>
</table>
</body>
</div>
</html>

 

I have a data base column (in oracle apex), 

And I would like to have something like that (a multiplication) :

.e2 {
width = #column# * 600;
}

Because I would like to have a green horizontal bar chart with different size depending on the values in my database column.

So, I tried calc() : did not work...

And I also tried : 

<td style="background-color:GREEN" width=#column#*600></td>
<td style="background-color:GREEN" width=calc(#column#*600)></td>

Those 2 lines did not work too..

Do you have any idea how to do this multiplication please ?

Best regards,

acnos

 

 

 

Share this post


Link to post
Share on other sites
On ‎7‎/‎19‎/‎2018 at 4:16 PM, dsonesuk said:

Can you actually get it to show any value within a page using oracle? that is the most important requirement before proceeding further.

 I did not understand what you wrote...

Share this post


Link to post
Share on other sites

Are you able to set a variable IE for php page

$column = 60;

and add that to

<img src="whatever.jpg" width="<?php echo $column; ?>" alt="">

output:

<img src="whatever.jpg" width="60" alt="">

Until you can achieve this, you won't be able to do any manipulation like what you require.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...