Chezshire Posted July 26, 2008 Share Posted July 26, 2008 I'm trying to get the text to align left starting at the top of the image and then run along side it as needed rather then having it starting on the same baseline with long lines of type running beneath the image. I'm uber new to all of this - thansk for any help or guidance! Help? <td valign="top" width="75"> <?php $sql = "SELECT id, modelname, codename FROM cerebra ORDER BY modelname"; $result = mysql_query($sql) or trigger_error(mysql_error,E_USER_ERROR); while($row = mysql_fetch_assoc($result)){ //here's the key. Use a while loop to repeat through the code $thisID = $codename["id"]; $modelName= getModelName($thisID); $modelName = getChar($char_ID); echo "<p class='fineprint'>"; echo '<img src="/cerebra/images/'.$char_id.'.jpg" width="60" height="75" border=" 2px" bordercolor="#415582" '; echo '<i> '.$row['modelname']; echo ' as <a href="/cerebra/display.php?id=$char_ID">'.$row['codename'].'</a>'; echo '<hr color="#050F1D" size="2">'; //these two lines (or any lines up to the closing brace) will be repeated for each row returned by the query } ?> </td> Quote Link to comment Share on other sites More sharing options...
Pyro Posted July 26, 2008 Share Posted July 26, 2008 Hi, im not sure on this but this might work, <td valign="top" width="75"> <?php $sql = "SELECT id, modelname, codename FROM cerebra ORDER BY modelname"; $result = mysql_query($sql) or trigger_error(mysql_error,E_USER_ERROR); while($row = mysql_fetch_assoc($result)){ //here's the key. Use a while loop to repeat through the code $thisID = $codename["id"]; $modelName= getModelName($thisID); $modelName = getChar($char_ID); echo "<p class='fineprint' align="left">"; echo '<img src="/cerebra/images/'.$char_id.'.jpg" align="right"width="60" height="75" border=" 2px" bordercolor="#415582" '; echo '<i> '.$row['modelname']; echo ' as <a href="/cerebra/display.php?id=$char_ID">'.$row['codename'].'</a>'; echo '<hr color="#050F1D" size="2">'; //these two lines (or any lines up to the closing brace) will be repeated for each row returned by the query } ?> </td> Sorry but other than that i dont know, unless i see it on a page. ~Py 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.