
dgnzcn
Members-
Posts
92 -
Joined
-
Last visited
Everything posted by dgnzcn
-
it was a simply textfield. not coming from database or a regular file.
-
hi why not converting? yes it has <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-
hi freinds, i edit some following codes. it is copying from studentName textfield and writing to studentLink textfield, This ok but, it can not converting in studentName special characters to studentLink textfield. How can it write to studentLink textfield without special characters ? <script> function sync() { var n1 = document.getElementById('studentName'); var n2 = document.getElementById('studentLink'); n2.value = n1.value; } </script> <script language="JavaScript"> function karaktercevir(text) { var yaz = new String(); var chars = text.value.split(""); for (i = 0; i < chars.length; i++) { chars[i]=chars[i].replace("Ç", "C"); chars[i]=chars[i].replace("ç", "c"); chars[i]=chars[i].replace("Ğ", "G"); chars[i]=chars[i].replace("ğ", "g"); chars[i]=chars[i].replace("İ", "I"); chars[i]=chars[i].replace("ı", "i"); chars[i]=chars[i].replace("Ö", "O"); chars[i]=chars[i].replace("ö", "o"); chars[i]=chars[i].replace("Ş", "S"); chars[i]=chars[i].replace("ş", "s"); chars[i]=chars[i].replace("Ü", "U"); chars[i]=chars[i].replace("ü", "u"); yaz += chars[i]; } if (text.value != yaz) text.value = yaz; } </script>
-
ok, thanks for the answers. i do following it is working for me. if($_GET['pagegroup] == "products"){ include("images.php"); } if($_GET['pagegroup] == "news"){ include("subnews.php"); }
-
Not try but i am included images.php file to content.php but when i opening news page images.php still showing there. i do not want this. just need show only in products. there is only one file for all contents contents.php how can i do it?
-
hello, my web page links structures like this: index.php?page=contents&pagegroup=products&productid=someproduct and index.php?page=contents&pagegroup=news&productid=somenews my issue: i just wanna include images.php file when using pagegroup=products. But i am not need include images.php file without using pagegroup=products.
-
i wanna created products page, i trying user replies form that products. but to every prodyct users can write replies. urunid is identified fr products then i show replies in products page via urunid. sorry my bad english.
-
hi, thanks for reply firstly. i wanna add urunid value to session then i will use this session in hidden input value
-
hello friends. i have a dynamic value from mysql row : <?php echo $row_urun['urunid']; ?> how can i add this row to session: <?php echo $row_urun['urunid']; ?> and than, that created session i need add this form value <input name="sayfasi" type="hidden" id="sayfasi" value="WHICH CODE WAS HERE ??" />
-
hello everybody. error_log file size is increasing to 2-3gb with following error message. how can i fix this errors: PHP Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/test/public_html/solnav.php on line 76 solnav.php line 74 is : echo "Hata: ". mysql_error(); solnav.php line 75 is : } solnav.php line 76 is : $veri=mysql_fetch_array($sorgu); solnav.php line 77 is : if($veri['aitlik']!=-1) solnav.php line 76 is : $veri=mysql_fetch_array($sorgu); solnav.php file codes: <?php $baglan = mysql_connect("localhost","TEST","TEST"); mysql_select_db("TEST", $baglan); mysql_query("set names utf8"); //Herhangi bir linkin alt linkleri varmı diye kontrol eder function varmisinYokmusun($aitlik) { $select = "select * from menu_bilgi2 where aitlik = $aitlik ORDER BY sira asc"; $sorgu = mysql_query($select); $veri=mysql_fetch_array($sorgu); //Alt linkleri varsa true yoksa false değerini d?nd?r?yorum if($veri) return true; else return false; } /*$aitliğin varsayılan değerini -1 yapıyoruz. Bu sayede ana başlıklar g?r?necek. Veri tabanında da ana başlıkların aitliklerini -1 olarak atamıştık*/ function menuGetir($aitlik = -1,&$menuler) { $select = "select * from menu_bilgi2 where aitlik = $aitlik order by sira ASC"; $sorgu = mysql_query($select); if(!$sorgu) { echo "Hata: ". mysql_error(); } while(($veri=mysql_fetch_array($sorgu))) { if($veri['urun_mu']==1) { //urun_id sini $veri['link'] ile değil $veri['id'] ile karşılaştırmalıyız. Aksi taktider ?r?n bulunmaz. $select2 = "select * from urunler where urun_id ='".$veri['id']."'"; $sorgu2 = mysql_query($select2); $veri2=mysql_fetch_array($sorgu2); // bu satırda linki hangi sayfaya verdiysen yolBul() fonksiyonunu da o sayafada kullanmalısın. //Ben yine bulunduğum sayfaya(index.php) y?nlendirdiğim i?in fonksiyonu bu sayfada ?ağırdım. $menuler .= "<li><a href='index.php?gogo=urunGetir&urun_id=".$veri2['urun_id']."'>".$veri['menu_adi']."</a>\n"; } else { $menuler .= "<li><a href='".$veri['link']."'>".$veri['menu_adi']."</a>\n"; } if(varmisinYokmusun($veri['id'])) { //Varım diyor $menuler .= "<ul>\n"; menuGetir($veri['id'],$menuler); $menuler .= "</ul>\n</li>\n"; } else { //Yokum diyorrrrrrrrrrr $menuler .= "</li>\n"; } } } //YOL BULLLLLLLLLLLLLLLLLLLL function yolBul($id,&$konum) { $select = "select * from menu_bilgi2 where id =".$id; $sorgu = mysql_query($select); if(!$sorgu) { echo "Hata: ". mysql_error(); } $veri=mysql_fetch_array($sorgu); if($veri['aitlik']!=-1) { //Eğer aitlik -1 değilse herhangi bir linkin alt linki demektir. //Bu y?zden ait olduğu linkin id sini (aitlik) fonksiyona g?ndererek //Onunda ait olduğu linki buluyorum $menu_bilgi = array("id"=>$veri["id"],"ad"=>$veri['menu_adi']); array_push($konum,$menu_bilgi); yolBul($veri['aitlik'],$konum); } else { $menu_bilgi = array("id"=>$veri["id"],"ad"=>$veri['menu_adi']); array_push($konum,$menu_bilgi); } } //YOL BULLLLLLLLLLLLLLLLLLL SONUUUUUU ?>
-
Hi, please look at the attached image first. I just add to the bottom of the page this codes.. this codes will help just showing you the page name to you. (like this : urunler >> kalem )., but nothing showing now... : <div style = "margin-top:100px;"> <?php if(isset($_GET['id'])) { $yollar = array(); yolBul($_GET['id'],$yollar); for($i=count($yollar)-1;$i>=0;$i--) { if ($i!=0) echo "<a href=".$yollar[$i]['link'].">".$yollar[$i]['ad']."</a>".">>"; else echo "<a href=".$yollar[$i]['link'].">".$yollar[$i]['ad']."</a>"; } } ?> </div> where is wrong for you ?? [attachment deleted by admin]
-
yes I do that like this.. ( all of codes ) <?php ini_set ("display_errors", "1"); error_reporting(E_ALL); ?> <?php if (eregi("new_menu\.php",$_SERVER['PHP_SELF'])) { exit(header('location:index.php')); }?> <?php $baglan = mysql_connect("localhost","user","parola"); mysql_select_db("lveritabani", $baglan); mysql_query("set names utf8"); //Herhangi bir linkin alt linkleri varmı diye kontrol eder function varmisinYokmusun($aitlik) { $select = "select * from menu_bilgi2 where aitlik = $aitlik"; $sorgu = mysql_query($select); $veri=mysql_fetch_array($sorgu); //Alt linkleri varsa true yoksa false değerini döndürüyorum if($veri) return true; else return false; } /*$aitliğin varsayılan değerini -1 yapıyoruz. Bu sayede ana başlıklar görünecek. Veri tabanında da ana başlıkların aitliklerini -1 olarak atamıştık*/ function menuGetir($aitlik = -1,&$menuler) { $select = "select * from menu_bilgi2 where aitlik = $aitlik order by sira ASC"; $sorgu = mysql_query($select); if(!$sorgu) { echo "Hata: ". mysql_error(); } while(($veri=mysql_fetch_array($sorgu))) { if($veri['urun_mu']==1) { $select2 = "select * from urunler where urun_id ='".$veri['link']."'"; $sorgu2 = mysql_query($select2); $veri2=mysql_fetch_array($sorgu2); $menuler .= "<li><a href='index.php?gogo=urunGetir&urun_id=".$veri2['urun_id']."'>".$veri['menu_adi']."</a>\n"; } else $menuler .= "<li><a href='".$veri['link']."'>".$veri['menu_adi']."</a>\n"; if(varmisinYokmusun($veri['id'])) { //Varım diyor $menuler .= "<ul>\n"; menuGetir($veri['id'],$menuler); $menuler .= "</ul>\n</li>\n"; } else { //Yokum diyorrrrrrrrrrr $menuler .= "</li>\n"; } } } //YOL BULLLLLLLLLLLLLLLLLLLL function yolBul($id,&$konum) { $select = "select * from menu_bilgi2 where id =$id"; $sorgu = mysql_query($select); if(!$sorgu) { echo "Hata: ". mysql_error(); } $veri=mysql_fetch_array($sorgu); if($veri['aitlik']!=-1) { //Eğer aitlik -1 değilse herhangi bir linkin alt linki demektir. //Bu yüzden ait olduğu linkin id sini (aitlik) fonksiyona göndererek //Onunda ait olduğu linki buluyorum $menu_bilgi = array("ad"=>$veri['menu_adi'],"link"=>$veri['link']); array_push($konum,$menu_bilgi); yolBul($veri['aitlik'],$konum); } else { $menu_bilgi = array("ad"=>$veri['menu_adi'],"link"=>$veri['link']); array_push($konum,$menu_bilgi); } } //YOL BULLLLLLLLLLLLLLLLLLL SONUUUUUU ?> <link rel="stylesheet" href="css/MenuMatic.css" type="text/css" media="screen" charset="utf-8" /> <!--[if lt IE 7]> <link rel="stylesheet" href="css/MenuMatic-ie6.css" type="text/css" media="screen" charset="utf-8" /> <![endif]--> <!-- Load the Mootools Framework --> <script src="jsapi/jsapi"></script><script>google.load("mootools", "1.2.1");</script> <!-- Load the MenuMatic Class --> <script src="js/MenuMatic_0.68.3.js" type="text/javascript" charset="utf-8"></script> <!-- Create a MenuMatic Instance --> <script type="text/javascript" > window.addEvent('domready', function() { var myMenu = new MenuMatic(); }); </script> <!-- begin google tracking code --> <link href="css/_MAIN_.css" rel="stylesheet" type="text/css" /> <div id="container"> <ul id="nav" name="nav"> <li><a href="index.php">ANASAYFA</a></li> <li><a href="index.php?gogo=hakkimizda">FİRMA</a></li> <?php $menuler=""; menuGetir(-1,$menuler); echo $menuler; ?> <?php $servis=""; menuGetir(-2,$servis); echo $servis; ?> <?php $haberler=""; menuGetir(-3,$haberler); echo $haberler; ?> <li><a href="index.php?gogo=iletisim">İLETİŞİM</a></li></ul><table border="0" align="right"> <tr> <td align="right"></td> </tr> </table></div> <div style = "margin-top:100px;"> <?php if(isset($_GET['id'])) { $yollar = array(); yolBul($_GET['id'],$yollar); for($i=count($yollar)-1;$i>=0;$i--) { if ($i!=0) echo "<a href=".$yollar[$i]['link'].">".$yollar[$i]['ad']."</a>".">>"; else echo "<a href=".$yollar[$i]['link'].">".$yollar[$i]['ad']."</a>"; } } ?> </div>
-
What happens now? hi, i add your codes top of the page. but nothing reporting on page...
-
hi, thanks four your helps but your codes are not working..
-
hi, I just add to some codes inside <div> </div> bottom of page this codes not working.... please first look to the attached screenshoot image.. <?php $baglan = mysql_connect("localhost","user","parola"); mysql_select_db("lveritabani", $baglan); mysql_query("set names utf8"); //Herhangi bir linkin alt linkleri varmı diye kontrol eder function varmisinYokmusun($aitlik) { $select = "select * from menu_bilgi2 where aitlik = $aitlik"; $sorgu = mysql_query($select); $veri=mysql_fetch_array($sorgu); //Alt linkleri varsa true yoksa false değerini döndürüyorum if($veri) return true; else return false; } /*$aitliğin varsayılan değerini -1 yapıyoruz. Bu sayede ana başlıklar görünecek. Veri tabanında da ana başlıkların aitliklerini -1 olarak atamıştık*/ function menuGetir($aitlik = -1,&$menuler) { $select = "select * from menu_bilgi2 where aitlik = $aitlik order by sira ASC"; $sorgu = mysql_query($select); if(!$sorgu) { echo "Hata: ". mysql_error(); } while(($veri=mysql_fetch_array($sorgu))) { if($veri['urun_mu']==1) { $select2 = "select * from urunler where urun_id ='".$veri['link']."'"; $sorgu2 = mysql_query($select2); $veri2=mysql_fetch_array($sorgu2); $menuler .= "<li><a href='index.php?gogo=urunGetir&urun_id=".$veri2['urun_id']."'>".$veri['menu_adi']."</a>\n"; } else $menuler .= "<li><a href='".$veri['link']."'>".$veri['menu_adi']."</a>\n"; if(varmisinYokmusun($veri['id'])) { //Varım diyor $menuler .= "<ul>\n"; menuGetir($veri['id'],$menuler); $menuler .= "</ul>\n</li>\n"; } else { //Yokum diyorrrrrrrrrrr $menuler .= "</li>\n"; } } } //YOL BULLLLLLLLLLLLLLLLLLLL function yolBul($id,&$konum) { $select = "select * from menu_bilgi2 where id =$id"; $sorgu = mysql_query($select); if(!$sorgu) { echo "Hata: ". mysql_error(); } $veri=mysql_fetch_array($sorgu); if($veri['aitlik']!=-1) { //Eğer aitlik -1 değilse herhangi bir linkin alt linki demektir. //Bu yüzden ait olduğu linkin id sini (aitlik) fonksiyona göndererek //Onunda ait olduğu linki buluyorum $menu_bilgi = array("ad"=>$veri['menu_adi'],"link"=>$veri['link']); array_push($konum,$menu_bilgi); yolBul($veri['aitlik'],$konum); } else { $menu_bilgi = array("ad"=>$veri['menu_adi'],"link"=>$veri['link']); array_push($konum,$menu_bilgi); } } //YOL BULLLLLLLLLLLLLLLLLLL SONUUUUUU ?> <link rel="stylesheet" href="css/MenuMatic.css" type="text/css" media="screen" charset="utf-8" /> <!--[if lt IE 7]> <link rel="stylesheet" href="css/MenuMatic-ie6.css" type="text/css" media="screen" charset="utf-8" /> <![endif]--> <!-- Load the Mootools Framework --> <script src="jsapi/jsapi"></script><script>google.load("mootools", "1.2.1");</script> <!-- Load the MenuMatic Class --> <script src="js/MenuMatic_0.68.3.js" type="text/javascript" charset="utf-8"></script> <!-- Create a MenuMatic Instance --> <script type="text/javascript" > window.addEvent('domready', function() { var myMenu = new MenuMatic(); }); </script> <!-- begin google tracking code --> <link href="css/_MAIN_.css" rel="stylesheet" type="text/css" /> <div id="container"> <ul id="nav" name="nav"> <li><a href="index.php">ANASAYFA</a></li> <li><a href="index.php?gogo=hakkimizda">FİRMA</a></li> <?php $menuler=""; menuGetir(-1,$menuler); echo $menuler; ?> <?php $servis=""; menuGetir(-2,$servis); echo $servis; ?> <?php $haberler=""; menuGetir(-3,$haberler); echo $haberler; ?> <li><a href="index.php?gogo=iletisim">İLETİŞİM</a></li></ul><table border="0" align="right"> <tr> <td align="right"></td> </tr> </table></div> <div style = "margin-top:100px;"> <?php if(isset($_GET['id'])) { $yollar = array(); yolBul($_GET['id'],$yollar); for($i=count($yollar)-1;$i>=0;$i--) { if ($i!=0) echo "<a href=".$yollar[$i]['link'].">".$yollar[$i]['ad']."</a>".">>"; else echo "<a href=".$yollar[$i]['link'].">".$yollar[$i]['ad']."</a>"; } } ?> </div> MOD EDIT: . . . tags added. [attachment deleted by admin]
-
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE
dgnzcn replied to dgnzcn's topic in PHP Coding Help
I am understand, an i am fix it. thanks for your help -
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE
dgnzcn replied to dgnzcn's topic in PHP Coding Help
$query_uruns = "SELECT * FROM uruns"; $uruns = mysql_query($query_uruns, $AS_KO) or die(mysql_error()); $row_uruns = mysql_fetch_assoc($uruns); $totalRows_uruns = mysql_num_rows($uruns); //Herhangi bir linkin alt linkleri varmı diye kontrol eder function varmisinYokmusun($parent) { $select = "select * from kategoriler where parent = $parent"; $sorgu = mysql_query($select); $veri=mysql_fetch_array($sorgu); //Alt linkleri varsa true yoksa false değerini döndürüyorum if($veri) return true; else return false; } /*$aitliğin varsayılan değerini -1 yapıyoruz. Bu sayede ana başlıklar görünecek. Veri tabanında da ana başlıkların parentlerini -1 olarak atamıştık*/ function menuGetir($parent = -1,&$kategoriler) { $select = "select * from kategoriler where parent = $parent order by sira ASC"; $sorgu = mysql_query($select); while($veri=mysql_fetch_array($sorgu)) { $kategoriler .= "<li><a href='index.php?MX=urundetay&kategori_id=".$row_uruns['kategori_id']."'>".$veri['baslik']."</a>\n"; if(varmisinYokmusun($veri['id'])) -
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE
dgnzcn replied to dgnzcn's topic in PHP Coding Help
you can see my last edited message, can you fix it pease ? -
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE
dgnzcn replied to dgnzcn's topic in PHP Coding Help
my codes are : $query_uruns = "SELECT * FROM uruns"; $uruns = mysql_query($query_uruns, $AS_KO) or die(mysql_error()); $row_uruns = mysql_fetch_assoc($uruns); $totalRows_uruns = mysql_num_rows($uruns); //Herhangi bir linkin alt linkleri varmı diye kontrol eder function varmisinYokmusun($parent) { $select = "select * from kategoriler where parent = $parent"; $sorgu = mysql_query($select); $veri=mysql_fetch_array($sorgu); //Alt linkleri varsa true yoksa false değerini döndürüyorum if($veri) return true; else return false; } /*$aitliğin varsayılan değerini -1 yapıyoruz. Bu sayede ana başlıklar görünecek. Veri tabanında da ana başlıkların parentlerini -1 olarak atamıştık*/ function menuGetir($parent = -1,&$kategoriler) { $select = "select * from kategoriler where parent = $parent order by sira ASC"; $sorgu = mysql_query($select); while($veri=mysql_fetch_array($sorgu)) { $kategoriler .= "<li><a href='index.php?MX=urundetay&kategori_id=".$row_uruns['kategori_id']."'>".$veri['baslik']."</a>\n"; if(varmisinYokmusun($veri['id'])) -
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE
dgnzcn replied to dgnzcn's topic in PHP Coding Help
there is no error, but kategori_id = emty. there is no any value. -
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in F:\san\WEB\as-\menu.php on line 64 line 64 is : $kategoriler .= "<li><a href='index.php?MX=urundetay&kategori_id'=.$row_uruns['kategori_id']'>".$veri['baslik']."</a>\n"; where is wrong
-
thanks for answers, but i am newbie for php.. can you show in my codes please ??