Jumat, 30 Agustus 2013

PHP Indonesia - Facebook: Tolong bantu gan

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Creating iOS Games: Beginner Course

Marin Todorov teaches you how to create an iPhone game easily and simply using Cocos2d in this $99 online course.
From our sponsors
Tolong bantu gan Kenapa bisa kayak gini
Aug 30th 2013, 11:58, by MI YO

MI YO 11:58am Aug 30
Tolong bantu gan
Kenapa bisa kayak gini

Cahya Dsn 12:02pm Aug 30
mungkin bisa dibantu dengan script yg sudah dibuat? maklum gan kebanyakan (semua) coder yang dimari gak punya sidejob jadi dukun ^_^V

* coba check di baris 111 pada file D:\xampp\htdocs\28ilir.ilir.barat2.palembang.go.id\caridatapenduduk.php pada pemakaian fungsi mysql_fetch_assoc()-nya

Rama Dhan 12:04pm Aug 30
^ atas ane dukun tuh bro... :v

MI YO 12:09pm Aug 30
<?php require_once('Connections/db28ilir.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

$colname_t_pndk = "-1";
if (isset($_GET['cari'])) {
$colname_t_pndk = $_GET['cari'];
}
mysql_select_db($database_db28ilir, $db28ilir);
$query_t_pndk = sprintf("SELECT * FROM penduduk WHERE NIK LIKE %s ORDER BY NIK ASC", GetSQLValueString("%" . $colname_t_pndk . "%", "text"));
$t_pndk = mysql_query($query_t_pndk, $db28ilir) or die(mysql_error());
$row_t_pndk = mysql_fetch_assoc($t_pndk);
$totalRows_t_pndk = mysql_num_rows($t_pndk);

mysql_free_result($t_pndk);
?>
<style type="text/css">
input#caridata { border: 2px solid #9CC;
border-radius: 7px;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
color: #00F;
background: #09F;
opacity: .8;
}
</style>

<table width="177" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center"><font size="1" face="Arial Black" color="#006699"><b><u>CARI DATA PENDUDUK</u></b></font></div></td>
</tr>
<tr>
<td width="117" align="center" valign="middle"><form action="caridatapenduduk.php" method="get" name="form1" id="form1">
<label for="cari"></label>
<input name="cari" type="text" id="cari" size="17" />
<input type="submit" name="caridata" id="caridata" value="Cari" />
</form></td>
</tr>
</table>
<p>&nbsp;</p>
<table border="1">
<tr>
<td>NIK</td>
<td>No_KK</td>
<td>Nama_Lengkap</td>
<td>Tempat_Lahir</td>
<td>Tanggal_Lahir</td>
<td>Jenis_Kelamin</td>
<td>Agama</td>
<td>Pendidikan_Terakhir</td>
<td>Pekerjaan</td>
<td>Status_Pernikahan</td>
<td>Alamat</td>
<td>Kelurahan</td>
<td>Kecamatan</td>
<td>Kode_Pos</td>
<td>Kota</td>
<td>Provinsi</td>
<td>Kewarganegaraan</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_t_pndk['NIK']; ?></td>
<td><?php echo $row_t_pndk['No_KK']; ?></td>
<td><?php echo $row_t_pndk['Nama_Lengkap']; ?></td>
<td><?php echo $row_t_pndk['Tempat_Lahir']; ?></td>
<td><?php echo $row_t_pndk['Tanggal_Lahir']; ?></td>
<td><?php echo $row_t_pndk['Jenis_Kelamin']; ?></td>
<td><?php echo $row_t_pndk['Agama']; ?></td>
<td><?php echo $row_t_pndk['Pendidikan_Terakhir']; ?></td>
<td><?php echo $row_t_pndk['Pekerjaan']; ?></td>
<td><?php echo $row_t_pndk['Status_Pernikahan']; ?></td>
<td><?php echo $row_t_pndk['Alamat']; ?></td>
<td><?php echo $row_t_pndk['Kelurahan']; ?></td>
<td><?php echo $row_t_pndk['Kecamatan']; ?></td>
<td><?php echo $row_t_pndk['Kode_Pos']; ?></td>
<td><?php echo $row_t_pndk['Kota']; ?></td>
<td><?php echo $row_t_pndk['Provinsi']; ?></td>
<td><?php echo $row_t_pndk['Kewarganegaraan']; ?></td>
</tr>
<?php } while ($row_t_pndk = mysql_fetch_assoc($t_pndk)); ?>
</table>

Rama Dhan 12:11pm Aug 30
mendingan di pastenya di pastebin.com aja..
biar mata ga atit ^_^

Cahya Dsn 12:17pm Aug 30
//..
mysql_free_result($t_pndk);
//..

diubah jadi:
//..
//mysql_free_result($t_pndk);
//..
atau dihapus aja ^_^V

why?

pada baris :

//..
<?php } while ($row_t_pndk = mysql_fetch_assoc($t_pndk)); ?>
//..
$t_pndk karena sudah di free dari memory.. jadi...ya gitu deh.. ^_^V

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar