squiblo Posted July 30, 2009 Share Posted July 30, 2009 i cannot set the information to the right of the image, i cant move it much, you might understand when you view the link. http://www.squiblo.com/results.php?search=admin+liam&submit=Search <font face="arial"> <?php //get data $button = $_GET['submit']; $search = $_GET['search']; if (!$button) header("location:unititled.php"); else { if (strlen($search)<3) header("location:unititled.php"); else { echo ""; //connect to our database mysql_connect("localhost","",""); mysql_select_db(""); //explode our search term $search_exploded = explode(" ",$search); foreach($search_exploded as $search_each) { //construct query $x++; if ($x==1) $construct .= "username LIKE '%$search_each%'"; else $construct .= " OR username LIKE '%$search_each%'"; } //echo out construct $construct = "SELECT * FROM members WHERE $construct"; $run = mysql_query($construct); $foundnum = mysql_num_rows($run); if ($foundnum==0) echo "No results found."; else { echo "You searched for <b>$search</b><br>$foundnum result(s) found!<p><hr size='1'>"; while ($runrows = mysql_fetch_assoc($run)) { //get data $state = ucwords($runrows['state']); $url = $runrows['url']; $username = ucwords($runrows['username']); $imagelocation = $runrows['imagelocation']; echo " <img src ='$imagelocation' width='100' height='100' border='0'>  <b>$username</b><br> $state<br> <a href='$url'>View Profile</a> <hr size='1' width='300' align='left'> "; } } } } ?> </font> Quote Link to comment Share on other sites More sharing options...
squiblo Posted July 30, 2009 Author Share Posted July 30, 2009 please delete this post, wrong section, ill create again in php help Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted July 30, 2009 Share Posted July 30, 2009 Actually it is css and html related not really php. Have you tried text-align:right or/and float:right? Quote Link to comment Share on other sites More sharing options...
haku Posted July 31, 2009 Share Posted July 31, 2009 I agree that it's a CSS problem, but we will need to see the HTML output to be able to help. Quote Link to comment 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.