Jump to content

F1Fan

Members
  • Posts

    1,182
  • Joined

  • Last visited

Everything posted by F1Fan

  1. Yes, but it would be easier to just do it in the PHP code. What do you want in those cases? Type out each scenario in plain text here.
  2. I just modified my code. Do you want the attribute_id as a sort of mini-header, and each item under a unique attribute_id to be indented?
  3. <?php $attribute_id = ""; while($row = mysql_fetch_array( $result )) { if ($row['attribute_id']!=$attribute_id){ echo "<tr><td colspan='7'>$attribute_id</td></tr>\n"; $attribute_id = $row['attribute_id']; } echo "<tr><td> - \n"; echo $row['desc']; echo "</td><td width='2%'> </td><td width='1%' align='right'>\n"; echo $row['level']; echo "</td><td width='2%'> </td><td width='2%'> </td><td width='1%' align='right'>\n"; echo $row['points']; echo "</td><td width='2%'> </td></tr>\n"; } ?>
  4. OOOOHHH, I think I just realized what you're trying to do... Give me a min...
  5. OK, I kinda see what you want now, but how do you know which ones need to be indented? Do you only want the ones with "Item Of Power" indented? If so, replace that while statement with this one: <?php while($row = mysql_fetch_array( $result )) { if ($row['attribute_id']=="Item Of Power"){ if ($count==0){ echo "<tr><td colspan='7'>Item Of Power</td></tr>\n"; $count = 1; } echo "<tr><td> - \n"; } else{ echo "<tr><td>\n"; echo $row['attribute_id']; echo " "; } echo $row['desc']; echo "</td><td width='2%'> </td><td width='1%' align='right'>\n"; echo $row['level']; echo "</td><td width='2%'> </td><td width='2%'> </td><td width='1%' align='right'>\n"; echo $row['points']; echo "</td><td width='2%'> </td></tr>\n"; } ?>
  6. Um, sorry, just had a stupid moment. You can just add that overflow property to the body and be done. That's it. Duh to me. <body style="overflow:scroll;"> --- Your page here --- </body>
  7. LOL. I think you can do the same thing. On all of those, you can specify no scrollbars, auto scrollbars, or always scrollbars. I thought of another way though. Add a <div> around your whole page, like this: <body style="margin:0px;"> <div style="width:100%;height:100%;overflow:scroll"> --- Your page here --- </div> </body>
  8. I think in Firefox you need to add the thickness and color of your border. Try something like this in your CSS: #stats { border-width: 3px; //you'll have to play with the thickness border-color: #000000; border-style: ridge; table-column: right; }
  9. Yeah, my bad. I copied part of it and missed another. Try this one: <?php $result = mysql_query("SELECT * FROM stats where identity = 'Sailor Moon'") or die(mysql_error()); $row = mysql_fetch_array( $result ); echo "<table width='100%' valign='top'><tr><td width='50%' align='right' valign='top'>\n"; // added align='right' valign='top' echo "<table width='100%' border='0' id='stats' align='right'>\n"; // keeps getting the next row until there are no more to get echo "<tr><td colspan='3' id='th'>Stats And Derived Values</td></tr>\n"; echo "<tr><td>\n"; echo "<b>Body:</b></td><td col class='right'>\n"; echo $row['body']; echo "</td></tr><tr><td>\n"; echo "<b>Mind:</b></td><td col class='right'>\n"; echo $row['mind']; echo "</td></tr><tr><td>\n"; echo "<b>Soul:</b></td><td col class='right'>\n"; echo $row['soul']; echo "</td></tr><tr><td>\n"; echo " </td></tr><tr><td>\n"; echo "<b>Health Points:</b></td><td col class='right'>\n"; echo $row['health']; echo "</td></tr><tr><td>\n"; echo "<b>Energy Points:</b></td><td col class='right'>\n"; echo $row['energy']; echo "</td></tr><tr><td>\n"; echo "<b>Attack Combat Value:</b></td><td col class='right'>\n"; echo $row['acv']; echo "</td><td col class='right'>\n"; // added </td> echo " ("; echo $row['acv_sa']; echo " for Sailor Scout Attack)"; echo "</td>\n"; echo "</td></tr><tr><td >\n"; echo "<b>Defense Combat Value:</b></td><td col class='right'>\n"; echo $row['dcv']; echo "</td><td col class='right'>\n"; // added </td> echo " ("; echo $row['dcv_sa']; echo " for Sailor Scout Attack)"; //echo "</td>\n"; // that's an extra one echo "</td></tr><tr><td>\n"; echo "<b>Total Character Points:</b></td><td col class='right'>\n"; echo $row['tcp']; echo "</td></tr>\n"; echo "</table>\n"; $result = mysql_query("SELECT * FROM character_attributes ORDER BY attribute_id ASC") or die(mysql_error()); $row = mysql_fetch_array( $result ); echo "</td><td valign='top' width='50%' rowspan='2'>\n"; // added this whole line echo "<table width='100%' border='0' id='stats' align='left'>\n"; echo "<tr><td colspan='7' id='th'>Character Attributes And Sub-Attributes</td></tr>\n"; echo "<tr class='sub'><td>Attribute/Sub-Attribute</td><td colspan='3' align='center'>Level</td><td colspan='3' align='center'>Points</td></tr>\n"; echo "<tr><td></td></tr>\n"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { echo "<tr><td>\n"; echo $row['attribute_id']; echo " "; echo $row['desc']; echo "</td><td width='2%'> </td><td width='1%' align='right'>\n"; echo $row['level']; echo "</td><td width='2%'> </td><td width='2%'> </td><td width='1%' align='right'>\n"; echo $row['points']; echo "</td><td width='2%'> </td></tr>\n"; } echo "</table></td></tr><tr><td valign='top' width='50%'>\n"; $result = mysql_query("SELECT * FROM character_defects where identity = 'Sailor Moon' ORDER BY defect_id ASC") or die(mysql_error()); $row = mysql_fetch_array( $result ); echo "<table border='0' width='100%' id='stats' align='right'>\n"; echo "<tr><td colspan='3' id='th'>Character Defects</td></tr>\n"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { echo "<tr><td>\n"; echo $row['defect_id']; echo " "; echo $row['desc']; echo "</td><td>\n"; echo $row['bp']; echo " BP"; echo "</td></tr>\n"; } echo "</table>\n"; echo "</td><td>\n"; echo "</td></tr></table>\n"; ?>
  10. Take 962: <?php $result = mysql_query("SELECT * FROM stats where identity = 'Sailor Moon'") or die(mysql_error()); $row = mysql_fetch_array( $result ); echo "<table width='100%' valign='top'><tr><td width='50%' align='right' valign='top'>\n"; // added align='right' valign='top' echo "<table width='100%' border='0' id='stats' align='right'>\n"; // keeps getting the next row until there are no more to get echo "<tr><td colspan='3' id='th'>Stats And Derived Values</td></tr>\n"; echo "<tr><td>\n"; echo "<b>Body:</b></td><td col class='right'>\n"; echo $row['body']; echo "</td></tr><tr><td>\n"; echo "<b>Mind:</b></td><td col class='right'>\n"; echo $row['mind']; echo "</td></tr><tr><td>\n"; echo "<b>Soul:</b></td><td col class='right'>\n"; echo $row['soul']; echo "</td></tr><tr><td>\n"; echo " </td></tr><tr><td>\n"; echo "<b>Health Points:</b></td><td col class='right'>\n"; echo $row['health']; echo "</td></tr><tr><td>\n"; echo "<b>Energy Points:</b></td><td col class='right'>\n"; echo $row['energy']; echo "</td></tr><tr><td>\n"; echo "<b>Attack Combat Value:</b></td><td col class='right'>\n"; echo $row['acv']; echo "</td><td col class='right'>\n"; // added </td> echo " ("; echo $row['acv_sa']; echo " for Sailor Scout Attack)"; echo "</td>\n"; echo "</td></tr><tr><td >\n"; echo "<b>Defense Combat Value:</b></td><td col class='right'>\n"; echo $row['dcv']; echo "</td><td col class='right'>\n"; // added </td> echo " ("; echo $row['dcv_sa']; echo " for Sailor Scout Attack)"; //echo "</td>\n"; // that's an extra one echo "</td></tr><tr><td>\n"; echo "<b>Total Character Points:</b></td><td col class='right'>\n"; echo $row['tcp']; echo "</td></tr>\n"; echo "</table>\n"; echo "</td><td valign='top' width='50%' rowspan='2'>\n"; // added this whole line echo "<table width='100%' border='0' id='stats' align='left'>\n"; echo "<tr><td colspan='7' id='th'>Character Attributes And Sub-Attributes</td></tr>\n"; echo "<tr class='sub'><td>Attribute/Sub-Attribute</td><td colspan='3' align='center'>Level</td><td colspan='3' align='center'>Points</td></tr>\n"; echo "<tr><td></td></tr>\n"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { echo "<tr><td>\n"; echo $row['attribute_id']; echo " "; echo $row['desc']; echo "</td><td width='2%'> </td><td width='1%' align='right'>\n"; echo $row['level']; echo "</td><td width='2%'> </td><td width='2%'> </td><td width='1%' align='right'>\n"; echo $row['points']; echo "</td><td width='2%'> </td></tr>\n"; } echo "</table></td></tr><tr><td valign='top' width='50%'>\n"; $result = mysql_query("SELECT * FROM character_defects where identity = 'Sailor Moon' ORDER BY defect_id ASC") or die(mysql_error()); $row = mysql_fetch_array( $result ); echo "<table border='0' width='100%' id='stats' align='right'>\n"; echo "<tr><td colspan='3' id='th'>Character Defects</td></tr>\n"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { echo "<tr><td>\n"; echo $row['defect_id']; echo " "; echo $row['desc']; echo "</td><td>\n"; echo $row['bp']; echo " BP"; echo "</td></tr>\n"; } echo "</table>\n"; echo "</td><td>\n"; $result = mysql_query("SELECT * FROM character_attributes ORDER BY attribute_id ASC") or die(mysql_error()); $row = mysql_fetch_array( $result ); echo "</td></tr></table>\n"; ?>
  11. I have one more idea if this doesn't work, so let me know.
  12. Not sure. I program for Firefox, and try to make it IE compliant. But I never do anything way special to make it IE compliant.
  13. I don't think you can remove the scrollbars from a regular page. You can do it with window.open in Javascript, and you can change the size and color of the scrollbars, but not remove them, as far as I know. You can also control them in frames. So, you could wrap your whole page in a frame and do noframes on it.
  14. Yeah, looks like crap in IE on Windows, too. Can't believe you're using IE on a Mac, but it still needs to look right. Maybe this one: <?php $result = mysql_query("SELECT * FROM stats where identity = 'Sailor Moon'") or die(mysql_error()); $row = mysql_fetch_array( $result ); echo "<table width='100%' valign='top'><tr><td width='50%' align='right' valign='top'>"; // added align='right' valign='top' echo "<table width='100%' border='0' id='stats' align='right'>"; // keeps getting the next row until there are no more to get echo "<tr><td colspan='3' id='th'>Stats And Derived Values</td></tr>"; echo "<tr><td>"; echo "<b>Body:</b></td><td col class='right'>"; echo $row['body']; echo "</td></tr><tr><td>"; echo "<b>Mind:</b></td><td col class='right'>"; echo $row['mind']; echo "</td></tr><tr><td>"; echo "<b>Soul:</b></td><td col class='right'>"; echo $row['soul']; echo "</td></tr><tr><td>"; echo " </td></tr><tr><td>"; echo "<b>Health Points:</b></td><td col class='right'>"; echo $row['health']; echo "</td></tr><tr><td>"; echo "<b>Energy Points:</b></td><td col class='right'>"; echo $row['energy']; echo "</td></tr><tr><td>"; echo "<b>Attack Combat Value:</b></td><td col class='right'>"; echo $row['acv']; echo "</td><td col class='right'>"; // added </td> echo " ("; echo $row['acv_sa']; echo " for Sailor Scout Attack)"; echo "</td>"; echo "</td></tr><tr><td >"; echo "<b>Defense Combat Value:</b></td><td col class='right'>"; echo $row['dcv']; echo "</td><td col class='right'>"; // added </td> echo " ("; echo $row['dcv_sa']; echo " for Sailor Scout Attack)"; //echo "</td>"; // that's an extra one echo "</td></tr><tr><td>"; echo "<b>Total Character Points:</b></td><td col class='right'>"; echo $row['tcp']; echo "</td></tr>"; echo "</table><br>"; $result = mysql_query("SELECT * FROM character_defects where identity = 'Sailor Moon' ORDER BY defect_id ASC") or die(mysql_error()); $row = mysql_fetch_array( $result ); echo "<table border='0' width='100%' id='stats' align='right'>"; echo "<tr><td colspan='3' id='th'>Character Defects</td></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { echo "<tr><td>"; echo $row['defect_id']; echo " "; echo $row['desc']; echo "</td><td>"; echo $row['bp']; echo " BP"; echo "</td></tr>"; } echo "</table>"; echo "</td><td>"; $result = mysql_query("SELECT * FROM character_attributes ORDER BY attribute_id ASC") or die(mysql_error()); $row = mysql_fetch_array( $result ); echo "</td><td valign='top' width='50%'>"; // added this whole line echo "<table width='100%' border='0' id='stats' align='left'>"; echo "<tr><td colspan='7' id='th'>Character Attributes And Sub-Attributes</td></tr>"; echo "<tr class='sub'><td>Attribute/Sub-Attribute</td><td colspan='3' align='center'>Level</td><td colspan='3' align='center'>Points</td></tr>"; echo "<tr><td></td></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { echo "<tr><td>"; echo $row['attribute_id']; echo " "; echo $row['desc']; echo "</td><td width='2%'> </td><td width='1%' align='right'>"; echo $row['level']; echo "</td><td width='2%'> </td><td width='2%'> </td><td width='1%' align='right'>"; echo $row['points']; echo "</td><td width='2%'> </td></tr>"; } echo "</table>"; echo "</td></tr></table>"; ?>
  15. Really?!? It looks Ok to me... [attachment deleted by admin]
  16. Take three... <?php $result = mysql_query("SELECT * FROM stats where identity = 'Sailor Moon'") or die(mysql_error()); $row = mysql_fetch_array( $result ); echo "<table width='100%' valign='top'><tr><td width='50%' align='right' valign='top'>"; // added align='right' valign='top' echo "<table width='100%' border='0' id='stats' align='right'>"; // keeps getting the next row until there are no more to get echo "<tr><td colspan='3' id='th'>Stats And Derived Values</td></tr>"; echo "<tr><td>"; echo "<b>Body:</b></td><td col class='right'>"; echo $row['body']; echo "</td></tr><tr><td>"; echo "<b>Mind:</b></td><td col class='right'>"; echo $row['mind']; echo "</td></tr><tr><td>"; echo "<b>Soul:</b></td><td col class='right'>"; echo $row['soul']; echo "</td></tr><tr><td>"; echo " </td></tr><tr><td>"; echo "<b>Health Points:</b></td><td col class='right'>"; echo $row['health']; echo "</td></tr><tr><td>"; echo "<b>Energy Points:</b></td><td col class='right'>"; echo $row['energy']; echo "</td></tr><tr><td>"; echo "<b>Attack Combat Value:</b></td><td col class='right'>"; echo $row['acv']; echo "</td><td col class='right'>"; // added </td> echo " ("; echo $row['acv_sa']; echo " for Sailor Scout Attack)"; echo "</td>"; echo "</td></tr><tr><td >"; echo "<b>Defense Combat Value:</b></td><td col class='right'>"; echo $row['dcv']; echo "</td><td col class='right'>"; // added </td> echo " ("; echo $row['dcv_sa']; echo " for Sailor Scout Attack)"; //echo "</td>"; // that's an extra one echo "</td></tr><tr><td>"; echo "<b>Total Character Points:</b></td><td col class='right'>"; echo $row['tcp']; echo "</td></tr>"; echo "</table>"; $result = mysql_query("SELECT * FROM character_defects where identity = 'Sailor Moon' ORDER BY defect_id ASC") or die(mysql_error()); $row = mysql_fetch_array( $result ); echo "<table border='0' width='100%' id='stats'>"; echo "<tr><td colspan='3' id='th'>Character Defects</td></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { echo "<tr><td>"; echo $row['defect_id']; echo " "; echo $row['desc']; echo "</td><td>"; echo $row['bp']; echo " BP"; echo "</td></tr>"; } echo "</table>"; echo "</td><td>"; $result = mysql_query("SELECT * FROM character_attributes ORDER BY attribute_id ASC") or die(mysql_error()); $row = mysql_fetch_array( $result ); echo "</td><td valign='top' width='50%'>"; // added this whole line echo "<table width='100%' border='0' id='stats' align='left'>"; echo "<tr><td colspan='7' id='th'>Character Attributes And Sub-Attributes</td></tr>"; echo "<tr class='sub'><td>Attribute/Sub-Attribute</td><td colspan='3' align='center'>Level</td><td colspan='3' align='center'>Points</td></tr>"; echo "<tr><td></td></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { echo "<tr><td>"; echo $row['attribute_id']; echo " "; echo $row['desc']; echo "</td><td width='2%'> </td><td width='1%' align='right'>"; echo $row['level']; echo "</td><td width='2%'> </td><td width='2%'> </td><td width='1%' align='right'>"; echo $row['points']; echo "</td><td width='2%'> </td></tr>"; } echo "</table>"; echo "</td></tr></table>"; ?>
  17. Exactly. In fact, when I view the source of the page in firefox, it looks like either the "<?php" and/or the "//" are commenting out everything up until the ">" in the "<br>." Then, the rest is displayed.
  18. Take two? <?php $result = mysql_query("SELECT * FROM stats where identity = 'Sailor Moon'") or die(mysql_error()); $row = mysql_fetch_array( $result ); echo "<table width='100%' valign='top'><tr><td width='50%' align='right' valign='top'>"; // added align='right' valign='top' echo "<table border='0' id='stats' align='right'>"; // keeps getting the next row until there are no more to get echo "<tr><td colspan='3' id='th'>Stats And Derived Values</td></tr>"; echo "<tr><td>"; echo "<b>Body:</b></td><td col class='right'>"; echo $row['body']; echo "</td></tr><tr><td>"; echo "<b>Mind:</b></td><td col class='right'>"; echo $row['mind']; echo "</td></tr><tr><td>"; echo "<b>Soul:</b></td><td col class='right'>"; echo $row['soul']; echo "</td></tr><tr><td>"; echo " </td></tr><tr><td>"; echo "<b>Health Points:</b></td><td col class='right'>"; echo $row['health']; echo "</td></tr><tr><td>"; echo "<b>Energy Points:</b></td><td col class='right'>"; echo $row['energy']; echo "</td></tr><tr><td>"; echo "<b>Attack Combat Value:</b></td><td col class='right'>"; echo $row['acv']; echo "</td><td col class='right'>"; // added </td> echo " ("; echo $row['acv_sa']; echo " for Sailor Scout Attack)"; echo "</td>"; echo "</td></tr><tr><td >"; echo "<b>Defense Combat Value:</b></td><td col class='right'>"; echo $row['dcv']; echo "</td><td col class='right'>"; // added </td> echo " ("; echo $row['dcv_sa']; echo " for Sailor Scout Attack)"; //echo "</td>"; // that's an extra one echo "</td></tr><tr><td>"; echo "<b>Total Character Points:</b></td><td col class='right'>"; echo $row['tcp']; echo "</td></tr>"; echo "</table>"; $result = mysql_query("SELECT * FROM character_defects where identity = 'Sailor Moon' ORDER BY defect_id ASC") or die(mysql_error()); $row = mysql_fetch_array( $result ); echo "<table border='0' width='50%' id='stats'>"; echo "<tr><td colspan='3' id='th'>Character Defects</td></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { echo "<tr><td>"; echo $row['defect_id']; echo " "; echo $row['desc']; echo "</td><td>"; echo $row['bp']; echo " BP"; echo "</td></tr>"; } echo "</table>"; echo "</td><td>"; $result = mysql_query("SELECT * FROM character_attributes ORDER BY attribute_id ASC") or die(mysql_error()); $row = mysql_fetch_array( $result ); echo "</td><td valign='top' width='50%'>"; // added this whole line echo "<table border='0' id='stats' align='left'>"; echo "<tr><td colspan='7' id='th'>Character Attributes And Sub-Attributes</td></tr>"; echo "<tr class='sub'><td>Attribute/Sub-Attribute</td><td colspan='3' align='center'>Level</td><td colspan='3' align='center'>Points</td></tr>"; echo "<tr><td></td></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { echo "<tr><td>"; echo $row['attribute_id']; echo " "; echo $row['desc']; echo "</td><td width='2%'> </td><td width='1%' align='right'>"; echo $row['level']; echo "</td><td width='2%'> </td><td width='2%'> </td><td width='1%' align='right'>"; echo $row['points']; echo "</td><td width='2%'> </td></tr>"; } echo "</table>"; echo "</td></tr></table>"; ?>
  19. Which variable is "Test" supposed to be in your code?
  20. That's it. PHP isn't running, or something. I just copied your whole file: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php //there is a line before "klftgiuyfg" echo "<br>klftgiuyfg<br />"; ?> </body> </html> and named the file "test.html" and I get: klftgiuyfg "; ?> as my output.
  21. Try this: <?php $result = mysql_query("SELECT * FROM stats where identity = 'Sailor Moon'") or die(mysql_error()); $row = mysql_fetch_array( $result ); echo "<table><tr><td width='80%' align='right' valign='top'>"; // added align='right' valign='top' echo "<table border='0' width='50%' id='stats'>"; // keeps getting the next row until there are no more to get echo "<tr><td colspan='3' id='th'>Stats And Derived Values</td></tr>"; echo "<tr><td>"; echo "<b>Body:</b></td><td col class='right'>"; echo $row['body']; echo "</td></tr><tr><td>"; echo "<b>Mind:</b></td><td col class='right'>"; echo $row['mind']; echo "</td></tr><tr><td>"; echo "<b>Soul:</b></td><td col class='right'>"; echo $row['soul']; echo "</td></tr><tr><td>"; echo " </td></tr><tr><td>"; echo "<b>Health Points:</b></td><td col class='right'>"; echo $row['health']; echo "</td></tr><tr><td>"; echo "<b>Energy Points:</b></td><td col class='right'>"; echo $row['energy']; echo "</td></tr><tr><td>"; echo "<b>Attack Combat Value:</b></td><td col class='right'>"; echo $row['acv']; echo "</td><td col class='right'>"; // added </td> echo " ("; echo $row['acv_sa']; echo " for Sailor Scout Attack)"; echo "</td>"; echo "</td></tr><tr><td >"; echo "<b>Defense Combat Value:</b></td><td col class='right'>"; echo $row['dcv']; echo "</td><td col class='right'>"; // added </td> echo " ("; echo $row['dcv_sa']; echo " for Sailor Scout Attack)"; //echo "</td>"; // that's an extra one echo "</td></tr><tr><td>"; echo "<b>Total Character Points:</b></td><td col class='right'>"; echo $row['tcp']; echo "</td></tr>"; echo "</table>"; $result = mysql_query("SELECT * FROM character_defects where identity = 'Sailor Moon' ORDER BY defect_id ASC") or die(mysql_error()); $row = mysql_fetch_array( $result ); echo "<table border='0' width='50%' id='stats'>"; echo "<tr><td colspan='3' id='th'>Character Defects</td></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { echo "<tr><td>"; echo $row['defect_id']; echo " "; echo $row['desc']; echo "</td><td>"; echo $row['bp']; echo " BP"; echo "</td></tr>"; } echo "</table>"; echo "</td><td>"; $result = mysql_query("SELECT * FROM character_attributes ORDER BY attribute_id ASC") or die(mysql_error()); $row = mysql_fetch_array( $result ); echo "</td><td align='right' valign='top'>"; // added this whole line echo "<table border='0' width='40%' id='stats'>"; echo "<tr><td colspan='7' id='th'>Character Attributes And Sub-Attributes</td></tr>"; echo "<tr class='sub'><td>Attribute/Sub-Attribute</td><td colspan='3' align='center'>Level</td><td colspan='3' align='center'>Points</td></tr>"; echo "<tr><td></td></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { echo "<tr><td>"; echo $row['attribute_id']; echo " "; echo $row['desc']; echo "</td><td width='2%'> </td><td width='1%' align='right'>"; echo $row['level']; echo "</td><td width='2%'> </td><td width='2%'> </td><td width='1%' align='right'>"; echo $row['points']; echo "</td><td width='2%'> </td></tr>"; } echo "</table>"; echo "</td></tr></table>"; ?>
  22. Interesting. I did a search for it before I posted, as you suggest, but it forwarded me to the regular mysql functions. My bad, and weird that it wouldn't have sent me to the mysqli. Again, my bad.
×
×
  • 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.