473,326 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

I want to uotput my images horizontally please can anyone help me my codes

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. $h=2;
  3. $k=mysql_query("SELECT * from aupload where type='audios' and view>='$h' order by view DESC");
  4.  
  5. while ($la=mysql_fetch_array($k)){
  6.  
  7. ?> <center> <table width='100%'height=''> <tr> <?php echo"<td>" . "<a href='http://bytes.com/uploads/$la[filename]'><img src='http://bytes.com/uploads/$la[size]' width='180px' height='180px'> <br><b>$la[filename]</b><br><a href='music1.php?id=".$la['id']."'><input type='button' value='DOWNLOAD'><input type='button' value='$la[view]'></a></a>
  8. "?></td> </tr> </table><br> </center> <?php }?> <?php
  9. include('connect.php');
  10.  
  11. $k=mysql_query("SELECT * from aupload where type='audios'");
  12. @$la=mysql_fetch_array($k)
  13. ?> <?php
  14. $h=2;
  15. $y=mysql_query("SELECT * from aupload where type='videos' and view>='$h' order by view DESC ");
  16.  
  17. ?> <table border='0' id='myTable'width='100%'> <?php
  18. while ($x=mysql_fetch_array($y)){
  19.   echo "<tr>";
  20.     echo "<td>" . "<video id='myVideo' onclick='message()' width='180px' height='180px' controls><source src='uploads/$x[filename]' '></video>" . "</td>"; 
  21.   echo "</tr>";
  22.  
  23.  
  24.    echo "<tr>";
  25.     echo  "<td width='' height=''>"."<a href='http://bytes.com/music2.php?id=$x[id]' ><b>$x[filename]</b><br><input type='button' value='DOWNLOAD'></a>" ."<input type='button' value='$x[view]'></a></a>". "</td>"; 
  26.   echo "</tr>";
  27.   }
  28.  
  29.  echo "</table>"; echo"</center>";
  30.  
  31. ?>
  32.  
Please can any one help me on how to make sure the videos appear horizontally after I echo them from the above codes thanks in advance
Oct 28 '15 #1
1 1013
zuko32
13
A very simple way is to put a <span> where you have put a <td> and the videos will be output horizontally because <span> is not block-element. Then, you can apply any style you want to the <span>s.
Oct 28 '15 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: delerious | last post by:
I'm going to build a vertical navigation menu using images in HTML. I want to have a drop-down menu appear next to an image when I move the mouse over it. I know that I could just download any one...
5
by: Fred | last post by:
I've written a number of "image gallery" pages before, but I'm trying to do something a little different. All the images are rectangular (these are just pictures from my camera), and the...
5
by: Simon Egginton | last post by:
Does anyone know how to make a CHAT ROOM for a webpage using java or jave script please. I am just look at you lot because i think you are the experts! THANK YOU! ewhost_simon"HI"@yahoo.co.uk...
4
by: Angelos | last post by:
Ok ... I want to Create a Content Management System that I will add pages and then it will automatically create a menu system and add each page in it.... Also if I have a page with products......
17
by: Stian Lund | last post by:
Hello, I've been struggling with this problem for a while now, so I though I'd get some input from anyone more skilled with CSS than I am. I'm actually trying to accomplish two things with this:...
10
by: Chris Tomlinson | last post by:
Hi all, just a quickie. I hope someone has the answer. We have about 30 images on a page, and want to apply something like this to all of them: < ... oncontextmenu="alert('Message...
3
by: leen85 | last post by:
helo everybody...i'm lina...i need your help...i have a problem in Access...i have 38000 images for my company employee which size about 5GB to stored in database...as we know we cant stored too...
8
by: Kentor | last post by:
Hello, I have users that submit images to my website. By default I choose to make the width bigger than the height because usually pictures are taken horizontally... But in some cases people take...
1
by: fareednn | last post by:
please help me to insert list of images horizontally it is not inserting in my code please check it urgent.it comes under footer so ths s separate file calle footer.phtml ths s magento <?php /**...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.