Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: iterpimas

Parašė robert· 2008 Lie. 12 16:07:25
#1

Kaip iterpti stai si koda
<td style="width:98%;">
<table style="margin-left: auto;margin-right: auto;text-align: left;background: #333333;border: 1px solid #161616;" width="100%" cellpadding="2" cellspacing="1">

<tr style="background: #161616">
<td style="width: 5%;">&nbsp;</td>
<td style="width: 10%;"><b>Data</b></td><td style="width: 30%;" align="center"><b>Varzovas</b></td>
<td style="width: 15%;" align="center"><b>Tipas</b></td>
<td style="width: 15%;" align="center"><b>Stilius</b></td>
<td style="width: 15%;" align="center"><b>Rezultatai</b></td>
<td style="width: 10%;" align="center"><b>Pranesimas</b></td></tr>
<tr style="background: #333333">
<td style="width: 5%;">&nbsp;<img src="images/games/cs.gif" alt="" title="Counter-Strike" /></td>
<td style="width: 10%;">6/26/2008</td>

<td style="width: 30%;"><img src="images/flags/Lietuva.jpeg" alt="" title="Lietuva" /> - aZ</td><td style="width: 15%;" align="center">TRN #CM</td>
<td style="width: 15%;" align="center">5x5</td>
<td style="background: #009900;width: 15%;" align="center"><span style="color: #FFFFFF;"><b>16/8</b></span></td>
<td style="width: 10%;" align="center"><a href="index.php"><img style="border: 0;" src="/images/report.gif" alt="" /></a></td></tr>
</table>
<br /><div style="text-align: center;"><small><b>1</b> Kova : <b><span style="color: #009900;">1</span></b> Laimeta - <b><span style="color: #990000;">0</span></b> Pralaimeta - <b><span style="color: #3333FF;">0</span></b> Lygiosios</small></div><br />

            </td>





I php koda, kad atrodytu taip www.site.lt/kovos.php ? kaip taip padaryti?

Parašė pgai· 2008 Lie. 12 16:07:36
#2

pakeisk \" į \' ir viskas gausis.

Parašė robert· 2008 Lie. 12 16:07:20
#3

ne taip supratai as noriu kad butu panaisiai kaip sitas kodas,,

<?php

/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/

require_once \\\"maincore.php\\\";
require_once \\\"subheader.php\\\";
require_once \\\"side_left.php\\\";


