Jump to content

Recommended Posts

How do I go about pulling image names from a database, let's say there's 10,

how do I make all 10 go horizontal instead of vertical?

 

I have a marquee that pulls info from the database, and I need the images to go horizontal and I cannot figure out the best way of doing it.

 

Any help will be appreciated.

 

Thank you in advance

Link to comment
https://forums.phpfreaks.com/topic/86985-horizontal-images/
Share on other sites

This is the code

<table width="100%" border="0" cellspacing="0" cellpadding="5">
  <tr>
  <?php
include "./DB_config.php";
$escort_count = mysql_fetch_assoc(mysql_query("SELECT count(*) as num FROM users"));
$user1 = "SELECT * FROM users LIMIT 2";
$result1 = mysql_query($user1);
$numberall = mysql_Numrows($result1);
if ($numberall==0) {
    echo "<font color=#FF0000>Invalid Item ID</font>";
}
while($row1 = mysql_fetch_array( $result1 )){
?>
    <td>
<p><a href="http://www.thehoneypotclub.com/" id="searchlink" rel="subcontent"><img src="escorts/<?php echo $row1['SampleOne']; ?>" height="110"></a></p>
<DIV id="subcontent" style="position:absolute; visibility: hidden; border: 9px solid orange; background-color: white; width: 150px; padding: 8px;">
<p><b><?php echo $row1['EscortName']; ?> Details</b></p>
<ul>
<li><?php echo $row1['EscortName']; ?></li>
<li><?php echo $row1['Age']; ?></li>
<li><?php echo $row1['priceperhour']; ?></li>
<li><a href="http://www.thehoneypotclub.com/?cid=profile&id=<?php echo $row1['id']; ?>">View Full Profile</a></li>
</ul>
</DIV>
<script type="text/javascript">
//Call dropdowncontent.init(anchorID, positionString, glideduration) at the end of the page:
dropdowncontent.init("searchlink", "right-bottom", 500)
</script>
</td>
<?php
}
?>
    <td> </td>
  </tr>
  <tr>
    <td bgcolor="#0000FF"> </td>
    <td> </td>

  </tr>
</table>

 

I need this part to be a marquee

<p><a href="http://www.thehoneypotclub.com/" id="searchlink" rel="subcontent"><img src="escorts/<?php echo $row1['SampleOne']; ?>" height="110"></a></p>
<DIV id="subcontent" style="position:absolute; visibility: hidden; border: 9px solid orange; background-color: white; width: 150px; padding: 8px;">
<p><b><?php echo $row1['EscortName']; ?> Details</b></p>
<ul>
<li><?php echo $row1['EscortName']; ?></li>
<li><?php echo $row1['Age']; ?></li>
<li><?php echo $row1['priceperhour']; ?></li>
<li><a href="http://www.thehoneypotclub.com/?cid=profile&id=<?php echo $row1['id']; ?>">View Full Profile</a></li>
</ul>
</DIV>

Link to comment
https://forums.phpfreaks.com/topic/86985-horizontal-images/#findComment-444785
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.