Kamis, 29 Agustus 2013

PHP Indonesia - Facebook: Mas bro ...mo tanya dunk, ane mo ambil isi variabe...

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/ 
Refresh your vocabulary.

Learn a new word everyday by subscribing to Word of the Day. A great tool if you're studying for the GRE, GMAT or LSAT, or simply want to enhance your lexicon.
From our sponsors
Mas bro ...mo tanya dunk, ane mo ambil isi variabe...
Aug 29th 2013, 08:15, by Ovix Dodon

Ovix Dodon 8:15am Aug 29
Mas bro ...mo tanya dunk, ane mo ambil isi variabel dari url, isinya itu mo disimpen di database, masalahnya gak bisa masuk isi variabel ke database, mohon bimbingannya ...
Berikut ini CODE yg ane bikin ...

index.php
<?php
$TextTitle = "LINK";
$Textlink = "google";
echo "<a href=\"ambil_link.php?Textlink=" .$Textlink. " \">". $TextTitle. "</a>";
?>

ambil_link.php
<?php
#include(index.php);
$host = "localhost";
$root = "root";
$pass = "";
$dtbase = "inventaris_db";

$koneksi = mysql_connect($host,$root,$pass) or die ("Koneksi Gagal");
$dt_con = mysql_select_db ($dtbase,$koneksi);
// $src = $_GET['Textlink'];

if (isset($_GET['Textlink'])) {
$src = $_GET['Textlink'];
}
echo $src;
$val_src = $_POST[$src];
//$push_src = $_POST[$src];

$insert = mysql_query("INSERT INTO barang (id_barang, nama_barang, jenis_barang) VALUES (NULL,'','$src')",$koneksi);

if($insert){
echo "Input Data Sukses";
}
else
{
echo " Koneksi Gagal ";
}
?>

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