Jump to content

Yamaha32088

Members
  • Posts

    32
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Yamaha32088's Achievements

Member

Member (2/5)

0

Reputation

  1. very helpful thread prolly just what your looking for http://www.phpfreaks.com/forums/index.php/topic,58799.0.html
  2. I would post in the Java script area because I think thats what you will need to accomplish that maybe someone will know of a tutorial. Sorry I'm not much help
  3. Try this I think this is what you are wanting. http://www.plus2net.com/php_tutorial/php_drop_down_list.php
  4. Page code <?php require_once('../Connections/PCPAGEADS.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } mysql_select_db($database_PCPAGEADS, $PCPAGEADS); $query_Recordset1 = "SELECT * FROM Categorys"; $Recordset1 = mysql_query($query_Recordset1, $PCPAGEADS) or die(mysql_error()); $row_Recordset1 = mysql_fetch_assoc($Recordset1); $totalRows_Recordset1 = mysql_num_rows($Recordset1); ?><!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 1</title> <link rel="stylesheet" type="text/css" href="new.css" /> </head> <body> <div id="Content"> <div style="position:relative; z-index:1;"> <div align="center"><img src="images/1333.jpg" width="780" /></div> </div> <div style="position:relative; z-index:1; left: 0px; top: 2px;"> <div align="center"><img src="images/10.jpg" /><img alt="" src="images/11.jpg" width="180" height="25" align="top" /></div> </div> <div style="position:relative; z-index:2; left: 0px; top: 1px;"> <div align="center"><img src="images/13.jpg" /><img alt="" src="images/14.jpg" width="408" height="53" /><img alt="" src="images/15.jpg" width="180" height="36" /></div> </div> <div style="position:relative; z-index:3; left: 300px; top: -61px;"> <div align="center"><img src="images/12.jpg" /></div> </div> </div> <div style="position:relative; z-index:4; left: 550px; top: -25px;"> <?php do { ?> <li><div align="left"><a href="<?php echo $row_Recordset1['URL']; ?>"><?php echo $row_Recordset1['type']; ?></a></div> </li> <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?> </div> </body> </html> <?php mysql_free_result($Recordset1); ?> CSS Code body { margin:50px 0px; padding:0px; text-align:center; } #Content { width:780px; margin:0px auto; text-align:left; padding:15px; background-color:#FFFFFF; } #test { z-index:50; top:-12px; }
  5. Why is it that when i view the same webpage that is encoded with CSS, PHP, and HTML that they display differently as far as left margins. In IE it shows my set of links where I want them to be but in Mozilla it shows them to the left further.
  6. Thanks for the reply I will try that out and see how it works
  7. Alright I am having problems figuring out how to position different images I will include two photos and the code for both the HTML and CSS. Picture that needs to be fixed Picture of what it needs to look like HTML code <!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> <link href="file:///C|/Documents and Settings/Owner/My Documents/PCPAGEADS/fff.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="Content"> <p><img src="file:///C|/Documents and Settings/Owner/My Documents/PCPAGEADS/1333.jpg" width="780" height="69" /><br /> <img src="file:///C|/Documents and Settings/Owner/My Documents/PCPAGEADS/10.jpg" width="600" height="34" /><img src="file:///C|/Documents and Settings/Owner/My Documents/PCPAGEADS/11.jpg" width="180" height="25" align="texttop" /><br /> <img src="file:///C|/Documents and Settings/Owner/My Documents/PCPAGEADS/13.jpg" width="192" height="53" class="span" /><img src="file:///C|/Documents and Settings/Owner/My Documents/PCPAGEADS/14.jpg" width="408" height="53" /><img src="file:///C|/Documents and Settings/Owner/My Documents/PCPAGEADS/12.jpg" width="180" height="26" /></p> </div> </body> </html> CSS Code @charset "utf-8"; body { margin:50px 0px; padding:0px; text-align:center; } #Content { width:780px; margin:0px auto; text-align:left; padding:15px; background-color:#FFFFFF; } #normal { background-image: url(1333.jpg); height: 69px; width: 780px; } .span {
  8. I need to create a page that is Aligned center at all times that is 780px wide. How do I go about creating this I am new to CSS and have to recreate an entire template that used tables into a CSS style.
  9. thats what I am attempting to modify it with is there a better program out there.
  10. I realize that I am confused why the template company used tables, I guess just to be difficult.
  11. Alright I am having major problems and have been working on this for hours and still having come up with anything. I have got a template I am modifying I have gotten rid of the default links on the template and have just left one and what I am doing is pulling link names and the URL from a MySQL database which works fine. The problem I am having is that the link name is longer then the width of the table so it creates a new line with the rest of the name. I do not want that I want it to be able to automatically adjust its width for every new link added since it is loaded dynamically and will be set as the default website template. I have tried to adjust the table width but all it does is make the page wider and messes up all of the pictures by leaving whitespace between them. I will include the original code and the code I have modified with the PHP. Any help is greatly appreciated. ORIGINAL CODE <HTML> <HEAD> <TITLE>co-casher-17</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251"> <style type="text/css"><!-- .header {font-family:Verdana, sans-serif; font-size: 12px; COLOR:#2FFFFF; padding-left:10; padding-right:5; font-weight:900 } .text {font-family:Tahoma,sans-serif; font-size: 11px; color:#000000; padding-left:20; padding-right:10 } .text2 {font-family:Tahoma,sans-serif; font-size: 11px; color:#404040; padding-left:10; padding-right:10 } .news {font-family:Arial, sans-serif; font-size: 9pt; color:#000000; padding-left:10; padding-right:5; font-weight:900; } a:link{text-decoration: underline; color:#D92D0A} a:visited{text-decoration: underline; color: #D92D0A} a:hover{text-decoration: underline; color: #D92D0A} a:active{text-decoration: underline; color: #D92D0A} --></style> </HEAD> <BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0> <!-- ImageReady Slices (co-casher-17.psd) --> <TABLE WIDTH=780 BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center" height=100%> <TR> <td bgcolor=#000000 rowspan=100><img src="images/spacer.gif" with=1></td> <TD COLSPAN=4 ROWSPAN=2 WIDTH=240 HEIGHT=69> <IMG SRC="images/1.jpg" WIDTH=240 HEIGHT=69 ALT=""></TD> <TD COLSPAN=12 WIDTH=540 HEIGHT=21> <IMG SRC="images/2.jpg" WIDTH=540 HEIGHT=21 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=21 ALT=""></TD> <td bgcolor=#000000 rowspan=100><img src="images/spacer.gif" with=1></td> </TR> <TR> <TD WIDTH=66 HEIGHT=48> <a href="http://"><img src="images/3.jpg" width=66 height=48 alt="" border=0></a></TD> <TD COLSPAN=2 WIDTH=70 HEIGHT=48> <a href="http://"><img src="images/4.jpg" width=70 height=48 alt="" border=0></a></TD> <TD COLSPAN=2 WIDTH=78 HEIGHT=48> <a href="http://"><img src="images/5.jpg" width=78 height=48 alt="" border=0></a></TD> <TD COLSPAN=3 WIDTH=96 HEIGHT=48> <a href="http://"><img src="images/6.jpg" width=96 height=48 alt="" border=0></a></TD> <TD COLSPAN=2 WIDTH=84 HEIGHT=48> <a href="http://"><img src="images/7.jpg" width=84 height=48 alt="" border=0></a></TD> <TD WIDTH=42 HEIGHT=48> <a href="http://"><img src="images/8.jpg" width=42 height=48 alt="" border=0></a></TD> <TD WIDTH=104 HEIGHT=48> <a href="http://"><img src="images/9.jpg" width=104 height=48 alt="" border=0></a></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=48 ALT=""></TD> </TR> <TR> <TD COLSPAN=13 ROWSPAN=2 WIDTH=600 HEIGHT=34> <IMG SRC="images/10.jpg" WIDTH=600 HEIGHT=34 ALT=""></TD> <TD COLSPAN=3 WIDTH=180 HEIGHT=25> <IMG SRC="images/11.jpg" WIDTH=180 HEIGHT=25 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=25 ALT=""></TD> </TR> <TR> <TD COLSPAN=3 ROWSPAN=2 background="images/12.jpg" WIDTH=180 HEIGHT=26 ALT="" align="center"> <input type="Text" value="" name="" style="width:150"> </TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=9 ALT=""></TD> </TR> <TR> <TD COLSPAN=3 ROWSPAN=2 WIDTH=192 HEIGHT=53> <IMG SRC="images/13.jpg" WIDTH=192 HEIGHT=53 ALT=""></TD> <TD COLSPAN=10 ROWSPAN=2 WIDTH=408 HEIGHT=53> <IMG SRC="images/14.jpg" WIDTH=408 HEIGHT=53 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=17 ALT=""></TD> </TR> <TR> <TD COLSPAN=3 WIDTH=180 HEIGHT=36> <a href="http://"><img src="images/15.jpg" width=180 height=36 alt="" border=0></a></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=36 ALT=""></TD> </TR> <TR> <TD COLSPAN=3 height=100% valign="top" background="images/bbl.jpg"> <!--buttons--> <TABLE WIDTH=192 BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center"> <TR><td background="images/but1.jpg" height=20 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Accessories</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Barebone Kits</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Cables</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>CD / CD-RW / DVD</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Components</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Computer Cases</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Cooling Products</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Desktop PCs</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Digital Cameras</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Electronics</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Flash Memory</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Hard Disk Drives</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Input Devices</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Laptops / Notebooks</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Media</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Memory</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Modems</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Monitors</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Motherboards</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Motherboard & CPU</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>MP3 Audio</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Networking</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Office Equipment</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>PDAs</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Plasma Displays</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Power Protection</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Printers</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Printer Supplies</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Processors (CPUs)</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Projectors</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Removable Storage</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Scanners </b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Servers</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Software</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Software - Download</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Sound Cards</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Speakers</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Training</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Video Cards</b></a></div></td></tr> <TR><td background="images/but.jpg" height=19 width=192 style="padding-left:10"><div class="text"><a href="http://"><b>Wireless Networking</b></a></div></td></tr> </table> <!--buttons--> </TD> <TD COLSPAN=13 height=100% valign="top" background="images/bgr.jpg" WIDTH=588 style="padding-left:20"> <br><br> <!-- right text--> <TABLE WIDTH=400 BORDER=0 CELLPADDING=0 CELLSPACING=0 align="left" > <TR><td colspan=2><IMG SRC="images/r1.jpg" WIDTH=200 HEIGHT=40 ALT=""></td> <td colspan=2><IMG SRC="images/r3.jpg" WIDTH=200 HEIGHT=40 ALT=""></td></tr> <TR><td colspan=2><IMG SRC="images/r2.jpg" WIDTH=200 HEIGHT=113 ALT=""></td> <td colspan=2><IMG SRC="images/r4.jpg" WIDTH=199 HEIGHT=113 ALT=""></td></tr> <TR><td colspan=2 background="images/rr1.jpg" WIDTH=200 HEIGHT=33 ALT=""> <div class="text"> This is the most powerful desktop<br> computer we've ever offered! </div> </td><td colspan=2 background="images/rr2.jpg" WIDTH=199 HEIGHT=33 ALT=""><div class="text"> This is the most powerful desktop<br> computer we've ever offered! </div></td></tr> <TR><td colspan=1><a href="http://"><img src="images/r13.jpg" width=102 height=32 border=0 alt=""></a></td> <td colspan=1><a href="http://"><img src="images/r14.jpg" width=98 height=32 border=0 alt=""></a></td> <td colspan=1><a href="http://"><img src="images/r13.jpg" width=102 height=32 border=0 alt=""></a></td> <td colspan=1><a href="http://"><img src="images/r14.jpg" width=98 height=32 border=0 alt=""></a></td> </tr> <TR><td colspan=2><IMG SRC="images/r5.jpg" WIDTH=200 HEIGHT=40 ALT=""></td> <td colspan=2><IMG SRC="images/r7.jpg" WIDTH=200 HEIGHT=40 ALT=""></td></tr> <TR><td colspan=2><IMG SRC="images/r6.jpg" WIDTH=200 HEIGHT=113 ALT=""></td> <td colspan=2><IMG SRC="images/r8.jpg" WIDTH=199 HEIGHT=113 ALT=""></td></tr> <TR><td colspan=2 background="images/rr1.jpg" WIDTH=200 HEIGHT=33 ALT=""> <div class="text"> This is the most powerful desktop<br> computer we've ever offered! </div> </td><td colspan=2 background="images/rr2.jpg" WIDTH=199 HEIGHT=33 ALT=""><div class="text"> This is the most powerful desktop<br> computer we've ever offered! </div></td></tr> <TR><td colspan=1><a href="http://"><img src="images/r13.jpg" width=102 height=32 border=0 alt=""></a></td> <td colspan=1><a href="http://"><img src="images/r14.jpg" width=98 height=32 border=0 alt=""></a></td> <td colspan=1><a href="http://"><img src="images/r13.jpg" width=102 height=32 border=0 alt=""></a></td> <td colspan=1><a href="http://"><img src="images/r14.jpg" width=98 height=32 border=0 alt=""></a></td> </tr> <TR><td colspan=2><IMG SRC="images/r9.jpg" WIDTH=200 HEIGHT=40 ALT=""></td> <td colspan=2><IMG SRC="images/r11.jpg" WIDTH=200 HEIGHT=40 ALT=""></td></tr> <TR><td colspan=2><IMG SRC="images/r10.jpg" WIDTH=200 HEIGHT=113 ALT=""></td> <td colspan=2><IMG SRC="images/r12.jpg" WIDTH=199 HEIGHT=113 ALT=""></td></tr> <TR><td colspan=2 background="images/rr1.jpg" WIDTH=200 HEIGHT=33 ALT=""> <div class="text"> This is the most powerful desktop<br> computer we've ever offered! </div> </td><td colspan=2 background="images/rr2.jpg" WIDTH=199 HEIGHT=33 ALT=""><div class="text"> This is the most powerful desktop<br> computer we've ever offered! </div></td></tr> <TR><td colspan=1><a href="http://"><img src="images/r13.jpg" width=102 height=32 border=0 alt=""></a></td> <td colspan=1><a href="http://"><img src="images/r14.jpg" width=98 height=32 border=0 alt=""></a></td> <td colspan=1><a href="http://"><img src="images/r13.jpg" width=102 height=32 border=0 alt=""></a></td> <td colspan=1><a href="http://"><img src="images/r14.jpg" width=98 height=32 border=0 alt=""></a></td> </tr> </table> <!-- right text--> </TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=727 ALT=""></TD> </TR> <TR> <TD COLSPAN=16 WIDTH=780 HEIGHT=13 > <IMG SRC="images/18.jpg" WIDTH=780 HEIGHT=13 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=13 ALT=""></TD> </TR> <TR> <TD WIDTH=110 HEIGHT=25> <IMG SRC="images/19.jpg" WIDTH=110 HEIGHT=25 ALT=""></TD> <TD WIDTH=65 HEIGHT=25> <a href="http://"><img src="images/20.jpg" width=65 height=25 alt="" border=0></a></TD> <TD COLSPAN=2 WIDTH=65 HEIGHT=25> <a href="http://"><img src="images/21.jpg" width=65 height=25 alt="" border=0></a></TD> <TD COLSPAN=2 WIDTH=84 HEIGHT=25> <a href="http://"><img src="images/22.jpg" width=84 height=25 alt="" border=0></a></TD> <TD COLSPAN=2 WIDTH=95 HEIGHT=25> <a href="http://"><img src="images/23.jpg" width=95 height=25 alt="" border=0></a></TD> <TD COLSPAN=2 WIDTH=86 HEIGHT=25> <a href="http://"><img src="images/24.jpg" width=86 height=25 alt="" border=0></a></TD> <TD WIDTH=37 HEIGHT=25> <a href="http://"><img src="images/25.jpg" width=37 height=25 alt="" border=0></a></TD> <TD COLSPAN=3 WIDTH=92 HEIGHT=25> <a href="http://"><img src="images/26.jpg" width=92 height=25 alt="" border=0></a></TD> <TD COLSPAN=2 WIDTH=146 HEIGHT=25> <IMG SRC="images/27.jpg" WIDTH=146 HEIGHT=25 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=25 ALT=""></TD> </TR> <TR> <TD COLSPAN=16 background="images/28.jpg" WIDTH=780 HEIGHT=30 ALT="" align="center"> <div class="text" style="color:808080"> 2003 (c) Copyright CompanyName, inc. All rights reserved. Read <a href="http://">Legal Policy</a> and <a href="http://">Privacy Policy.</a></div> </TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=30 ALT=""></TD> </TR> <TR> <TD> <IMG SRC="images/spacer.gif" WIDTH=110 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=65 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=17 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=48 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=66 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=18 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=52 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=43 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=35 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=51 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=37 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=8 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=50 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=34 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=42 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=104 HEIGHT=1 ALT=""></TD> <TD></TD> </TR> </TABLE> <!-- End ImageReady Slices --> </BODY> </HTML> MODIFIED CODE <?php require_once('../Connections/PCPAGEADS.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } mysql_select_db($database_PCPAGEADS, $PCPAGEADS); $query_Recordset1 = "SELECT * FROM Categorys"; $Recordset1 = mysql_query($query_Recordset1, $PCPAGEADS) or die(mysql_error()); $row_Recordset1 = mysql_fetch_assoc($Recordset1); $totalRows_Recordset1 = mysql_num_rows($Recordset1); ?><HTML> <HEAD> <TITLE>co-casher-17</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251"> <style type="text/css"><!-- .header {font-family:Verdana, sans-serif; font-size: 12px; COLOR:#2FFFFF; padding-left:10; padding-right:5; font-weight:900 } .text {font-family:Tahoma,sans-serif; font-size: 11px; color:#000000; padding-left:20; padding-right:10 } .text2 {font-family:Tahoma,sans-serif; font-size: 11px; color:#404040; padding-left:10; padding-right:10 } .news {font-family:Arial, sans-serif; font-size: 9pt; color:#000000; padding-left:10; padding-right:5; font-weight:900; } a:link{text-decoration: underline; color:#D92D0A} a:visited{text-decoration: underline; color: #D92D0A} a:hover{text-decoration: underline; color: #D92D0A} a:active{text-decoration: underline; color: #D92D0A} --></style> </HEAD> <BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0> <!-- ImageReady Slices (co-casher-17.psd) --> <TABLE WIDTH=780 BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center" height=100%> <TR> <td bgcolor=#000000 rowspan=100><img src="images/spacer.gif" with=1></td> <TD COLSPAN=4 ROWSPAN=2 WIDTH=240 HEIGHT=69> <IMG SRC="images/1.jpg" WIDTH=240 HEIGHT=69 ALT=""></TD> <TD COLSPAN=12 WIDTH=540 HEIGHT=21> <IMG SRC="images/2.jpg" WIDTH=540 HEIGHT=21 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=21 ALT=""></TD> <td bgcolor=#000000 rowspan=100><img src="images/spacer.gif" with=1></td> </TR> <TR> <TD WIDTH=66 HEIGHT=48> <a href="http://"><img src="images/3.jpg" width=66 height=48 alt="" border=0></a></TD> <TD COLSPAN=2 WIDTH=70 HEIGHT=48> <a href="http://"><img src="images/4.jpg" width=70 height=48 alt="" border=0></a></TD> <TD COLSPAN=2 WIDTH=78 HEIGHT=48> <a href="http://"><img src="images/5.jpg" width=78 height=48 alt="" border=0></a></TD> <TD COLSPAN=3 WIDTH=96 HEIGHT=48> <a href="http://"><img src="images/6.jpg" width=96 height=48 alt="" border=0></a></TD> <TD COLSPAN=2 WIDTH=84 HEIGHT=48> <a href="http://"><img src="images/7.jpg" width=84 height=48 alt="" border=0></a></TD> <TD WIDTH=42 HEIGHT=48> <a href="http://"><img src="images/8.jpg" width=42 height=48 alt="" border=0></a></TD> <TD WIDTH=104 HEIGHT=48> <a href="http://"><img src="images/9.jpg" width=104 height=48 alt="" border=0></a></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=48 ALT=""></TD> </TR> <TR> <TD COLSPAN=13 ROWSPAN=2 WIDTH=600 HEIGHT=34> <IMG SRC="images/10.jpg" WIDTH=600 HEIGHT=34 ALT=""></TD> <TD COLSPAN=3 WIDTH=180 HEIGHT=25> <IMG SRC="images/11.jpg" WIDTH=180 HEIGHT=25 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=25 ALT=""></TD> </TR> <TR> <TD COLSPAN=3 ROWSPAN=2 background="images/12.jpg" WIDTH=180 HEIGHT=26 ALT="" align="center"> <input type="Text" value="" name="" style="width:150"> </TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=9 ALT=""></TD> </TR> <TR> <TD COLSPAN=3 ROWSPAN=2 WIDTH=192 HEIGHT=53> <IMG SRC="images/13.jpg" WIDTH=192 HEIGHT=53 ALT=""></TD> <TD COLSPAN=10 ROWSPAN=2 WIDTH=408 HEIGHT=53> <IMG SRC="images/14.jpg" WIDTH=408 HEIGHT=53 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=17 ALT=""></TD> </TR> <TR> <TD COLSPAN=3 WIDTH=180 HEIGHT=36> <a href="http://"><img src="images/15.jpg" width=180 height=36 alt="" border=0></a></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=36 ALT=""></TD> </TR> <TR> <TD COLSPAN=3 height=100% valign="top" background="images/bbl.jpg"> <!--buttons--> <?php do { ?> <TABLE WIDTH=192 BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center"> <TR><td colspan="3" background="images/but1.jpg" height=20 width=192 style="padding-left:10"><div class="text"><a href="<?php echo $row_Recordset1['URL']; ?>"><b><?php echo $row_Recordset1['type']; ?></b></a></div></td></tr> </table> <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?> <!--buttons--> </TD> <TD COLSPAN=13 height=100% valign="top" background="images/bgr.jpg" WIDTH=588 style="padding-left:20"> <br><br> <!-- right text--> <TABLE WIDTH=400 BORDER=0 CELLPADDING=0 CELLSPACING=0 align="left" > <TR><td colspan=2><IMG SRC="images/r1.jpg" WIDTH=200 HEIGHT=40 ALT=""></td> <td colspan=2><IMG SRC="images/r3.jpg" WIDTH=200 HEIGHT=40 ALT=""></td></tr> <TR><td colspan=2><IMG SRC="images/r2.jpg" WIDTH=200 HEIGHT=113 ALT=""></td> <td colspan=2><IMG SRC="images/r4.jpg" WIDTH=199 HEIGHT=113 ALT=""></td></tr> <TR><td colspan=2 background="images/rr1.jpg" WIDTH=200 HEIGHT=33 ALT=""> <div class="text"> This is the most powerful desktop<br> computer we've ever offered! </div> </td><td colspan=2 background="images/rr2.jpg" WIDTH=199 HEIGHT=33 ALT=""><div class="text"> This is the most powerful desktop<br> computer we've ever offered! </div></td></tr> <TR><td colspan=1><a href="http://"><img src="images/r13.jpg" width=102 height=32 border=0 alt=""></a></td> <td colspan=1><a href="http://"><img src="images/r14.jpg" width=98 height=32 border=0 alt=""></a></td> <td colspan=1><a href="http://"><img src="images/r13.jpg" width=102 height=32 border=0 alt=""></a></td> <td colspan=1><a href="http://"><img src="images/r14.jpg" width=98 height=32 border=0 alt=""></a></td> </tr> <TR><td colspan=2><IMG SRC="images/r5.jpg" WIDTH=200 HEIGHT=40 ALT=""></td> <td colspan=2><IMG SRC="images/r7.jpg" WIDTH=200 HEIGHT=40 ALT=""></td></tr> <TR><td colspan=2><IMG SRC="images/r6.jpg" WIDTH=200 HEIGHT=113 ALT=""></td> <td colspan=2><IMG SRC="images/r8.jpg" WIDTH=199 HEIGHT=113 ALT=""></td></tr> <TR><td colspan=2 background="images/rr1.jpg" WIDTH=200 HEIGHT=33 ALT=""> <div class="text"> This is the most powerful desktop<br> computer we've ever offered! </div> </td><td colspan=2 background="images/rr2.jpg" WIDTH=199 HEIGHT=33 ALT=""><div class="text"> This is the most powerful desktop<br> computer we've ever offered! </div></td></tr> <TR><td colspan=1><a href="http://"><img src="images/r13.jpg" width=102 height=32 border=0 alt=""></a></td> <td colspan=1><a href="http://"><img src="images/r14.jpg" width=98 height=32 border=0 alt=""></a></td> <td colspan=1><a href="http://"><img src="images/r13.jpg" width=102 height=32 border=0 alt=""></a></td> <td colspan=1><a href="http://"><img src="images/r14.jpg" width=98 height=32 border=0 alt=""></a></td> </tr> <TR><td colspan=2><IMG SRC="images/r9.jpg" WIDTH=200 HEIGHT=40 ALT=""></td> <td colspan=2><IMG SRC="images/r11.jpg" WIDTH=200 HEIGHT=40 ALT=""></td></tr> <TR><td colspan=2><IMG SRC="images/r10.jpg" WIDTH=200 HEIGHT=113 ALT=""></td> <td colspan=2><IMG SRC="images/r12.jpg" WIDTH=199 HEIGHT=113 ALT=""></td></tr> <TR><td colspan=2 background="images/rr1.jpg" WIDTH=200 HEIGHT=33 ALT=""> <div class="text"> This is the most powerful desktop<br> computer we've ever offered! </div> </td><td colspan=2 background="images/rr2.jpg" WIDTH=199 HEIGHT=33 ALT=""><div class="text"> This is the most powerful desktop<br> computer we've ever offered! </div></td></tr> <TR><td colspan=1><a href="http://"><img src="images/r13.jpg" width=102 height=32 border=0 alt=""></a></td> <td colspan=1><a href="http://"><img src="images/r14.jpg" width=98 height=32 border=0 alt=""></a></td> <td colspan=1><a href="http://"><img src="images/r13.jpg" width=102 height=32 border=0 alt=""></a></td> <td colspan=1><a href="http://"><img src="images/r14.jpg" width=98 height=32 border=0 alt=""></a></td> </tr> </table> <!-- right text--> </TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=727 ALT=""></TD> </TR> <TR> <TD COLSPAN=16 WIDTH=780 HEIGHT=13 > <IMG SRC="images/18.jpg" WIDTH=780 HEIGHT=13 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=13 ALT=""></TD> </TR> <TR> <TD WIDTH=110 HEIGHT=25> <IMG SRC="images/19.jpg" WIDTH=110 HEIGHT=25 ALT=""></TD> <TD WIDTH=65 HEIGHT=25> <a href="http://"><img src="images/20.jpg" width=65 height=25 alt="" border=0></a></TD> <TD COLSPAN=2 WIDTH=65 HEIGHT=25> <a href="http://"><img src="images/21.jpg" width=65 height=25 alt="" border=0></a></TD> <TD COLSPAN=2 WIDTH=84 HEIGHT=25> <a href="http://"><img src="images/22.jpg" width=84 height=25 alt="" border=0></a></TD> <TD COLSPAN=2 WIDTH=95 HEIGHT=25> <a href="http://"><img src="images/23.jpg" width=95 height=25 alt="" border=0></a></TD> <TD COLSPAN=2 WIDTH=86 HEIGHT=25> <a href="http://"><img src="images/24.jpg" width=86 height=25 alt="" border=0></a></TD> <TD WIDTH=37 HEIGHT=25> <a href="http://"><img src="images/25.jpg" width=37 height=25 alt="" border=0></a></TD> <TD COLSPAN=3 WIDTH=92 HEIGHT=25> <a href="http://"><img src="images/26.jpg" width=92 height=25 alt="" border=0></a></TD> <TD COLSPAN=2 WIDTH=146 HEIGHT=25> <IMG SRC="images/27.jpg" WIDTH=146 HEIGHT=25 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=25 ALT=""></TD> </TR> <TR> <TD COLSPAN=16 background="images/28.jpg" WIDTH=780 HEIGHT=30 ALT="" align="center"> <div class="text" style="color:808080"> 2003 (c) Copyright CompanyName, inc. All rights reserved. Read <a href="http://">Legal Policy</a> and <a href="http://">Privacy Policy.</a></div> </TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=30 ALT=""></TD> </TR> <TR> <TD> <IMG SRC="images/spacer.gif" WIDTH=110 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=65 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=17 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=48 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=66 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=18 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=52 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=43 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=35 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=51 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=37 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=8 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=50 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=34 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=42 HEIGHT=1 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=104 HEIGHT=1 ALT=""></TD> <TD></TD> </TR> </TABLE> <!-- End ImageReady Slices --> </BODY> </HTML> <?php mysql_free_result($Recordset1); ?>
  12. THANK YOU SO MUCH FOR EVERYONES HELP worked perfect!!!!!!!!!!!!!!
  13. I am new to php/mysql. My website I am working on is www.marketlistads.com its just a template im modyfying but i first got to get the code to work. What im wondering is if there is a way to create something like a container that will reload anylink clicked on in it so that it doesnt reload the entire page and so I dont have to create 32 or more pages that are exactly the same just with the body being a little different. An example in case thats not clear enough is basically a left sided frame set I have never worked with Iframes or Framesets before but I have heard bad things about them. I want the user to be able to click on the links from the left navigation menu and not have to watch the entire page reload. Plus its a pain duplicating the same page over and over only to change a few pictures around. Anyhelp would greatly be appreciated.
  14. I was hoping someone could help me out with this I have a database with two tables Category's and Sub category's. I was wondering if its possible to create a dynamic list of category's on the left side of the screen since I might be adding and removing category's constantly. Also when the user goes over a category that has sub category's in it I would like them to appear to the right side of the category's. An example of what I want can be viewed here http://www.remington.com/products/ . Does anyone know of sample scripts, tutorials, etc. Any help is greatly appreciated.
×
×
  • 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.