Php Dersleri
PHP
Forum
Haber ve Duyurular
Tanışma Bölümü
Acemilerin Soru bölümü
Web Sitesi Dersleri
Temel Web dersleri
Html Dersleri
Css Dersleri
Javascript Dersleri
Php Dersleri
Mysql Dersleri
Php Kodları ve Paylaşım
Php Functions
Mysql Komutları
Hazır Php Scriptler
Hazır CSS Kodları
Para Kazanma Yolları
İnternetten para kazanmak
Seo Teknikleri
Adsense
Adwords
Adtech
Diğer Reklam Sistemleri
Web Hosting
Domain Tescil Firmaları
Web Hosting Firmaları
Dedicated Hosting
Üye Bilgileri
Nick:
dark666
İsim:
Suleyman
Web sayfası:
Cinsiyet:
Erkek
İmza:
Konu sayısı:
4
Cevap sayısı:
9
Kaç günlük üye
11
Son yazdığı Php kodları mesajları
$k_adi = $_POST["k_adi"];
$b_adi=
$_POST["
b_adi
"];
$ip =
$_POST["
$ip
"];
değişkenler atadım dediğiniz gibi.
yukarıdaki kodu de ekledim yine olmadı.
k_adi ayni girildiği zaman uyarı geliyor kayıt yapmıyor.
b_adi ve ip ayni girildiği zaman kayıt yapıyor uyarı vermiyor.
database de kayıtlı olan
k_adi b_adi ip xxxx yyyy zzzz databasde kayıtlı olan kaydımız. ben tekrar giriş yapıyorum girdilerim şunlar. k_adi b_adi ip xxxx erere zewr **kayıt etmiyor. uyarı veriyor. OK... ahds yyyy ljljljlj
**burada b_adı kayıtlı var ama yine kayıt yapıyor. uyarı vermesi gerekir
dasds ljkljklj zzzz **
burada ip kayıtlı var ama yine kayıt yapıyor. uyarı vermesi gerekirdi son iki kayıtı database yazmaması gerekiyordu ama yazıyor. Sebebini bilen varsa açıklasın arkadaşlar bu sorunu en kısa zamanda çözmem gerekiyor.
Zaman
2013-11-13 11:37:41
Php php
$result = mysql_query("SELECT * FROM bilgi WHERE k_adi = '$k_adi' OR b_adi='$b_adi' OR ip='$ip'"); while($row = mysql_fetch_array($result)) { if ($_POST[$k_adi]=$k_adi || $_POST[$b_adi]=$b_adi || $_POST[$ip]=$ip){
echo "<script> alert('UYARI : Girilen Kullanıcı Adı ,Bilgisayar adı veya İp Adresi kayıtlıdır...'); window.top.location.href = 'kayit.html'; </script> ";
exit; } Akadaşlar buradaki sıkıntım k_adi,b_adi ve ip bilgilerinin girişi yapılırken ayni isimde bilgilerin girilmemesini ve yukarıdaki uyarı vermesini sağlamak. ama yukarıdakki kod ile yapamıyorum nerede hata yapıyorum. AŞAĞIDAKİ KODU DENEDİM OLMADI. $result = mysql_query("SELECT * FROM bilgi WHERE k_adi = '$k_adi' OR b_adi LIKE '%$b_adi%' OR ip LIKE '%$ip%'");
Zaman
2013-11-13 08:51:10
Php KAYIT SORUNU ACİL YARDIMMM
Çift tırnak denedim yine olmuyor. Dediğim gibi k_adı ile arama yapabiliyorum. eşitliği uyguluyor "(k_adi = '$k_adi')" doğru çalışıyor. B_adı ve ip dengesiz çalışıyor. yukarıdaki eşitlik b_adi ve ip olmuyor. "(b_adi = '$b_adi')" "(ip = '$ip')" yukarıdaki eşitlikler yazıyorum hiçbişey bulmuyor. bu konuda yardımcı olursanız sevinirim.
Zaman
2013-09-16 11:47:59
Php
$result = mysql_query("SELECT * FROM bilgi WHERE
k_adi = '$k_adi' OR
b_adi LIKE '%$b_adi%' OR
ip LIKE '%$ip%'
);
bu şekilde de denedim olmuyor
k_adi ile normal olarak arama yapabiliyoruz. b_adi ve ip ile de arama yapabiliyoruz ama AHMET veri tabanından bulacaksak AH bile yazsak bütün AH ile başlıyan isimler sergiler. benim istediğim bunu yapmaması. eşitse ekrana yazdırsın. aşağıdaki eşitliği yaptım olmadı yinee.
$result = mysql_query("SELECT * FROM bilgi WHERE
k_adi = '$k_adi' OR
b_adi = '$b_adi' OR
ip = '$ip'
);
bu kodların neresinde hata var çıldıracağımmm.
Zaman
2013-09-13 08:33:37
Php Php
if($k_adi!='') { $where = "(k_adi = '$k_adi')"; } elseif($b_adi!='') { $where = "(b_adi LIKE '%$b_adi%')"; } elseif($ip!='') { $where = "(ip LIKE '%$ip%')"; } mysql_select_db("ip", $con); require('tr.php'); $result = mysql_query("SELECT * FROM bilgi WHERE $where"); while($row = mysql_fetch_array($result)) { database'de K_adı -- B_adı -- İp -- No -- not -- islem burada k_adı, b_adı,ip herhangi biri girildiğinde arama yapmak istiyorum. yukarıdaki fonksiyonda k_adı girince buluyor. tamammma çalışıyor b_adı girince aradığımız ahmet ise ah yazsak bile tüm ah ile başlayanları gösteriyor ip de b_adı gibi çalışıyor. fonksiyonu değiştirip şöyle yaptım. if($k_adi!='') { $where = "(k_adi = '$k_adi')"; } elseif($b_adi!='') { $where = "(b_adi = '$b_adi')"; } elseif($ip!='') { $where = "(ip = '$ip')"; } böyle de k_adı girileni buluyor. çalışıyor ama b_adı ve ip hiçbirşey bulmuyor. b_adi aradığımız ahmet ise ahmet yazdığımızda bulmuyor. ip de öyle.
Zaman
2013-09-12 14:42:06
Php sql Arama yaparken sorun
Burada size sil.html Sil.php silindi.php sil.html de girilen kaydı buluyor kullanıcı adi ile girdik varsayarsak $k_adi sil.php bulunup gösteriliyor ve kayıt sil bastığımız zaman silindi.php gecip silmesi gerekiyor. ama silmiyor k_adi değişkeni silindi.php çalıştığı zaman değişkenin içi boş gösteriyor. session bir hata mı var bulamadım session_start(); hata veriyor. başına @işareti koyunca kayboldu. ****************************************** sil.html ******************************************* </head> <body> <form action="sil.php" method="post"> <div id="ust"><img src="resimler/Logo.gif" width="898" height="92" /></div> <div id="bos"></div> <div id="koli"> <input name="" type="image" src="resimler/logo3.gif" /> </div> <div id="alt"> <div> <table border="4" style="width: 845px;height: 1px"><td colspan="3" style="width: 845px;height: 1px"> <center><b> Kullanıcı ve Donanım Bilgileri </b></center> </td> </td></tr> <td> Kullanıcı Adı : <input type="text" name="k_adi" id="k_adi" size=25> Bilgisayar Adı. : <input type="text" name="b_adi" size=15> İp Adresi : <input type="text" name="ip" size=15> </tr> </tr> </tr> <table border="4"style="width:845px;height: 1px" ><td colspan="4"> <center> <input name="Sub" type="submit" value="Silinecek Kayıt Bul" /> <FORM NAME="Temizle"><INPUT TYPE="BUTTON" VALUE="Temizle" onClick="self.location.href=('sil.html')"> <FORM NAME="anasayfa"><INPUT TYPE="BUTTON" VALUE="Ana Sayfa" onClick="self.location.href=('index.html')"> </center> </td> </tr> <tr> </body> </html> **************************************** sil.php **************************************** </head> <body> <div id="ust"><img src="resimler/Logo.gif" width="898" height="92" /></div> <div id="bos"></div> <div id="koli"> <input name="" type="image" src="resimler/logo3.gif" /> </div> <div id="alt"> <div> <table border="4" style="width: 845px;height: 1px"><td colspan="3" style="width: 845px;height: 1px"> <center><b> Kullanıcı ve Donanım Bilgileri </b></center> </td> </td></tr> <?php @session_start(); ob_start(); $_SESSION['k_adi'] = $_POST['k_adi']; $con = mysql_connect("localhost","root","admin"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("ip", $con); $k_adi=trim($k_adi); $b_adi=trim($b_adi); $result = mysql_query("SELECT * FROM bilgi WHERE k_adi LIKE '%$k_adi%' AND b_adi LIKE '%$b_adi%' AND ip LIKE '%$ip%'"); while($row = mysql_fetch_array($result)) { echo " </tr><td> Kullanıcı Adı : <input type='text' name='k_adi' value='$row[0]' size=15/> Bilgisayar Adı : <input type='text' name='b_adi' value='$row[1]' size=15/> İp Adres : <input type='text' name='ip' value='$row[2]' size=15>"; echo " </tr><td> Anakart Modeli : <input type='text' name='anakart' value='$row[3]' size=25> Ram : <input type='text' name='ram' value='$row[4]' size=5> Domain Hesabı : <input type='text' name='domain' value='$row[5]' size=20> "; echo " </tr><td> E - Posta Hesabı : <input type='text' name='e_posta_hesabi' value='$row[6]' size=40> Yazıcı Modeli : <input type='text' name='yazici_modeli'value='$row[7]' size=40> "; echo " </tr> <table border='4'style='width:845px;height: 1px' ><td colspan='4'><center><b> İşletim Sistemi </b> </center> <td colspan='4'> <center><b> Donanım Bilgileri </b> </center> </td> </tr><tr> <td> İşletim Sistemi "; $row[8]=trim($row[8]); if ($row[8]=="XP2"){ $xp2='checked';} ; echo "<td><input type='radio' name='sistem' $xp2 >Windows XP Sp2<br>"; if ($row[8]=="XP3"){ $xp3='checked';} ; echo "<input type='radio' name='sistem' $xp3 >Windows XP Sp3<br>"; if ($row[8]=="W7"){ $w7='checked';} ; echo "<input type='radio' name='sistem' $w7 >Windows 7<br>"; if ($row[8]=="W2003"){ $w2003='checked';} ; echo "<input type='radio' name='sistem' $w2003 >Windows 2003 Server<br>"; echo " <td> Sürücüler "; $row[9]=trim($row[9]); if ($row[9]=="on"){ $sk='checked';} ; echo "<td><input type='checkbox' name='s_seskarti' $sk >Ses Kartı<br>"; $row[10]=trim($row[10]); if ($row[10]=="on"){ $p='checked';} ; echo "<input type='checkbox' name='s_printer' $p >Printer<br>"; $row[11]=trim($row[11]); if ($row[11]=="on"){ $ek='checked';} ; echo "<input type='checkbox' name='s_eternet' $ek >Eternet Kartı<br>"; $row[12]=trim($row[12]); if ($row[12]=="on"){ $ekk='checked';} ; echo "<input type='checkbox' name='s_ekran' $ekk >Ekran Kartı<br>"; echo " <td> Ayarlamalar "; $row[13]=trim($row[13]); if($row[13]=="on") {$admin='checked';} ; echo "<td><input type='checkbox' name='d_admin' $admin >Administrator<br>"; $row[14]=trim($row[14]); if($row[14]=="on") {$bios='checked';} ; echo "<input type='checkbox' name='d_bios' $bios >Bios Şifresi<br>"; $row[15]=trim($row[15]); if($row[15]=="on") {$mail='checked';} ; echo "<input type='checkbox' name='d_mail' $mail >E - Posta Ayarlandımı<br>"; $row[16]=trim($row[16]); if($row[16]=="on") {$yazici='checked';} ; echo "<input type='checkbox' name='d_yazici' $yazici >Yazıcı Yüklendimi<br>"; $row[17]=trim($row[17]); if($row[17]=="on") {$web='checked';} ; echo "<input type='checkbox' name='d_web' $web >Web Erişimi (Kibtek)<br>"; $row[18]=trim($row[18]); if($row[18]=="on") {$internet='checked';} ; echo "<input type='checkbox' name='d_internet' $internet >İnternet Erişimi<br>"; echo "</tr> </tr> <table border='4'style='width:845px;height: 1px' ><td colspan='4'> <center><b>Gerekli Programlar </b> </center> </td> </tr> <tr> <td> Yüklenen Programlar "; $row[19]=trim($row[19]); if($row[19]=="on") {$office='checked';} ; echo "<td><input type='checkbox' name='m_office' $office >Microsoft Office<br>"; echo" "; $row[20]=trim($row[20]); if ($row[20]=="mo2003"){ $mo2003='checked';} ; echo "<input type='radio' name='office_surum' $mo2003 >2003"; $row[20]=trim($row[20]); if ($row[20]=="mo2007"){ $mo2007='checked';} ; echo "<input type='radio' name='office_surum' $mo2007 >2007<br>"; echo" "; $row[20]=trim($row[20]); if ($row[20]=="mo2010"){ $mo2010='checked';} ; echo "<input type='radio' name='y13' $mo2010 >2010"; $row[20]=trim($row[20]); if ($row[20]=="mo2013"){ $mo2013='checked';} ; echo "<input type='radio' name='y14'$mo2013 >2013<br>"; $row[21]=trim($row[21]); if ($row[21]=="on"){ $winrar='checked';} ; echo "<input type='checkbox' name='winrar' $winrar>Winrar<br>"; $row[22]=trim($row[22]); if ($row[22]=="on"){ $netsupport='checked';} ; echo "<input type='checkbox' name='y3' $netsupport >Net Support<br>"; $row[23]=trim($row[23]); if ($row[23]=="on"){ $adobe='checked';} ; echo "<input type='checkbox' name='adobe' $adobe >Adobe Acrobat<br>"; echo " "; $row[24]=trim($row[24]); if ($row[24]=="a2007"){ $a2007='checked';} ; echo "<input type='radio' name='y41' $a2007>2007"; $row[24]=trim($row[24]); if ($row[24]=="a2010"){ $a2010='checked';} ; echo "<input type='radio' name='y42' $a2010 >2010<br>"; $row[25]=trim($row[25]); if ($row[25]=="on"){ $meadco='checked';} ; echo "<input type='checkbox' name='y5' $meadco >MeadCO(Makbuz)<br />"; $row[26]=trim($row[26]); if ($row[26]=="on"){ $muhasebe='checked';} ; echo "<input type='checkbox' name='y6' $muhasebe >Muhasebe(KİBTEK)<br>"; echo "<td> Yüklenen Programlar "; $row[27]=trim($row[27]); if ($row[27]=="on"){ $virus='checked';} ; echo "<td><input type='checkbox' name='virus' $virus >Antivirüs(Trend Micro)<br>"; $row[28]=trim($row[28]); if ($row[28]=="on"){ $printer='checked';} ; echo "<input type='checkbox' name='printer' $printer >Printer<br>"; $row[29]=trim($row[29]); if ($row[29]=="on"){ $autocad='checked';} ; echo "<input type='checkbox' name='autocad' $autocad >Autocad<br>"; echo " "; $row[30]=trim($row[30]); if ($row[30]=="ac2007"){ $ac2007='checked';} ; echo "<input type='radio' name='autocad_surum' $ac2007>2007"; $row[30]=trim($row[30]); if ($row[30]=="ac2008"){ $ac2008='checked';} ; echo "<input type='radio' name='autocad_surum' $ac2008>2008"; $row[30]=trim($row[30]); if ($row[30]=="ac2010"){ $ac2010='checked';} ; echo "<input type='radio' name='autocad_surum' $ac2010>2010"; $row[30]=trim($row[30]); if ($row[30]=="ac2012"){ $ac2012='checked';} ; echo "<input type='radio' name='autocad_surum' $ac2012>2012<br>"; $row[31]=trim($row[31]); if ($row[31]=="on"){ $google='checked';} ; echo "<input type='checkbox' name='google_earth' $google>Google Earth<br>"; $row[32]=trim($row[32]); echo "<input type='text' name='ekstra1' value='$row[32]'> <br>"; $row[33]=trim($row[33]); echo "<input type='text' name='ekstra2' value='$row[33]'><br>"; $row[34]=trim($row[34]); echo "<input type='text' name='ekstra3' value='$row[34]'><br>"; $row[35]=trim($row[35]); echo "<input type='text' name='ekstra4' value='$row[35]'><br></tr>"; ob_end_flush(); } mysql_close($con); ?> <table border="4"style="width:845px;height: 1px" ><td colspan="4"> <center> <FORM NAME="anasayfa"><INPUT TYPE="BUTTON" VALUE="Kaydı Sil" onClick="self.location.href=('silindi.php')"> <FORM NAME="anasayfa"><INPUT TYPE="BUTTON" VALUE="Anasayfa" onClick="self.location.href=('index.html')"> </center> </td> </tr> <tr> </body> </html> **************************************************** silindi.php *************************************************** </head> <body> <?php @session_start(); ob_start(); $con = mysql_connect("localhost","root","admin"); if (!$con) { die('Could not connect: ' . mysql_error()); } $_SESSION['k_adi'] = $_POST['k_adi']; $k_adi=$_SESSION['k_adi']; mysql_select_db("ip", $con); $sil="DELETE FROM bilgi WHERE k_adi='$k_adi'"; mysql_query($sil); if (!mysql_query($sil,$con)) { die('Error: ' . mysql_error()); } echo "1 kayt silindi"; mysql_close($con); ob_end_flush(); ?> </body> </html>
Zaman
2013-05-10 12:11:13
Php Değişkenlerin Değerlerini session ile diğer sayfalara atamıyorum
okk Çalışıyor. Çok Teşekkürler ilginizden dolayı. bu iyliğinizi unutmayacağım. dediğiniz gibi trim kullandım sorun ortadan kalktı. aralist.php if in başına ekledim. tamamdır çalışıyor. $row[8]=trim($row[8]);
Zaman
2013-05-06 14:46:42
Php php
sorun tam olarak bilgileri database'den alırken Kullanıcı adı : Ahmet Bilgisayar adı: Ap112 ....... radio butonu ile de kayıt yapılırken secilen bir sistem olur. aşağıda secilen işletim sistemlerinden biri database kaydedilir bunlar database xp2 -xp3-w7-w2003 hangisi seçilirse value ne ise kaydedilir
Windows XP Sp2
Windows XP Sp3
Windows 7 Sp1
Windows 2003 Server
Bu kaydedilen tekrar ekrana getirmek için uğraşıyorum. isterseniz dosyaların hepsini yolladım deneyin. instal edin db için daha sonra kayıt yapın ve aratın herşey tamam tek radio bölümü olmuyor. Bu çok basit bir yanlış yapıyorum ama bulamıyorum.
Ama mysql den kayıt bilgisi girildiği zaman hiçbir sorun yok. bütün bilgiler ve radio butonu şeçilen bilgiler ekrana geliyor................
Zaman
2013-05-05 20:59:25
Php php
Gönderdiğiniz kodu denedim yine olmadı tüm değerliri alıyor radio bölümünü yine almıyor.
Zaman
2013-05-04 18:33:03
Php Acil yardım if çalışmıyor 3 gün kafayı
//**********************aralist.php***************** <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>ipl list</title> <style type="text/css"> #koli {
overflow: hidden;
width: 898px;
margin-right: auto;
margin-left: auto;
background-color: #9FB7E1;
background-image: url(Logo1.png);
background-repeat: repeat; } #koli div {
float: left;
background-color: #9FB7E1;
height: 30px;
position: relative;
left: 170px;
right: 170px;
background-image: url(Logo1.png);
background-repeat: repeat; } #orta {
overflow: hidden;
width: 893.5px;
margin-right: auto;
margin-left: auto;
background-color: #FFFFFF;
height: 50px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none; } #orta div {
float: left;
background-color: #FFFFFF;
height: auto;
position: relative;
left: 300px;
font-family: "Comic Sans MS", cursive;
font-size: 24px;
font-style: italic;
color: #C00;
font-weight: 500;
font-variant: normal;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
white-space: normal;
display: inline;
letter-spacing: normal;
word-spacing: normal;
width: 862px; } body {
background-color: #FFF; } #alt {
overflow: hidden;
width: 893.5px;
margin-right: auto;
margin-left: auto;
background-color: #6D9DF2;
height: 640px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
background-repeat: no-repeat; } #alt div {
float: left;
height: 640px;
position: relative;
font-family: Georgia, "Times New Roman", Times, serif;
font-size:1em;
font-style: normal;
color: #666;
font-weight: normal;
font-variant: normal;
text-transform: none;
width: 845px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
left: 20px;
top: 10px;
right: 0px;
bottom: 0px;
padding: 0px;
line-height: normal;
margin-left: 0px;
background-color: #6D9DF2; } #alt div div {
float: left;
height: 40px;
position: relative;
font-family: Georgia, "Times New Roman", Times, serif;
font-size:1em;
font-style: normal;
color: #666;
font-weight: normal;
font-variant: normal;
text-transform: none;
width: 280px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
left: 6px;
top: 10px;
right: 0px;
bottom: 0px;
padding: 0px;
line-height: normal;
margin-left: 0px; } #ust {
width: 898px;
background-color: #FFF;
clip: rect(auto,auto,auto,40px);
margin: auto;
height: 20px;
height: 20px;
left: 10px;
top: 10px;
height: 20px;
left: 100px;
top: 10px;
height: 20px; } #bos {
width: 898px;
background-color: #FFFFFF;
border: thin none #33F;
list-style-type: decimal;
margin-right: auto;
margin-left: auto;
height: 90px;
background-image: url(resimler/Logo.png);
background-repeat: repeat; } </style> </head> <body> <div id="ust"><img src="resimler/Logo.gif" width="898" height="92" /></div> <div id="bos"></div> <div id="koli"> <input name="" type="image" src="resimler/logo3.gif" /> </div> <div id="alt"> <div> <table border="4" style="width: 845px;height: 1px"><td colspan="3" style="width: 845px;height: 1px"> <center><b> Kullanıcı ve Donanım Bilgileri </b></center> </td> </td></tr> <?php $con = mysql_connect("localhost","root","admin"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("ip", $con); $result = mysql_query("SELECT * FROM bilgi WHERE k_adi='$k_adi'"); while($row = mysql_fetch_array($result)) { echo " </tr><td> Kullanıcı Adı : <input type='text' name='k_adi' value='$row[0]' size=15/> Bilgisayar Adı : <input type='text' name='b_adi' value='$row[1]' size=15/> İp Adres : <input type='text' name='ip' value='$row[2]' size=15>"; echo " </tr><td> Anakart Modeli : <input type='text' name='anakart' value='$row[3]' size=25> Ram : <input type='text' name='ram' value='$row[4]' size=5> Domain Hesabı : <input type='text' name='domain' value='$row[5]' size=20> "; echo " </tr><td> E - Posta Hesabı : <input type='text' name='e_posta_hesabi' value='$row[6]' size=40> Yazıcı Modeli : <input type='text' name='yazici_modeli'value='$row[7]' size=40> "; echo " </tr> <table border='4'style='width:845px;height: 1px' ><td colspan='4'><center><b> İşletim Sistemi </b> </center> <td colspan='4'> <center><b> Donanım Bilgileri </b> </center> </td> </tr><tr> <td> İşletim Sistemi "; if ($row[8]=="XP2"){ $xp2='checked';} ; echo "<td><input type='radio' name='sistem' $xp2 >Windows XP Sp2<br>"; if ($row[8]=="XP3"){ $xp3='checked';} ; echo "<input type='radio' name='sistem' $xp3 >Windows XP Sp3<br>"; if ($row[8]=="W7"){ $w7='checked';} ; echo "<input type='radio' name='sistem' $w7 >Windows 7<br>"; if ($row[8]=="W2003"){ $w2003='checked';} ; echo "<input type='radio' name='sis' $w2003 >Windows 2003 Server<br>"; echo " <td> Sürücüler "; if ($row[12]=="on"){ $sk='checked';} ; echo "<td><input type='checkbox' name='s_seskarti' $sk >Ses Kartı<br>"; if ($row[13]=="on"){ $p='checked';} ; echo "<input type='checkbox' name='s_printer' $p >Ses Kartı<br>"; if ($row[14]=="on"){ $ek='checked';} ; echo "<input type='checkbox' name='s_eternet' $ek >Ses Kartı<br>"; if ($row[15]=="on"){ $ekk='checked';} ; echo "<input type='checkbox' name='s_ekran' $ekk >Ses Kartı<br>"; } mysql_close($con); ?>
<td> Ayarlamalar <td><input type="checkbox"name="a1" >Administrator<br> <input type="checkbox"name="a2" >Bios Şifresi<br> <input type="checkbox"name="a3">E - Posta Ayarlandımı<br> <input type="checkbox"name="a4">Yazıcı Yüklendimi<br> <input type="checkbox"name="a5">Web Erişimi (Kibtek)<br> <input type="checkbox"name="a6">İnternet Erişimi<br> </tr> <table border="4"style="width:845px;height: 1px" ><td colspan="4"> <center><b>Gerekli Programlar </b> </center> </td> </tr> <tr> <td> Yüklenen Programlar <td><input type="checkbox"name="y1">Microsoft Office<br> <input type="radio"name="y11" >2003 <input type="radio"name="y12" >2007<br> <input type="radio"name="y13" >2010 <input type="radio"name="y14" >2013 <br> <input type="checkbox"name="y2" >Winrar<br> <input type="checkbox"name="y3" > Net Support<br> <input type="checkbox"name="y4"> Adobe Acrobat<br> <input type="radio"name="y41" >2007 <input type="radio"name="y42" >2010<br> <input type="checkbox"name="y5" > MeadCO(Makbuz)<br /> <input type="checkbox"name="y6" > Muhasebe(KİBTEK)<br> <td> Yüklenen Programlar <td><input type="checkbox"name="y7" >Antivirüs(Trend Micro)<br> <input type="checkbox"name="y8" >Printer<br> <input type="checkbox"name="y9">Autocad<br> <input type="radio"name="y91" >2007 <input type="radio"name="y92" >2008 <input type="radio"name="y93" >2010 <input type="radio"name="y94" >2012 <br> <input type="checkbox"name="y10">Google Earth<br> <input type="text" name="y11" size=42> <br> <input type="text" name="y12" size=42><br> <input type="text" name="y13" size=42><br> <input type="text" name="y14" size=42><br> </tr> <table border="4"style="width:845px;height: 1px" ><td colspan="4"> <center> <input name="anasayfa" type="button" value="Anasayfa" /> </center> </td> </tr> <tr> </body> </html>
Zaman
2013-05-04 01:09:41
Php Acil yardım if çalışmıyor 3 gün kafayı
///*****************kayit.php******************** <?php $con = mysql_connect("localhost","root","admin"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("ip", $con); $sql="INSERT INTO bilgi (k_adi, b_adi, ip, anakart, ram, domain, e_posta_hesabi ,yazici_modeli, sistem, s_seskarti, s_printer, s_eternet, s_ekran ) VALUES ('$_POST[k_adi]',' $_POST[b_adi]',' $_POST[ip]',' $_POST[anakart]',' $_POST[ram]',' $_POST[domain]',' $_POST[e_posta_hesabi]',' $_POST[yazici_modeli]',' $_POST[sistem]',' $_POST[s_seskarti]',' $_POST[s_printer]',' $_POST[s_eternet]',' $_POST[s_ekran]')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "1 record added"; mysql_close($con); ?> //******************ara.html******************* <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>ipl list</title> <style type="text/css"> #koli {
overflow: hidden;
width: 898px;
margin-right: auto;
margin-left: auto;
background-color: #9FB7E1;
background-image: url(Logo1.png);
background-repeat: repeat; } #koli div {
float: left;
background-color: #9FB7E1;
height: 30px;
position: relative;
left: 170px;
right: 170px;
background-image: url(Logo1.png);
background-repeat: repeat; } #orta {
overflow: hidden;
width: 893.5px;
margin-right: auto;
margin-left: auto;
background-color: #FFFFFF;
height: 50px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none; } #orta div {
float: left;
background-color: #FFFFFF;
height: auto;
position: relative;
left: 300px;
font-family: "Comic Sans MS", cursive;
font-size: 24px;
font-style: italic;
color: #C00;
font-weight: 500;
font-variant: normal;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
white-space: normal;
display: inline;
letter-spacing: normal;
word-spacing: normal;
width: 862px; } body {
background-color: #FFF; } #alt {
overflow: hidden;
width: 893.5px;
margin-right: auto;
margin-left: auto;
background-color: #6D9DF2;
height: 150px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
background-repeat: no-repeat; } #alt div {
float: left;
height: 150px;
position: relative;
font-family: Georgia, "Times New Roman", Times, serif;
font-size:1em;
font-style: normal;
color: #666;
font-weight: normal;
font-variant: normal;
text-transform: none;
width: 845px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
left: 20px;
top: 10px;
right: 0px;
bottom: 0px;
padding: 0px;
line-height: normal;
margin-left: 0px;
background-color: #6D9DF2; } #alt div div {
float: left;
height: 40px;
position: relative;
font-family: Georgia, "Times New Roman", Times, serif;
font-size:1em;
font-style: normal;
color: #666;
font-weight: normal;
font-variant: normal;
text-transform: none;
width: 280px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
left: 6px;
top: 10px;
right: 0px;
bottom: 0px;
padding: 0px;
line-height: normal;
margin-left: 0px; } #ust {
width: 898px;
background-color: #FFF;
clip: rect(auto,auto,auto,40px);
margin: auto;
height: 20px;
height: 20px;
left: 10px;
top: 10px;
height: 20px;
left: 100px;
top: 10px;
height: 20px; } #bos {
width: 898px;
background-color: #9FB7E1;
border: thin none #33F;
list-style-type: decimal;
margin-right: auto;
margin-left: auto;
height: 90px;
background-image: url(resimler/Logo.png);
background-repeat: repeat; } </style> </head> <body> <form action="aralist.php" method="post"> <div id="ust"><img src="resimler/Logo.gif" width="898" height="92" /></div> <div id="bos"></div> <div id="koli"> <input name="" type="image" src="resimler/logo3.gif" /> </div> <div id="alt"> <div> <table border="4" style="width: 845px;height: 1px"><td colspan="3" style="width: 845px;height: 1px"> <center><b> Kullanıcı ve Donanım Bilgileri </b></center> </td> </td></tr> <td> Kullanıcı Adı : <input type="text" name="k_adi" size=25> Bilgisayar Adı. : <input type="text" name="b_adi" size=15> İp Adresi : <input type="text" name="ip" size=15> </tr> </tr> </tr> <table border="4"style="width:845px;height: 1px" ><td colspan="4"> <center> <input name="ara" type="button" value="Arama" /> <input name="temizle" type="button" value="Temizle" /> <input name="anasayfa" type="button" value="Anasayfa" /> </center> </td> </tr> <tr> </body> </html>
Zaman
2013-05-04 01:06:54
Php Acil yardım if çalışmıyor 3 gün kafayı
****************install.php****************** <?php $con = mysql_connect("localhost","root","admin"); if (!$con) { die('Could not connect: ' . mysql_error()); } // Create database if (mysql_query("CREATE DATABASE ip",$con)) { echo "bilgi created"; } else { echo "Error creating database: " . mysql_error(); } // Create table mysql_select_db("ip", $con); $sql = "CREATE TABLE bilgi ( k_adi varchar(25), b_adi varchar(15), ip varchar(15), anakart varchar(25), ram varchar(5), domain varchar(20), e_posta_hesabi varchar(40), yazici_modeli varchar(40), sistem varchar(30), s_seskarti varchar(2), s_printer varchar(2), s_eternet varchar(2), s_ekran varchar(2) )"; // Execute query mysql_query($sql,$con); mysql_close($con); ?> **************** kayit.html********************** <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>ipl list</title> <style type="text/css"> #koli {
overflow: hidden;
width: 898px;
margin-right: auto;
margin-left: auto;
background-color: #9FB7E1;
background-image: url(resimler/Logo1.png);
background-repeat: repeat; } #koli div {
float: left;
background-color: #9FB7E1;
height: 30px;
position: relative;
left: 170px;
right: 170px;
background-image: url(resimler/Logo1.png);
background-repeat: repeat; } #orta {
overflow: hidden;
width: 893.5px;
margin-right: auto;
margin-left: auto;
background-color: #FFFFFF;
height: 50px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none; } #orta div {
float: left;
background-color: #FFFFFF;
height: auto;
position: relative;
left: 300px;
font-family: "Comic Sans MS", cursive;
font-size: 24px;
font-style: italic;
color: #C00;
font-weight: 500;
font-variant: normal;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
white-space: normal;
display: inline;
letter-spacing: normal;
word-spacing: normal;
width: 862px; } body {
background-color: #FFF; } #alt {
overflow: hidden;
width: 893.5px;
margin-right: auto;
margin-left: auto;
background-color: #6D9DF2;
height: 640px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
background-repeat: no-repeat; } #alt div {
float: left;
height: 640px;
position: relative;
font-family: Georgia, "Times New Roman", Times, serif;
font-size:1em;
font-style: normal;
color: #666;
font-weight: normal;
font-variant: normal;
text-transform: none;
width: 845px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
left: 20px;
top: 10px;
right: 0px;
bottom: 0px;
padding: 0px;
line-height: normal;
margin-left: 0px;
background-color: #6D9DF2; } #alt div div {
float: left;
height: 40px;
position: relative;
font-family: Georgia, "Times New Roman", Times, serif;
font-size:1em;
font-style: normal;
color: #666;
font-weight: normal;
font-variant: normal;
text-transform: none;
width: 280px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
left: 6px;
top: 10px;
right: 0px;
bottom: 0px;
padding: 0px;
line-height: normal;
margin-left: 0px; } #ust {
width: 898px;
background-color: #FFF;
clip: rect(auto,auto,auto,40px);
margin: auto;
height: 20px;
height: 20px;
left: 10px;
top: 10px;
height: 20px;
left: 100px;
top: 10px;
height: 20px; } #bos {
width: 898px;
background-color: #9FB7E1;
border: thin none #33F;
list-style-type: decimal;
margin-right: auto;
margin-left: auto;
height: 90px;
background-image: url(resimler/Logo.png);
background-repeat: repeat; } </style> </head> <body> <form action="kayit.php" method="post"> <div id="ust"><img src="resimler/Logo.gif" width="898" height="92" /></div> <div id="bos"></div> <div id="koli"> <input name="" type="image" src="resimler/logo3.gif" /> </div> <div id="alt"> <div> <table border="4" style="width: 845px;height: 1px"><td colspan="3" style="width: 845px;height: 1px"> <center><b> Kullanıcı ve Donanım Bilgileri </b></center> </td> </td></tr> <td> Kullanıcı Adı : <input type="text" name="k_adi" size=25> Bilgisayar Adı. : <input type="text" name="b_adi" size=15> İp Adresi : <input type="text" name="ip" size=15> </tr> <td> Anakart Modeli : <input type="text" name="anakart" size=25> Ram : <input type="text" name="ram" size=5> Domain Hesabı : <input type="text" name="domain" size=20> </tr> <td> E - Posta Hesabı : <input type="text" name="e_posta_hesabi" size=40> Yazıcı Modeli : <input type="text" name="yazici_modeli" size=40> </tr> <table border="4"style="width:845px;height: 1px" ><td colspan="4"><center><b> İşletim Sistemi </b> </center> <td colspan="4"> <center><b> Donanım Bilgileri </b> </center> </td> </tr> <tr> <td> İşletim Sistemi <td><input type="radio"name="sistem"value="XP2"/ >Windows XP Sp2<br> <input type="radio"name="sistem"value="XP3"/>Windows XP Sp3<br> <input type="radio"name="sistem"value="W7"/ >Windows 7 Sp1<br> <input type="radio"name="sistem"value="W2003"/ >Windows 2003 Server<br> <td> Sürücüler <td><input type="checkbox"name="s_seskarti" >Ses Kartı<br> <input type="checkbox"name="s_printer" >Printer<br> <input type="checkbox"name="s_sternet">Eternet Kartı<br> <input type="checkbox"name="s_ekran">Ekran Kartı<br> <td> Ayarlamalar <td><input type="checkbox"name="a1" >Administrator<br> <input type="checkbox"name="a2" >Bios Şifresi<br> <input type="checkbox"name="a3">E - Posta Ayarlandımı<br> <input type="checkbox"name="a4">Yazıcı Yüklendimi<br> <input type="checkbox"name="a5">Web Erişimi (Kibtek)<br> <input type="checkbox"name="a6">İnternet Erişimi<br> </tr> <table border="4"style="width:845px;height: 1px" ><td colspan="4"> <center><b>Gerekli Programlar </b> </center> </td> </tr> <tr> <td> Yüklenen Programlar <td><input type="checkbox"name="y1">Microsoft Office<br> <input type="radio"name="y11" >2003 <input type="radio"name="y11" >2007<br> <input type="radio"name="y11" >2010 <input type="radio"name="y11" >2013 <br> <input type="checkbox"name="y2" >Winrar<br> <input type="checkbox"name="y3" > Net Support<br> <input type="checkbox"name="y4"> Adobe Acrobat<br> <input type="radio"name="y41" >2007 <input type="radio"name="y41" >2010<br> <input type="checkbox"name="y5" > MeadCO(Makbuz)<br /> <input type="checkbox"name="y6" > Muhasebe(KİBTEK)<br> <td> Yüklenen Programlar <td><input type="checkbox"name="y7" >Antivirüs(Trend Micro)<br> <input type="checkbox"name="y8" >Printer<br> <input type="checkbox"name="y9">Autocad<br> <input type="radio"name="y91" >2007 <input type="radio"name="y91" >2008 <input type="radio"name="y91" >2010 <input type="radio"name="y91" >2012 <br> <input type="checkbox"name="y10">Google Earth<br> <input type="text" name="y11" size=42> <br> <input type="text" name="y12" size=42><br> <input type="text" name="y13" size=42><br> <input type="text" name="y14" size=42><br> </tr> <table border="4"style="width:845px;height: 1px" ><td colspan="4"> <center> <input name="Kaydet" type="submit" /> <input name="temizle" type="button" value="Temizle" /> <input name="anasayfa" type="button" value="Anasayfa" /> </center> </td> </tr> <tr> </form> </body> </html>
Zaman
2013-05-04 01:03:45
Php Acil yardım if çalışmıyor 3 gün kafayı yedim...
// ***************** install.php***************** radio butonu bilgi aktaramıyorum, kayıt.html çalıştırıyorum bir isim yaratıyorum database de ise yarattığım ismi görüyorum ara.html girip aratıyorum bilgiler ekrana geliyor ama radio butonunun bilgileri gelmiyor. Neden olduğunu bulmiyorum 3-4 gündür kafayı yemek üzereyim. ama mysql den database bilgi girdiğim zaman ara.html aratıyorum bilgileri ve radio butonu bilgileri aktarıyor böyle çalışıyor.... instal.php kayit.html kayit.php ara.html aralist.php dosyaları kopyaladım. bir deneyi sorun nerde oldugunu çok merak ediyorum.
Zaman
2013-05-04 00:54:13
Php Acil yardım if çalışmıyor 3 gün kafayı yedim...
phpkodlari.com © 2009
Herkes
Php
öğrenecek
Web tasarım ve eğitim kaynağınız.