Jump to content

fewchurpro

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

fewchurpro's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. its a script from global syndication, I wouldnt know how to change it up. Im not that advanced. I used it on another site but it only used border 1 and just 1 gif for header bar.
  2. Im putting parsed info into a box. But im having trouble with some of the parts repeating itself. Is there something I need to add to stop that? Here is the code for the output [pre]// output HTML // print ("<div class=\"channelname\">" . $rss_channel["TITLE"] . "</div>"); if (isset($rss_channel["ITEMS"])) { if (count($rss_channel["ITEMS"]) > 0) { for($i = 0;$i < 5;$i++) { if (isset($rss_channel["ITEMS"][$i]["LINK"])) { print ("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td background=\"wow5summ_01.jpg\" height=\"33\" width=\"64\"></td><td background=\"wow5summ_02.jpg\" height=\"33\">\n<div class=\"itemtitle\"><a href=\"" . $rss_channel["ITEMS"][$i]["LINK"] . "\"><strong><font color =\"#ffcc00\" size =\"3\" Verdana, Arial, Helvetica, sans-serif>" . $rss_channel["ITEMS"][$i]["TITLE"] . "</font></strong></a></td><td background=\"wow5summ_03.jpg\" width=\"46\" height=\"33\"></td></tr></div>"); } else { print ("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"64\" background=\"wow5summ_01.jpg\" height=\"33\"></td><td background=\"wow5summ_02.jpg\" height=\"33\">\n<div class=\"itemtitle\"><strong><font color=\"#b7baab\" size=\"2\">" . $rss_channel["ITEMS"][$i]["TITLE"] . "</font></strong></td><td background=\"wow5summ_03.jpg\" width=\"46\" height=\"33\"></td></tr></div>"); } print ("<tr><td background=\"wow5summ_04.jpg\" width=\"64\" height=\"20\"></td><td background=\"wow5summ_05.jpg\"></td><td background=\"wow5summ_06.jpg\" width=\"46\" height=\"20\"></td></tr>"); print ("<tr><td background=\"wow5summ_07.jpg\" width=\"64\" height=\"86\"></td><td background=\"wow5summ_08.jpg\"><font size=\"2\"><div class=\"itemdescription\">" . $rss_channel["ITEMS"][$i]["DESCRIPTION"] . "</font></td><td background=\"wow5summ_09.jpg\" width=\"64\" height=\"86\"></td></tr></div>"); print ("<tr><td background=\"wow5summ_10.jpg\" width=\"64\" height=\"25\"></td><td background=\"wow5summ_11.jpg\"></td><td background=\"wow5summ_12.jpg\" width=\"46\" height=\"25\"></td></tr></table><br/>");            } } else { print ("<b>There are no articles in this feed.</b>"); } } [/pre] And here you can see what is happening. Ive added box at the bottom to show what it should look like as well. [url=http://guild-studio.com/kb/parse.php]Parsed Output[/url] also if there is anyway to make the text for the title bar look the same as the css file part I would really appreciate the help on that too. Here is the setup for the css file for the title section. Unfortunately in my output i was unable to make a class work for that. [pre].summ1 {background-image: url(wow5summ_02.jpg); color:#FFCC00;font-weight:bold; font-size:12px;} .summ1 a:link,.summ1 a:active,.summ1 a:visited {font-weight:bold; font-size:12px; color:#FFCC00;} .summ1 a:hover {color:#000000;}[/pre]
  3. I have a parsed file to read an rss file and im trying to make it table in its own box, though the box is very detailed. The trouble im having is it is not drawing the box correctly. This is the output code for it: // output HTML // print ("<div class=\"channelname\">" . $rss_channel["TITLE"] . "</div>"); if (isset($rss_channel["ITEMS"])) { if (count($rss_channel["ITEMS"]) > 0) { for($i = 0;$i < 5;$i++) { if (isset($rss_channel["ITEMS"][$i]["LINK"])) { print ("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td background=\"wow5summ_01.jpg\" height=\"33\" width=\"64\"></td><td background=\"wow5summ_02.jpg\" height=\"33\">\n<div class=\"itemtitle\"><a href=\"" . $rss_channel["ITEMS"][$i]["LINK"] . "\"><strong><font color =\"#b7baab\" size =\"2\">" . $rss_channel["ITEMS"][$i]["TITLE"] . "</font></strong></a></td><td background=\"wow5summ_03.jpg\" width=\"46\" height=\"33\"></td></tr></div>"); } else { print ("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"64\" background=\"wow5summ_01.jpg\" height=\"33\"></td><td background=\"wow5summ_02.jpg\" height=\"33\">\n<div class=\"itemtitle\"><strong><font color=\"#b7baab\" size=\"2\">" . $rss_channel["ITEMS"][$i]["TITLE"] . "</font></strong></td><td background=\"wow5summ_03.jpg\" width=\"46\" height=\"33\"></td></tr></div>"); } print ("<tr><td background=\"wow5summ_04.jpg\" width=\"64\" height=\"20\"></td><td background=\"wow5summ_05.jpg\"></td><td background=\"wow5summ_06.jpg\" width=\"46\" height=\"20\"></td></tr>"); print ("<tr><td background=\"wow5summ_07.jpg\" width=\"64\" height=\"86\"></td><td background=\"wow5summ_08.jpg\"><font size=\"2\"><div class=\"itemdescription\">" . $rss_channel["ITEMS"][$i]["DESCRIPTION"] . "</font></td><td background=\"wow5summ_09.jpg\" width=\"64\" height=\"86\"></td></tr></div>"); print ("<tr><td background=\"wow5summ_10.jpg\" width=\"64\" height=\"25\"></td><td background=\"wow5summ_11.jpg\"></td><td background=\"wow5summ_12.jpg\" width=\"46\" height=\"25\"></td></tr></table><br/>");            } } else { print ("<b>There are no articles in this feed.</b>"); } } And this is the test page file im using for testing purposes. [url=http://guild-studio.com/kb/parse.php]Page File[/url] I have the box drawn out at the bottom of that page to show what it is supposed to look like. I need help figuring out what I have done wrong to cause it to draw the end <td> portions over and over again. Any help would be appreciated. Thank you
  4. Again, thank you for your speedy answer. It worked perfectly. Thank you so very much.
  5. thank you for the quick responce will that work without a css? and will it call a php file?
  6. I'll start with a little background here. I play DAoC, an online game and they have xml files to pull info from to use on websites. I recently got a script for server status and it works great. Written in PhP very clean. Now for what I really need. I would like to call that php file into the guild web page. And I'd like to put it in a box, sorta along the lines that you would see in say php nuke. I cant seem to figure out how to call it to the html file. Here is where id like to add it:   <tr>                       <td width="100%">                 <img border="0" src="images/content-header.gif" width="120" height="20"><div align="center">                   <center>                   <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber6">                     <tr>                       <td width="100%" bgcolor="">                       <p align="center">                                             <br>           <div>                       <font size="1" face="Verdana">                       [color=red]<*** Call the php file camelotstatus.php here ***>[/color]</font><br>           </div> <br>       </td> </tr> </table>                     <img border="0" src="images/content-bottom.gif" width="120" height="20">                     </center>             </div>     </td> </tr> Is there any command or way to put the file there? Sorry it looks so jumbled here, copy and pasted out of editor, looks all neat and aligned there.
  7. [!--quoteo(post=350517:date=Feb 28 2006, 09:31 PM:name=wickning1)--][div class=\'quotetop\']QUOTE(wickning1 @ Feb 28 2006, 09:31 PM) [snapback]350517[/snapback][/div][div class=\'quotemain\'][!--quotec--] <a href="show_weapon.php?wep_id=$wep_id\"><? echo "$Itemname"; ?></a> You are in HTML mode when you call $wep_id. Do this instead: <a href="show_weapon.php?wep_id=<? echo "$wep_id\"> $Itemname"; ?></a> [/quote] That worked. Thank you so much for the help. /bows
  8. What can I do with what I have there? Or do I need to just scrap the whole project and start at ground zero?
  9. [!--quoteo(post=350456:date=Feb 28 2006, 05:32 PM:name=fenway)--][div class=\'quotetop\']QUOTE(fenway @ Feb 28 2006, 05:32 PM) [snapback]350456[/snapback][/div][div class=\'quotemain\'][!--quotec--] I don't really understand why you don't put the ouput in the while loop (which should be an if, btw, since you're searching by UID). That way, you can skip all those variable assignments and just do the output straight. [/quote] Mostly because Im new and dont really know any better. My poor eyes are burned out trying to sort thru this and looking up info to help me do this. Im pretty lost now. :(
  10. Sorry Im pretty noobish and have been beating myself pretty hard on my issue, including going thru books and all the php/mysql pages. So here is what Im tryin to accomplish. I run a gaming site, and have been putting weapons, armor, etc into a database. What im trying to accomplish is when they go to the page for like say weapons they get a menu of the items. I have started one and got the menu part to work at [a href=\"http://osa.guild-studio.com/index2.php\" target=\"_blank\"]http://osa.guild-studio.com/index2.php[/a] I tried using some help from one of the books I purchased on php a while back on how to make the individual item show up when you click on the name but thus far, ive been completely unsuccessful. I'll copy and paste the files I've been butchering up here and hopefully someone can help me out. (UN and PW intentionally not there for this) NOTE: I am in no way needing people to log-in, edit, modify, change, add, delete or anything, this is strictly for VIEWING only. Files: index.php [code]<? mysql_connect("localhost", "*******", "*****"); mysql_select_db("guild_xmltestingdb") or die( "Unable to select database"); $query="SELECT * FROM ds_weaponshib"; $result=mysql_query($query); $num=mysql_numrows($result); mysql_close(); echo "<b><center>Database Output</center></b><br><br>"; ?> <table border="1" cellspacing="2" cellpadding="2"> <tr> <th><font face="Arial, Helvetica, sans-serif">Weapon</font></th> </tr> <? $i=0; while ($i < $num) { $wep_id=mysql_result($result,$i,"wep_id"); $Itemname=mysql_result($result,$i,"Itemname"); ?> <tr> <td><font face="Arial, Helvetica, sans-serif"><a href="show_weapon.php?wep_id=$wep_id\"><? echo "$Itemname"; ?></a></font></td> </tr> <? ++$i; } echo "</table>"; ?>[/code] And the file to show the item show_weapon.php [code]<? $db_name = "guild_xmltestingdb"; $table_name = "ds_weaponshib"; $connection = @mysql_connect("localhost", "****", "****") or die("Couldn't connect."); $db = @mysql_select_db($db_name, $connection) or die("Couldn't select database."); $chk_id = "SELECT id FROM $table_name WHERE wep_id  = \"$wep_id\""; $chk_id_res = @mysql_query($chk_id,$connection) or die("Couldn't execute query."); $chk_id_num = mysql_num_rows($chk_id_res); {     $sql = "SELECT wep_id, Itemname, Quality, Level, DPS, Speed, Bonus, Dam_type, Location, Offhand, s1_effect, s1_amount, s2_effect, s2_amount, s3_effect, s3_amount, s4_effect, s4_amount, s5_effect, s5_amount, s6_effect, s6_amount         FROM $table_name         WHERE wep_id = \"$wep_id\"         ";     $result = @mysql_query($sql,$connection) or die("Couldn't execute query.");     while ($row = mysql_fetch_array($result)) {         $wep_id = $row['wep_id'];         $Itemname = $row['Itemname'];         $Quality = $row['Quality'];         $Level = $row['Level'];         $DPS = $row['DPS'];         $Speed = $row['Speed'];         $Bonus = $row['Bonus'];         $Dam_type = $row['Dam_type'];         $Location = $row['Location'];         $Offhand = $row['Offhand'];         $s1_effect = $row['s1_effect'];         $s1_amount = $row['s1_amount'];         $s2_effect = $row['s2_effect'];         $s2_amount = $row['s2_amount'];         $s3_effect = $row['s3_effect'];         $s3_amount = $row['s3_amount'];         $s4_effect = $row['s4_effect'];         $s4_amount = $row['s4_amount'];         $s5_effect = $row['s5_effect'];         $s5_amount = $row['s5_amount'];         $s6_effect = $row['s6_effect'];         $s6_amount = $row['s6_amount'];     } } ?> <HTML> <HEAD> <TITLE>My Weapon Management System: Read-Only Contact Details</TITLE> </HEAD> <BODY> <h1>My Weapon Management System</h1> <h2>DS Hibernia Weapon Details for <? echo "$Itemname"; ?></h2> <P><strong>Weapon:</strong><br> <? echo "$Itemname"; ?><br> <?    echo "<strong>Quality:</strong> $Quality <br>";    echo "<strong>Level:</strong> $Level <br>";    echo "<strong>DPS:</strong> $DPS <br>";    echo "<strong>Speed:</strong> $Speed <br>";    echo "<strong>Bonus:</strong> $Bonus <br>";    echo "<strong>Type:</strong> $Dam_type <br>";    echo "<strong>Hand:</strong> $Location <br>";    echo "<strong>LH Usable:</strong> $Offhand <br>";    echo "<strong>Slot 1:</strong> $s1_amount $s1_effect <br>";    echo "<strong>Slot 2:</strong> $s2_amount $s2_effect <br>";    echo "<strong>Slot 3:</strong> $s3_amount $s3_effect <br>";    echo "<strong>Slot 4:</strong> $s4_amount $s4_effect <br>";    echo "<strong>Slot 5:</strong> $s5_amount $s5_effect <br>";    echo "<strong>Slot 6:</strong> $s6_amount $s6_effect <br>"; ?> </BODY> </HTML> [/code] Its probably very messy, again im pretty new and have been trying hard to get it right.
×
×
  • 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.