opentable(\\\"Top 100 siunciamiausiu\\\");

echo \\\"\\\";

$result = dbquery(\\\"SELECT * FROM \\\".$db_prefix.\\\"downloads ORDER BY download_count DESC LIMIT 0,100\\\");

if (dbrows($result) != 0) {

echo \\\"<table width=\\\'100%\\\' cellpadding=\\\'0\\\' cellspacing=\\\'0\\\'>\\\";

while($data = dbarray($result)) {

$itemsubject = trimlink($data[\\\'download_title\\\'], 23);

echo \\\"<tr>\\\\n<td class=\\\'small\\\'><img src=\\\'\\\".THEME.\\\"images/bullet.gif\\\'> <a href=\\\'\\\".BASEDIR.\\\"downloads.php?cat_id=\\\".$data[\\\'download_cat\\\'].\\\"&download_id=\\\".$data[\\\'download_id\\\'].\\\"\\\' title=\\\'\\\".$data[\\\'download_title\\\'].\\\"\\\' class=\\\'side\\\'>$itemsubject</a></td>\\\\n

<td align=\\\'right\\\'>\\\".$data[\\\'download_count\\\'].\\\"</td>\\\\n</tr>\\\\n\\\";

}

echo \\\"</table>\\\";

} else {

echo \\\"<center>\\\".$locale[\\\'004\\\'].\\\"</center>\\\\n\\\";

}

closetable();

require_once \\\"side_right.php\\\";
require_once \\\"footer.php\\\";

?>




tik kad vietoj top100 dainu rodytu sita koda

<td style="width:98%;">
<table style="margin-left: auto;margin-right: auto;text-align: left;background: #333333;border: 1px solid #161616;" width="100%" cellpadding="2" cellspacing="1">

<tr style="background: #161616">
<td style="width: 5%;">&nbsp;</td>
<td style="width: 10%;"><b>Data</b></td><td style="width: 30%;" align="center"><b>Varzovas</b></td>
<td style="width: 15%;" align="center"><b>Tipas</b></td>
<td style="width: 15%;" align="center"><b>Stilius</b></td>
<td style="width: 15%;" align="center"><b>Rezultatai</b></td>
<td style="width: 10%;" align="center"><b>Pranesimas</b></td></tr>
<tr style="background: #333333">
<td style="width: 5%;">&nbsp;<img src="images/games/cs.gif" alt="" title="Counter-Strike" /></td>
<td style="width: 10%;">6/26/2008</td>

<td style="width: 30%;"><img src="images/flags/Lietuva.jpeg" alt="" title="Lietuva" /> - aZ</td><td style="width: 15%;" align="center">TRN #CM</td>
<td style="width: 15%;" align="center">5x5</td>
<td style="background: #009900;width: 15%;" align="center"><span style="color: #FFFFFF;"><b>16/8</b></span></td>
<td style="width: 10%;" align="center"><a href="index.php"><img style="border: 0;" src="/images/report.gif" alt="" /></a></td></tr>
</table>
<br /><div style="text-align: center;"><small><b>1</b> Kova : <b><span style="color: #009900;">1</span></b> Laimeta - <b><span style="color: #990000;">0</span></b> Pralaimeta - <b><span style="color: #3333FF;">0</span></b> Lygiosios</small></div><br />

            </td>




Kai pats idedu man meta errora
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/terasa/sendto.xz.lt/top100.php on line 21

va kaip as sudejau ta koda


<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";

opentable("Kovos");
echo "
<td>
<table>

<tr style="background: #161616">
<td style="width: 5%;">&nbsp;</td>
<td style="width: 10%;"><b>Data</b></td><td style="width: 30%;" align="center"><b>Varzovas</b></td>
<td style="width: 15%;" align="center"><b>Tipas</b></td>
<td style="width: 15%;" align="center"><b>Stilius</b></td>
<td style="width: 15%;" align="center"><b>Rezultatai</b></td>
<td style="width: 10%;" align="center"><b>Pranesimas</b></td></tr>
<tr style="background: #333333">
<td style="width: 5%;">&nbsp;<img src="www.pause.nkk.lt/images/games/cs.gif" alt="" title="Counter-Strike" /></td>
<td style="width: 10%;">6/26/2008</td>

<td style="width: 30%;"><img src="www.pause.nkk.lt/images/flags/Lietuva.jpeg" alt="" title="Lietuva" /> - aZ</td><td style="width: 15%;" align="center">TRN #CM</td>
<td style="width: 15%;" align="center">5x5</td>
<td style="background: #009900;width: 15%;" align="center"><span style="color: #FFFFFF;"><b>16/8</b></span></td>
<td style="width: 10%;" align="center"><a href="index.php?file=Wars&amp;op=detail&amp;war_id=1"><img style="border: 0;" src="modules/Wars/images/report.gif" alt="" /></a></td></tr>
</table>
<br /><div style="text-align: center;"><small><b>1</b> Kova : <b><span style="color: #009900;">1</span></b> Laimeta - <b><span style="color: #990000;">0</span></b> Pralaimeta - <b><span style="color: #3333FF;">0</span></b> Lygiosios</small></div><br />

            </td>
";

   closetable();




require_once "side_right.php";
require_once "footer.php";
?>





Gal kas zino ka blogai darau? ?| :(

Redagavo robert· 2008 Lie. 12 16:07:22

Parašė ramon· 2008 Lie. 12 16:07:55
#4

Ne nu jus man juokingi lb Jei html koda rasai su " dvigubais td rasote echo ' '; o jei html rasote ' ne dviguba td jau iprastai echo " ";

Imk:

<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";

opentable("Kovos");
echo "echo "<td style='width:98%;'>
<table style='margin-left: auto;margin-right: auto;text-align: left;background: #333333;border: 1px solid #161616;' width='100%' cellpadding='2' cellspacing='1'>

<tr style='background: #161616'>
<td style='width: 5%;'>&nbsp;</td>
<td style='width: 10%;'><b>Data</b></td><td style='width: 30%;' align='center'><b>Varzovas</b></td>
<td style='width: 15%;' align='center'><b>Tipas</b></td>
<td style='width: 15%;' align='center'><b>Stilius</b></td>
<td style='width: 15%;' align='center'><b>Rezultatai</b></td>
<td style='width: 10%;' align='center'><b>Pranesimas</b></td></tr>
<tr style='background: #333333'>
<td style='width: 5%;'>&nbsp;<img src='images/games/cs.gif' alt='' title='Counter-Strike' /></td>
<td style='width: 10%;'>6/26/2008</td>

<td style='width: 30%;'><img src='images/flags/Lietuva.jpeg' alt='' title='Lietuva' /> - aZ</td><td style='width: 15%;' align='center'>TRN #CM</td>
<td style='width: 15%;' align='center'>5x5</td>
<td style='background: #009900;width: 15%;' align='center'><span style='color: #FFFFFF;'><b>16/8</b></span></td>
<td style='width: 10%;' align='center'><a href='index.php'><img style='border: 0;' src='/images/report.gif' alt='' /></a></td></tr>
</table>
<br /><div style='text-align: center;'><small><b>1</b> Kova : <b><span style='color: #009900;'>1</span></b> Laimeta - <b><span style='color: #990000;'>0</span></b> Pralaimeta - <b><span style='color: #3333FF;'>0</span></b> Lygiosios</small></div><br />

            </td>
";

   closetable();




require_once "side_right.php";
require_once "footer.php";
?>