wmaraci reklam

Sorun Nerede ? (Localhost)

2 Mesajlar 550 Okunma
advertseo
wmaraci reklam

wolink wolink WM Aracı Kullanıcı
  • Üyelik 09.04.2017
  • Yaş/Cinsiyet 33 / E
  • Meslek Webmaster
  • Konum İstanbul Anadolu
  • Ad Soyad D** A**
  • Mesajlar 92
  • Beğeniler 11 / 7
  • Ticaret 0, (%0)
Hata mesajı
( ! ) Parse error: syntax error, unexpected 'echo' (T_ECHO), expecting while (T_WHILE) in C:\wamp\www\admin_hazirkart.php on line 19

19. satır
echo "\r\n
\r\n\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n";
if ( get( "isl" ) == "sil" )

Bu hatayı nasıl çözerim?

Tüm kodlar:
[PHP]
include( "inc_tavan.php" );
echo " \r\n";
loginkontrol( "admin" );
echo "\t\r\n\r\n \t \r\n \r\n
Referans IDKrediHazırkartOperatörOnayDurum Sil
\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n \r\n \t";
$t2 = _sql( "SELECT * FROM operator WHERE aktif=1 and hazirkart=1 ORDER BY operator" );
do
{
if ( $s2 = mysql_fetch_array( $t2 ) )
{
$t3 = _sql( "SELECT operator,(select count(*) from hazirkart where paket=T1.kontor and operator=T1.operator and onay=1 and durum<1) AS Kalan,kontor,(select count(*) from hazirkart where paket=T1.kontor and operator=T1.operator and onay=1 and durum=1) AS Onaylanan FROM paket AS T1 WHERE aktif=1 and operator='".$s2['operator']."'" );
do
{
} while ( !( $s3 = mysql_fetch_array( $t3 ) ) );
echo "
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t";
} while ( 1 );
}
echo "
OperatörKrediKalanOnaylanan
".$s3['operator']."".$s3['kontor']." ".$s3['Kalan']." ".$s3['Onaylanan']."
\r\n
\r\n\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n";
if ( get( "isl" ) == "sil" )
{
_sql( "DELETE FROM hazirkart WHERE onay=1 and durum=1 and id=".get( "id" ) );
}
if ( isset( $_GET['isl'] ) && get( "isl" ) == "yeni" )
{
_sql( "INSERT INTO hazirkart (hazirkart) VALUES ('')" );
}
if ( isset( $_GET['isl'], $_GET['id'] ) )
{
if ( get( "id" ) == 0 && isset( $_GET['kontor'] ) && get( "operator" ) != "" && is_numeric( $_GET['kontor'] ) )
{
_sql( "INSERT INTO hazirkart (hazirkart,operator,paket,onay,durum) VALUES ('','".get( "operator" )."',".get( "kontor" ).",1,0)" );
}
else
{
$sifhazir = base64_encode( post( "hazirkart" ) );
_sql( "UPDATE hazirkart SET operator='".post( "operator" )."',hazirkart='".$sifhazir."',paket=".post( "paket" ).",onay=1,durum=0 WHERE id=".get( "id" ) );
}
}
$nsart = "";
$tpl = sqlresult( "SELECT COUNT(*) FROM hazirkart" );
$tpl = round( $tpl / 30 ) + 1;
if ( isset( $_GET['sayfa'] ) )
{
$sayfa = get( "sayfa" );
}
else
{
$sayfa = 0;
}
$basl = $sayfa * 30;
$t1 = _sql( "SELECT * FROM hazirkart ".$nsart." order by id desc LIMIT ".$basl.",30" );
while ( $str = mysql_fetch_array( $t1 ) )
{
echo "\t \r\n\t\t\r\n echo $str['id'];
echo "\" method=\"post\">\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n \r\n\t\t\r\n\r\n";
}
echo "";
echo "
Referans IDKrediHazırkartOperatörOnayDurum Sil
";
echo $str['id'];
echo "
echo $str['paket'];
echo "\"/>
echo base64_decode( $str['hazirkart'] );
echo "\"/>
";
echo "";
echo "
";
if ( $str['onay'] == 1 )
{
echo "Aktif";
}
else
{
echo "Pasif";
}
echo "
";
if ( $str['durum'] == 1 )
{
echo "Yüklendi";
}
else
{
echo "Beklemede";
}
echo "
";
echo " echo "pan style=\"cursor:pointer; color:#7F0000\" onclick=\"cevap('admin_hazirkart.php?isl=sil&id=";
echo $str['id'];
echo "','Bu kaydın silinmesini istiyormusunuz?')\">Sil
";
if ( 0 < $sayfa )
{
echo " << Önceki";
}
echo "  [".( $sayfa + 1 )."/".$tpl."]  ";
if ( $sayfa + 1 < $tpl )
{
echo " Sonraki >>";
}
echo "
\r\n
\r\n
Tüm Yüklenenleri Sil:
\r\n";
echo "echo "pan style=\"cursor:pointer; color:#7F0000\" onclick=\"cevap('admin_excel_export.php?isl=tumsil','Tüm tanımlı yüklenmiş hazırkartlar Silinecek. Onaylıyormusunuz?')\">Yüklenmiş Hazırkartları Sil (Bu işlem size silinecek veriyi EXCEL olarak yedeğini atar...)\r\n\r\n

