Jump to content

kernelgpf

Members
  • Posts

    227
  • Joined

  • Last visited

Everything posted by kernelgpf

  1. I recently switched this code to subtract days to hours, but it isn't working.. it's coming out with "343957987" hours and crazy stuff like that. Here's my code- $expirationdate[0] = $row3[datetillcompletion]; $startdate[0] = date("l, M dS (h:i a) "); $startdate = strtotime($startdate[0]); $expirationdate = strtotime($expirationdate[0]); $delta = $expirationdate - $startdate; $final=round($delta/3600);
  2. Really? I was thinking that would be really slow.. there is a large difference between the animals [columns] in each table, and there are nearly 7,000 of each animal- do you still advise it?
  3. That would require hard coding, which I don't want to do, so I could add more animals later if necessary. Thank you though, that should work. =]
  4. See- I've got a training center for a bunch of different animals, but these animals don't have the same stats. So, basically, I want all of the animals to be available to train, and if they try to train an animal, I need code that checks if there is a certain column in a table, or if that animal has a specific stat. How would I do this? Thanks.
  5. Eh, you're right jesirose. =P When I was copying over my DB I must've done that table twice. Thanks!
  6. I switched servers, and as soon as I did, this bit of code doesn't work, it's printing everything out twice. I have PHP 5 on my new server.. $query=mysql_query("select indistrict,acreID,whatisbuilt,ownedby,name from land where ownedby='$vid'"); $num=mysql_num_rows($query); if($num == "0"){ print "No acres!"; include "footer.php"; exit; } while($row=mysql_fetch_array($query)){ if(empty($row[whatisbuilt])){ $row[whatisbuilt]="nothing"; } if($row[whatisbuilt] == "stable"){ print "<a href='stable.php?stableID=$row[acreID]'><b>$row[name]</b> Stable (#$row[acreID])</a> | <a href='acre.php?acreID=$row[acreID]'>[ x acre link ]</a><br>"; continue; } if($row[whatisbuilt] == "cage"){ print "<a href='cage.php?cageID=$row[acreID]'><b>$row[name]</b> Cage (#$row[acreID])</a> | <a href='acre.php?acreID=$row[acreID]'>[ x acre link ]</a><br>"; continue; } if($row[whatisbuilt] == "cave"){ print "<a href='cave.php?caveID=$row[acreID]'><b>$row[name]</b> Cave (#$row[acreID])</a> | <a href='acre.php?acreID=$row[acreID]'>[ x acre link ]</a><br>"; continue; } print "<a href='acre.php?acreID=$row[acreID]'>Acre #$row[acreID]</a> - <b>$row[whatisbuilt]</b> on it - in the <b>$row[indistrict]</b><br>"; }
  7. Here's my code- I'm trying to find the difference in hours between one date from another, and my code currently finds the difference in days- could somebody edit the code to use hours instead of days? $expirationdate[0] = $row3[datetillcompletion]; $startdate[0] = date('Y-m-d'); $startdate = strtotime($startdate[0]); $expirationdate = strtotime($expirationdate[0]); $delta = $expirationdate - $startdate; $final=round($delta/86400);
  8. Yup, that's it. I'll have the base dragon images painted red, and have it substitute the hex color for the file. =P Thanks again, Barand.
  9. Eh, I wasn't aware of that. I just replied to a PM he sent me. Sorry. x.x No- that's feature draws an arc. On the BASE DRAGON image, I need JUST the dragon's lines filled in with a hex color I will specify. Barand- you gave me a script that'll replace all of a certain color with a different color- would you happen to still have that script, I think I've misplaced it.
  10. It doesn't say anywhere on the page how to color ONLY CERTAIN PARTS of the image, though. That's my problem.
  11. Because the color of the dragon depends on a hex code inserted in the DB: it needs to be dynamically colored.
  12. See, I have this script made for watermarks that layers two images together, here: http://dragon-dynasty.com/script2.php Now, I need to add code somewhere [where? =x] to have a certain color that I need to be able to specify transparently color over JUST the dragon. Any ideas?
  13. Okay- I've got two HTML scripts, that are nearly identical, except what goes into the main page part. But for some reason, there is a gap inbetween the navigational bar on one and NOT the other. Here's a screenshot- The "bad" screenie (with circled red on it) is the script "news.php" and the "good" screenie is "testpage.php". This is my code for news.php- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Pony Potions</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="/style.css" rel="stylesheet" type="text/css"> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <link href="/style2.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#353535" text="#000000" link="#333333" vlink="#333333" alink="#333333" onLoad="MM_preloadImages('/images/pprollgate_21.jpg','/images/pprollgate_22.jpg','/images/pprollgate_24.jpg','/images/pprollred_03.jpg','/images/pprollorange_04.jpg','/images/pprollyellow_05.jpg','/images/pprolllimegreen_06.jpg','/images/pprollbrightgreen_07.jpg','/images/pprollaqua_08.jpg','/images/pprollblue_09.jpg','/images/pprolldarkblue_10.jpg','/images/pprollpurple_11.jpg','/images/pprollpink_12.jpg','/images/pprollfuschia_13.jpg','/images/pprollgate_23.jpg')"> <div align="center"> <table width="810" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td height="58" colspan="15" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="810" height="58"><img src="/images/ppgate_01.jpg" width="810" height="58"></td> </tr> </table></td> </tr> <tr> <td height="275" colspan="15" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="810" height="275"><img src="/images/ppgate_02.jpg" width="810" height="275"></td> </tr> </table></td> </tr> <tr> <td width="82" height="61" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="82" height="61"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image24','','/images/pprollred_03.jpg',1)"><img src="/images/ppgate_03.jpg" name="Image24" width="82" height="61" border="0"></a></td> </tr> </table></td> <td width="81" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="81" height="61"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image25','','/images/pprollorange_04.jpg',1)"><img src="/images/ppgate_04.jpg" name="Image25" width="81" height="61" border="0"></a></td> </tr> </table></td> <td colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="61" height="61"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image26','','/images/pprollyellow_05.jpg',1)"><img src="/images/ppgate_05.jpg" name="Image26" width="61" height="61" border="0"></a></td> </tr> </table></td> <td width="50" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="50" height="61"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image27','','/images/pprolllimegreen_06.jpg',1)"><img src="/images/ppgate_06.jpg" name="Image27" width="50" height="61" border="0"></a></td> </tr> </table></td> <td width="73" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="73" height="61"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image28','','/images/pprollbrightgreen_07.jpg',1)"><img src="/images/ppgate_07.jpg" name="Image28" width="73" height="61" border="0"></a></td> </tr> </table></td> <td width="70" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="70" height="61"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image29','','/images/pprollaqua_08.jpg',1)"><img src="/images/ppgate_08.jpg" name="Image29" width="70" height="61" border="0"></a></td> </tr> </table></td> <td colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="68" height="61"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image30','','/images/pprollblue_09.jpg',1)"><img src="/images/ppgate_09.jpg" name="Image30" width="68" height="61" border="0"></a></td> </tr> </table></td> <td width="64" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="64" height="61"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image31','','/images/pprolldarkblue_10.jpg',1)"><img src="/images/ppgate_10.jpg" name="Image31" width="64" height="61" border="0"></a></td> </tr> </table></td> <td width="47" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="47" height="61"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image32','','/images/pprollpurple_11.jpg',1)"><img src="/images/ppgate_11.jpg" name="Image32" width="47" height="61" border="0"></a></td> </tr> </table></td> <td width="73" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="73" height="61"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image33','','/images/pprollpink_12.jpg',1)"><img src="/images/ppgate_12.jpg" name="Image33" width="73" height="61" border="0"></a></td> </tr> </table></td> <td colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="141" height="61"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image34','','/images/pprollfuschia_13.jpg',1)"><img src="/images/ppgate_13.jpg" name="Image34" width="141" height="61" border="0"></a></td> </tr> </table></td> </tr> <tr> <td height="18" colspan="15" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="810" height="18"><img src="/images/ppinside_14.jpg" width="810" height="18"></td> </tr> </table></td> </tr> <tr> <td height="930" colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="200" height="930"><img src="/images/ppgate_15.jpg" width="200" height="930" border="0" usemap="#Map"></td> </tr> </table></td> <td width="15" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="15" height="930"><img src="/images/ppinside_16.jpg" width="15" height="930"></td> </tr> </table></td> <td colspan="10" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="570" height="930" bgcolor="f0f0f0"> <!-- BEGIN LAYOUT CONTENT HERE --> <center>You are logged in as alyssa (#1).<br><small>You have $3500.00.</small></center><p><a href="modarea.php">Mod Area</a><br> <table id=all width=600 class=tstyle6><tr> <td class=tstyle2><center> News </td></tr><tr><td><center> <table id=menue class=tstyle5 width="100%"><tr><td><center> </table id=menue></td></tr><tr><td><center><br> <table class=tstyle1 width=500><tr> <p><br></table></table id=all></center><hr noshade><form method=post action=news.php> Username:<select name='nauthor'> <option>Ele</option> <option>Alyssa</option> </select><br>Subject:&nbsp<input type=text name=subject><br>Post:&nbsp<textarea name=npost rows=10 cols=75></textarea><br><center><input type=submit value=Submit name='post_news'></center></form></td> </tr> </table></td> <td width="25" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="25" height="930"><img src="/images/ppinside_18.jpg" width="25" height="930"></td> </tr> </table></td> </tr> <tr> <td height="23" colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="200" height="23"><img src="/images/ppgate_19.jpg" width="200" height="23"></td> </tr> </table></td> <td colspan="12" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="610" height="23"><img src="/images/ppinside_20.jpg" width="610" height="23"></td> </tr> </table></td> </tr> <tr> <td height="84" colspan="7" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="347" height="84"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image20','','/images/pprollgate_21.jpg',1)"><img src="/images/ppgate_21.jpg" name="Image20" width="347" height="84" border="0"></a></td> </tr> </table></td> <td colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="105" height="84"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image21','','/images/pprollgate_22.jpg',1)"><img src="/images/ppgate_22.jpg" name="Image21" width="105" height="84" border="0"></a></td> </tr> </table></td> <td colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="97" height="84"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image35','','/images/pprollgate_23.jpg',1)"><img src="/images/ppgate_23.jpg" name="Image35" width="97" height="84" border="0"></a></td> </tr> </table></td> <td colspan="4" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="261" height="84"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image23','','/images/pprollgate_24.jpg',1)"><img src="/images/ppgate_24.jpg" name="Image23" width="261" height="84" border="0"></a></td> </tr> </table></td> </tr> <tr> <td height="51" colspan="15" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="810" height="51" bgcolor="#333333"> </td> </tr> </table></td> </tr> <tr> <td height="1"></td> <td></td> <td width="37"></td> <td></td> <td width="9"></td> <td></td> <td></td> <td></td> <td width="35"></td> <td width="33"></td> <td></td> <td></td> <td></td> <td width="116"></td> <td></td> </tr> </table> </div> <map name="Map"> <area shape="rect" coords="17,47,133,86" href="http://www.ponypotions.com"> <area shape="rect" coords="14,91,133,117" href="http://www.ponypotions.com"> <area shape="rect" coords="17,121,128,146" href="http://www.ponypotions.com"> <area shape="rect" coords="19,152,128,179" href="http://www.ponypotions.com"> <area shape="rect" coords="18,186,131,215" href="http://www.ponypotions.com"> <area shape="rect" coords="19,220,146,253" href="http://www.ponypotions.com"> <area shape="rect" coords="22,339,122,373" href="http://www.ponypotions.com"> <area shape="rect" coords="23,378,121,404" href="http://www.ponypotions.com"> <area shape="rect" coords="25,410,117,436" href="http://www.ponypotions.com"> <area shape="rect" coords="23,444,114,467" href="http://www.ponypotions.com"> <area shape="rect" coords="25,477,120,509" href="http://www.ponypotions.com"> <area shape="rect" coords="27,516,121,542" href="http://www.ponypotions.com"> <area shape="rect" coords="25,548,125,572" href="http://www.ponypotions.com"> <area shape="rect" coords="24,581,143,618" href="http://www.ponypotions.com"> <area shape="rect" coords="20,703,161,734" href="http://www.ponypotions.com"> <area shape="rect" coords="20,742,182,771" href="http://www.ponypotions.com"> <area shape="rect" coords="20,779,140,808" href="http://www.ponypotions.com"> <area shape="rect" coords="19,811,180,852" href="http://www.ponypotions.com"> </map> </body> </html> And this is my code for "testpage.php": <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Pony Potions</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="/style.css" rel="stylesheet" type="text/css"> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <link href="/style2.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#353535" text="#000000" link="#333333" vlink="#333333" alink="#333333" onLoad="MM_preloadImages('/images/pprollgate_21.jpg','/images/pprollgate_22.jpg','/images/pprollgate_24.jpg','/images/pprollred_03.jpg','/images/pprollorange_04.jpg','/images/pprollyellow_05.jpg','/images/pprolllimegreen_06.jpg','/images/pprollbrightgreen_07.jpg','/images/pprollaqua_08.jpg','/images/pprollblue_09.jpg','/images/pprolldarkblue_10.jpg','/images/pprollpurple_11.jpg','/images/pprollpink_12.jpg','/images/pprollfuschia_13.jpg','/images/pprollgate_23.jpg')"> <div align="center"> <table width="810" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td height="58" colspan="15" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="810" height="58"><img src="/images/ppgate_01.jpg" width="810" height="58"></td> </tr> </table></td> </tr> <tr> <td height="275" colspan="15" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="810" height="275"><img src="/images/ppgate_02.jpg" width="810" height="275"></td> </tr> </table></td> </tr> <tr> <td width="82" height="61" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="82" height="61"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image24','','/images/pprollred_03.jpg',1)"><img src="/images/ppgate_03.jpg" name="Image24" width="82" height="61" border="0"></a></td> </tr> </table></td> <td width="81" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="81" height="61"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image25','','/images/pprollorange_04.jpg',1)"><img src="/images/ppgate_04.jpg" name="Image25" width="81" height="61" border="0"></a></td> </tr> </table></td> <td colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="61" height="61"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image26','','/images/pprollyellow_05.jpg',1)"><img src="/images/ppgate_05.jpg" name="Image26" width="61" height="61" border="0"></a></td> </tr> </table></td> <td width="50" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="50" height="61"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image27','','/images/pprolllimegreen_06.jpg',1)"><img src="/images/ppgate_06.jpg" name="Image27" width="50" height="61" border="0"></a></td> </tr> </table></td> <td width="73" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="73" height="61"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image28','','/images/pprollbrightgreen_07.jpg',1)"><img src="/images/ppgate_07.jpg" name="Image28" width="73" height="61" border="0"></a></td> </tr> </table></td> <td width="70" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="70" height="61"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image29','','/images/pprollaqua_08.jpg',1)"><img src="/images/ppgate_08.jpg" name="Image29" width="70" height="61" border="0"></a></td> </tr> </table></td> <td colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="68" height="61"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image30','','/images/pprollblue_09.jpg',1)"><img src="/images/ppgate_09.jpg" name="Image30" width="68" height="61" border="0"></a></td> </tr> </table></td> <td width="64" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="64" height="61"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image31','','/images/pprolldarkblue_10.jpg',1)"><img src="/images/ppgate_10.jpg" name="Image31" width="64" height="61" border="0"></a></td> </tr> </table></td> <td width="47" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="47" height="61"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image32','','/images/pprollpurple_11.jpg',1)"><img src="/images/ppgate_11.jpg" name="Image32" width="47" height="61" border="0"></a></td> </tr> </table></td> <td width="73" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="73" height="61"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image33','','/images/pprollpink_12.jpg',1)"><img src="/images/ppgate_12.jpg" name="Image33" width="73" height="61" border="0"></a></td> </tr> </table></td> <td colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="141" height="61"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image34','','/images/pprollfuschia_13.jpg',1)"><img src="/images/ppgate_13.jpg" name="Image34" width="141" height="61" border="0"></a></td> </tr> </table></td> </tr> <tr> <td height="18" colspan="15" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="810" height="18"><img src="/images/ppinside_14.jpg" width="810" height="18"></td> </tr> </table></td> </tr> <tr> <td height="930" colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="200" height="930"><img src="/images/ppgate_15.jpg" width="200" height="930" border="0" usemap="#Map"></td> </tr> </table></td> <td width="15" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="15" height="930"><img src="/images/ppinside_16.jpg" width="15" height="930"></td> </tr> </table></td> <td colspan="10" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="570" height="930" bgcolor="f0f0f0"> <!-- BEGIN LAYOUT CONTENT HERE --> testing</td> </tr> </table></td> <td width="25" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="25" height="930"><img src="/images/ppinside_18.jpg" width="25" height="930"></td> </tr> </table></td> </tr> <tr> <td height="23" colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="200" height="23"><img src="/images/ppgate_19.jpg" width="200" height="23"></td> </tr> </table></td> <td colspan="12" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="610" height="23"><img src="/images/ppinside_20.jpg" width="610" height="23"></td> </tr> </table></td> </tr> <tr> <td height="84" colspan="7" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="347" height="84"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image20','','/images/pprollgate_21.jpg',1)"><img src="/images/ppgate_21.jpg" name="Image20" width="347" height="84" border="0"></a></td> </tr> </table></td> <td colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="105" height="84"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image21','','/images/pprollgate_22.jpg',1)"><img src="/images/ppgate_22.jpg" name="Image21" width="105" height="84" border="0"></a></td> </tr> </table></td> <td colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="97" height="84"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image35','','/images/pprollgate_23.jpg',1)"><img src="/images/ppgate_23.jpg" name="Image35" width="97" height="84" border="0"></a></td> </tr> </table></td> <td colspan="4" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="261" height="84"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image23','','/images/pprollgate_24.jpg',1)"><img src="/images/ppgate_24.jpg" name="Image23" width="261" height="84" border="0"></a></td> </tr> </table></td> </tr> <tr> <td height="51" colspan="15" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="810" height="51" bgcolor="#333333"> </td> </tr> </table></td> </tr> <tr> <td height="1"></td> <td></td> <td width="37"></td> <td></td> <td width="9"></td> <td></td> <td></td> <td></td> <td width="35"></td> <td width="33"></td> <td></td> <td></td> <td></td> <td width="116"></td> <td></td> </tr> </table> </div> <map name="Map"> <area shape="rect" coords="17,47,133,86" href="http://www.ponypotions.com"> <area shape="rect" coords="14,91,133,117" href="http://www.ponypotions.com"> <area shape="rect" coords="17,121,128,146" href="http://www.ponypotions.com"> <area shape="rect" coords="19,152,128,179" href="http://www.ponypotions.com"> <area shape="rect" coords="18,186,131,215" href="http://www.ponypotions.com"> <area shape="rect" coords="19,220,146,253" href="http://www.ponypotions.com"> <area shape="rect" coords="22,339,122,373" href="http://www.ponypotions.com"> <area shape="rect" coords="23,378,121,404" href="http://www.ponypotions.com"> <area shape="rect" coords="25,410,117,436" href="http://www.ponypotions.com"> <area shape="rect" coords="23,444,114,467" href="http://www.ponypotions.com"> <area shape="rect" coords="25,477,120,509" href="http://www.ponypotions.com"> <area shape="rect" coords="27,516,121,542" href="http://www.ponypotions.com"> <area shape="rect" coords="25,548,125,572" href="http://www.ponypotions.com"> <area shape="rect" coords="24,581,143,618" href="http://www.ponypotions.com"> <area shape="rect" coords="20,703,161,734" href="http://www.ponypotions.com"> <area shape="rect" coords="20,742,182,771" href="http://www.ponypotions.com"> <area shape="rect" coords="20,779,140,808" href="http://www.ponypotions.com"> <area shape="rect" coords="19,811,180,852" href="http://www.ponypotions.com"> </map> </body> </html> The only difference is the code that's the actual page, not the layout, and I can't figure out what in that is spacing the nagivation bar. Help? Pre-thanks to help.
  14. I've looked- can't seem to find anything concerning the opaquity.
  15. Is there code (if so, what is it?) to paint an opaque layer of color over an entire image?
  16. With PHP, I'm looking for some way to select certain colors depending upon others. Such as if a parent dragon had skin the color #FFFFFF, and the other parent had #018274, how could I find a medium between each color? [the hex code ]
  17. What is the code to layer images?
  18. If they click the form, it takes them to.. filenamehere.php?action=multiple.
  19. Alright- I've got this little script that will "auto" do things with items, such as you can check the option to stock, discard, trade, donate, etc. an item, but with tons of items. Now- I want to pass WHAT they want to do with the item through in an array, and print out what it is they are trying to do, but my problem is that because it's a radio box option for each item, with the name of it being the item's ID number, I have no way to determine what the $_POST variable's name will be, because it will depend upon what item they've chosen to do something with.. here's my code- if($_GET['action'] == "multiple"){ if($_POST['actions']) { foreach($_POST['actions'] as $key => $value) { print "player wants to $key the item $value<br />\n"; } } $query=mysql_query("select iname,itemid from items where ownerid='$sid' and equipped='no' and usf='no' and auction='no'")or die(mysql_error()); echo ' <script type="text/javascript" src="http://www.shawnolson.net/scripts/public_smo_scripts.js"></script> <form method="post" action="inventory.php?action=multiple"> <table class="tstyle5"> <tr> <th class="tstyle5" width="50">Item</th> <th class="tstyle5" width="50">Stock?</th> <th class="tstyle5" width="50">Auction?</th> <th class="tstyle5" width="50">Give Away?</th> <th class="tstyle5" width="50">Donate?</th> <th class="tstyle5" width="50">Discard</th> </tr>'; while ($row = mysql_fetch_array($query)) { echo ' <tr> <td><b>' . $row[iname] . '</b></td> <td><INPUT type="radio" value="actions[stock][' . $row['itemid'] . ']" name="' . $row['itemid'] . '"></td> <td><INPUT type="radio" value="actions[auction][' . $row['itemid'] . ']" name="' . $row['itemid'] . '"></td> <td><INPUT type="radio" value="actions[giveaway][' . $row['itemid'] . ']" name="' . $row['itemid'] . '"></td> <td><INPUT type="radio" value="actions[donate][' . $row['itemid'] . ']" name="' . $row['itemid'] . '"></td> <td><INPUT type="radio" value="actions[discard][' . $row['itemid'] . ']" name="' . $row['itemid'] . '"></td> </tr>'; } echo ' <tr> <td> <input type="radio" name="checkall" onclick="checkUncheckAll(this);"/> <input type="submit" name="delete" value="Go!"> </td> </tr> </table> </form>'; echo '<pre>' . print_r($_POST, true) . '</pre>'; My main problem is that the "if($_POST['actions']) {" part of my code won't trigger. Any ideas? Pre-thanks to any help.
  20. <?php $website=$websiteURL; print "<a href='$website'>link title here</a>"; ?>
×
×
  • 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.