Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
<?PHP $fwDBName = "axiom"; $fwHost = "localhost"; $fwUser = "root"; $fwPassword = ""; $fwLink = mysql_connect( $fwHost , $fwUser , $fwPassword ); //$fwDBConnect = mysql_connect_db( $fwDBName , $fwLink ); $kfwDevelopment = 1; $kfwLive = 2; $fwServer = 1; // Created by MySQL Get Records 'GetProducts' // ------ $myData = ""; $fwQuery = "SELECT * FROM products"; $myData = mysql_db_query( $fwDBName , $fwQuery , $fwLink ) or die("Database error in GetProducts<br>"."Error #" . mysql_errno() . ": " . mysql_error()); // Put the data into an array while ($Row = mysql_fetch_array( $myData )) { $id[] = $Row[id]; $productName[] = $Row[productname]; $description[] = $Row[description]; $price[] = $Row[price]; } $z = count($id); //------- ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1"> <title>Axiom Widgets</title> <meta name="GENERATOR" content="Freeway 5 Pro 5.0.2"> <style type="text/css"> <!-- body { margin:0px; background-color:#f7c274 } html { height:100% } img { margin:0px; border-style:none } button { margin:0px; border-style:none; padding:0px; background-color:transparent; vertical-align:top } p:first-child { margin-top:0px } table { empty-cells:hide } .f-sp { font-size:1px; visibility:hidden } .f-lp { margin-bottom:0px } .f-fp { margin-top:0px } .f-x1 { } .f-x2 { } .f-x3 { } a:link { color:#000 } a:visited { color:#f66 } a:active { color:#804000 } em { font-style:italic } h1 { font-family:Arial,Helvetica,sans-serif; font-weight:bold; font-size:18px; line-height:15px; margin-top:0px; margin-bottom:6px } h1:first-child { margin-top:0px } strong { font-weight:bold } .Links { font-family:Arial,Helvetica,sans-serif; font-size:9px } .style4 { text-decoration:underline } --> </style> <!--[if lt IE 7]> <link rel=stylesheet type="text/css" href="../css/ie6.css"> <![endif]--> </head> <body> <div id="PageDiv" style="position:relative"> <table border=0 cellspacing=0 cellpadding=0 width=583> <colgroup> <col width=30> <col width=258> <col width=282> <col width=12> <col width=1> </colgroup> <tr valign=top> <td height=10 colspan=4></td> <td height=10></td> </tr> <tr valign=top> <td height=10 colspan=2></td> <td height=22 colspan=2 rowspan=2></td> <td height=10></td> </tr> <tr valign=top> <td height=36 rowspan=2></td> <td height=12 valign=bottom><img src="../Resources/masterheadere.gif" border=0 width=258 height=11 alt="Seaside Break ... page 6" style="position:relative; top:1px; float:left"></td> <td height=12></td> </tr> <tr valign=top> <td height=24 colspan=2><img src="../Resources/masterheaderf.gif" border=0 width=271 height=13 alt="Seaside Break ... page 6" style="float:left"></td> <td height=24></td> <td height=24></td> </tr> <tr class="f-sp"> <td><img src="../Resources/_clear.gif" border=0 width=30 height=1 alt="" style="float:left"></td> <td><img src="../Resources/_clear.gif" border=0 width=258 height=1 alt="" style="float:left"></td> <td><img src="../Resources/_clear.gif" border=0 width=282 height=1 alt="" style="float:left"></td> <td><img src="../Resources/_clear.gif" border=0 width=12 height=1 alt="" style="float:left"></td> <td height=4><img src="../Resources/_clear.gif" border=0 width=1 height=1 alt="" style="float:left"></td> </tr> </table> <table border=0 cellspacing=0 cellpadding=0 width=583> <colgroup> <col width=30> <col width=216> <col width=14> <col width=10> <col width=132> <col width=168> <col width=12> <col width=1> </colgroup> <tr valign=top> <td height=537 rowspan=8></td> <td height=537 rowspan=8><img src="../Resources/greenboxe.gif" border=0 width=216 height=537 alt="GreenBox" style="float:left"></td> <td height=18 colspan=2></td> <td height=18 colspan=2><p class="Links f-lp"><a href="../index.html"><span class="Links">Home</span></a> | <a href="../page2.html"><span class="Links">Page 2</span></a> | <a href="../page3.html"><span class="Links">Page 3</span></a> | <a href="../page4.html"><span class="Links">Page 4</span></a> | <a href="../page5.html"><span class="Links">Page 5</span></a> | <a href="sales.php"><span class="Links">Page 6</span></a></p> </td> <td height=18></td> <td height=18></td> </tr> <tr valign=top> <td height=3 colspan=5></td> <td height=3></td> </tr> <tr valign=top> <td height=474 rowspan=5></td> <td height=6 colspan=4> <?PHP $fwCount = 0; for ($n = 0; $n < $z; $n++) { $myid = $id[$n]; $myProductName = $productName[$n]; $myDescription = $description[$n]; $myPrice = $price[$n]; $z = count($id); $fwCount = $fwCount+1; } ?> </td> <td height=6></td> </tr> <tr valign=top> <td height=90> <?PHP $fwCount = 0; for ($n = 0; $n < $z; $n++) { $myid = $id[$n]; $myProductName = $productName[$n]; $myDescription = $description[$n]; $myPrice = $price[$n]; $z = count($id); $fwCount = $fwCount+1; } ?> </td> <td height=90><p><em><strong><span class="style4">$myProductName</span></strong></em></p> <p>$myDescription</p> <p> </p> <p class="f-lp"><strong>$myPrice</strong></p> </td> <td height=90 colspan=2> <?PHP $fwCount = 0; for ($n = 0; $n < $z; $n++) { $myid = $id[$n]; $myProductName = $productName[$n]; $myDescription = $description[$n]; $myPrice = $price[$n]; $z = count($id); $fwCount = $fwCount+1; } ?> </td> <td height=90></td> </tr> <tr valign=top> <td height=110 colspan=4> <?PHP $fwCount = 0; for ($n = 0; $n < $z; $n++) { $myid = $id[$n]; $myProductName = $productName[$n]; $myDescription = $description[$n]; $myPrice = $price[$n]; $z = count($id); $fwCount = $fwCount+1; } ?> </td> <td height=110></td> </tr> <tr valign=top> <td height=90> <?PHP $fwCount = 0; for ($n = 0; $n < $z; $n++) { $myid = $id[$n]; $myProductName = $productName[$n]; $myDescription = $description[$n]; $myPrice = $price[$n]; $z = count($id); $fwCount = $fwCount+1; } ?> </td> <td height=90><p><em><strong><span class="style4">$myProductName</span></strong></em></p> <p>$myDescription</p> <p> </p> <p class="f-lp"><strong>$myPrice</strong></p> </td> <td height=90 colspan=2> <?PHP $fwCount = 0; for ($n = 0; $n < $z; $n++) { $myid = $id[$n]; $myProductName = $productName[$n]; $myDescription = $description[$n]; $myPrice = $price[$n]; $z = count($id); $fwCount = $fwCount+1; } ?> </td> <td height=90></td> </tr> <tr valign=top> <td height=178 colspan=4> <?PHP $fwCount = 0; for ($n = 0; $n < $z; $n++) { $myid = $id[$n]; $myProductName = $productName[$n]; $myDescription = $description[$n]; $myPrice = $price[$n]; $z = count($id); $fwCount = $fwCount+1; } ?> </td> <td height=178></td> </tr> <tr valign=top> <td height=42 colspan=5></td> <td height=42></td> </tr> <tr class="f-sp"> <td><img src="../Resources/_clear.gif" border=0 width=30 height=1 alt="" style="float:left"></td> <td><img src="../Resources/_clear.gif" border=0 width=216 height=1 alt="" style="float:left"></td> <td><img src="../Resources/_clear.gif" border=0 width=14 height=1 alt="" style="float:left"></td> <td><img src="../Resources/_clear.gif" border=0 width=10 height=1 alt="" style="float:left"></td> <td><img src="../Resources/_clear.gif" border=0 width=132 height=1 alt="" style="float:left"></td> <td><img src="../Resources/_clear.gif" border=0 width=168 height=1 alt="" style="float:left"></td> <td><img src="../Resources/_clear.gif" border=0 width=12 height=1 alt="" style="float:left"></td> <td height=1><img src="../Resources/_clear.gif" border=0 width=1 height=1 alt="" style="float:left"></td> </tr> </table> </div> </body> </html>
This paste will be private.
From the Design Piracy series on my blog: