timmah1 Posted January 21, 2008 Share Posted January 21, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/86985-horizontal-images/ Share on other sites More sharing options...
kts Posted January 21, 2008 Share Posted January 21, 2008 post the code Quote Link to comment https://forums.phpfreaks.com/topic/86985-horizontal-images/#findComment-444779 Share on other sites More sharing options...
timmah1 Posted January 21, 2008 Author Share Posted January 21, 2008 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> Quote Link to comment https://forums.phpfreaks.com/topic/86985-horizontal-images/#findComment-444785 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.