Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Mokama reklama
Parašė Poker· 2008 Bal. 27 13:04:28
#1
Noriu y subheader ikišt reklama, bet kažkas neto:|
Subheader
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 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
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: index.php"); exit; }
require_once THEME."theme.php";
if ($settings['maintenance'] == "1" && !iADMIN) fallback(BASEDIR."maintenance.php");
if (iMEMBER) $result = dbquery("UPDATE ".$db_prefix."users SET user_lastvisit='".time()."', user_ip='".USER_IP."' WHERE user_id='".$userdata['user_id']."'");
$result = dbquery("SELECT * FROM "parama");
$data = dbarray($sql)
require_once INCLUDES."seo_tags_include.php";
$seo_tags = seo_tags($article_id,$cat_id,$readmore,$forum_id,$thread_id,$db_prefix,$page_id);
echo "<div id='infobar'><a href='http://nesvarbu.lt'>$data['txt']</a></div>
<style>
#infobar a {
top: 0;
left: 0;
display: block;
width: 100%;
position: fixed;
height: 20px;
line-height: 16px;
font-family: Arial Black;
font-size: 12px;
text-decoration: none;
color: white;
background-color: #333333;
border-bottom: 3px solid #333333;
text-align: center;
}
#infobar a:hover {
color: black;
}
</style>
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<html>
<head>
<link rel='shortcut icon' href='".BASEDIR."favicon.ico'>
<!–[if lt IE 7.]>
<script defer type=”text/javascript” src=”pngfix.js”></script>
<![endif]–>
<title>".$seo_tags['title'].$settings['sitename']."</title>
<meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."'>
<meta name='description' content='";
if ($seo_tags['description']) {
echo $seo_tags['description'];
} else {
echo $settings['description'];
}
echo "'>
<meta name='keywords' content='";
if ($seo_tags['keywords']) {
echo $seo_tags['keywords'];
} else {
echo $settings['keywords'];
}
echo "'>";
echo "<link rel='stylesheet' href='".THEME."styles.css' type='text/css'>
<script type='text/javascript' src='".INCLUDES."jscript.js'></script>
</head>
<body bgcolor='$body_bg' text='$body_text'>\n";
render_header("<img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' title='".$settings['sitename']."'>");
?>
$data['txt']-Čia turetu atvaizduot teksta.
error`as: Parse error: syntax error, unexpected T_STRING in /home/miro/l2info.lt/subheader.php on line 19
Parašė Dandžu· 2008 Bal. 27 15:04:12
#2
Nesupratau kam šio kodo dalyje reikalingas dar vienas tas " ? Dėl jo ir error meta.
$result = dbquery("SELECT * FROM "parama");
$data = dbarray($sql)
Va kaip turi būti.
$result = dbquery("SELECT * FROM parama");
$data = dbarray($sql)
Parašė Poker· 2008 Bal. 27 15:04:54
#3
Nesiseka dabr error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/miro/l2info.lt/subheader.php on line 27
Kažkas netinka šitoi eilutei :
echo "<div id='infobar'><a href='http://nesvarbu.lt'>$data['txt']</a></div>
Parašė Poker· 2008 Bal. 28 17:04:52
#4
Vis neišprendžiu šitos problemos:|
Noriu padaryt mokama reklama.
Susikuriu sms.php taipat ir paramos lentele db.
subheader kodas:
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 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
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: index.php"); exit; }
require_once THEME."theme.php";
if ($settings['maintenance'] == "1" && !iADMIN) fallback(BASEDIR."maintenance.php");
if (iMEMBER) $result = dbquery("UPDATE ".$db_prefix."users SET user_lastvisit='".time()."', user_ip='".USER_IP."' WHERE user_id='".$userdata['user_id']."'");
require_once INCLUDES."seo_tags_include.php";
$seo_tags = seo_tags($article_id,$cat_id,$readmore,$forum_id,$thread_id,$db_prefix,$page_id);
$uzklausa=mysql_query("SELECT txt from parama order by id ASC");
if (dbrows($uzklausa))
echo "<div id='infobar'><a href='http://www.xxx.lt'> $data['txt'] </a></div>
<style>
#infobar a {
top: 0;
left: 0;
display: block;
width: 100%;
position: fixed;
height: 20px;
line-height: 16px;
font-family: Arial Black;
font-size: 12px;
text-decoration: none;
color: white;
background-color: #473737;
border-bottom: 3px solid #473737;
text-align: center;
}
#infobar a:hover {
color: black;
}
</style>
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<html>
<head>
<link rel='shortcut icon' href='".BASEDIR."favicon.ico'>
<!–[if lt IE 7.]>
<script defer type=”text/javascript” src=”pngfix.js”></script>
<![endif]–>
<title>".$seo_tags['title'].$settings['sitename']."</title>
<meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."'>
<meta name='description' content='";
if ($seo_tags['description']) {
echo $seo_tags['description'];
} else {
echo $settings['description'];
}
echo "'>
<meta name='keywords' content='";
if ($seo_tags['keywords']) {
echo $seo_tags['keywords'];
} else {
echo $settings['keywords'];
}
echo "'>";
echo "<link rel='stylesheet' href='".THEME."styles.css' type='text/css'>
<script type='text/javascript' src='".INCLUDES."jscript.js'></script>
</head>
<body bgcolor='$body_bg' text='$body_text'>\n";
render_header("<img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' title='".$settings['sitename']."'>");
?>
Bet vis meto errora: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/xxx/lxxxx/subheader.php on line 27
Kame šaknys,ka blogai darau?:?
Redagavo ozzWANTED· 2008 Bal. 28 17:04:34