Not: Hazır kart şifreleriniz kayıt edilirken şiflenip kullanıcıya şifresi çözülmüş şekilde gönderilir. Sunucun";
echo "uzdan bu şifrelerin alınıp, kırılma riski vardır. Bunun bilincinde olup kullanmanızı ve fazla kayıt bulundurmamanızı öneriyoruz.

\r\nBu sistemi kullandığınızda sitenizde demo, test vb.. hesaplar olmadığından emin olmalısınız. Eğer bu tarz kullanıcılar var ve bakiyede tanımlamışsanız gelen hazır kart siparişlerind";
echo "e direk şifre gidecektir.
\r\n

\r\n";
include( "inc_taban.php" );
echo " ";
?>
[/PHP]
 

 

wmaraci
reklam

ACK ACK WM Aracı Kullanıcı
  • Üyelik 07.04.2014
  • Yaş/Cinsiyet 28 / K
  • Meslek Öğrenci
  • Konum İzmir
  • Ad Soyad C** K**
  • Mesajlar 18
  • Beğeniler 11 / 8
  • Ticaret 2, (%100)
do
{
if ( $s2 = mysql_fetch_array( $t2 ) )
{
$t3 = _sql( "SELECT operator,(select count(*) from hazirkart where paket=T1.kontor and operator=T1.operator and onay=1 and durum<1) AS Kalan,kontor,(select count(*) from hazirkart where paket=T1.kontor and operator=T1.operator and onay=1 and durum=1) AS Onaylanan FROM paket AS T1 WHERE aktif=1 and operator='".$s2['operator']."'" );
do
{
} while ( !( $s3 = mysql_fetch_array( $t3 ) ) );
echo "\r\n\t\t\t\t".$s3['operator']."\r\n\t\t\t\t".$s3['kontor']."\r\n\t\t\t\t ".$s3['Kalan']."\r\n\t\t\t\t ".$s3['Onaylanan']."\r\n\t\t\t";
}
} while ( 1 );
echo "\r\n
\r\n\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n";


Hocam hata veren satırın üzerindeki do while döngünüzde while, do {} kapandıktan sonra olmalıydı. Bu sebeple hatada da gördüğünüz gibi "expecting while (T_WHILE)" while bekliyor ve sonraki satırda echo gördüğü için bu şekilde bir hata alıyorsunuz. Bu şekilde while ı dışarı almalısınız.
 

 

wmaraci
Konuyu toplam 1 kişi okuyor. (0 kullanıcı ve 1 misafir)
Referans IDKrediHazırkartOperatörOnayDurum Sil