FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » PHP discussions » ~error,insert query failed....AND undefined index~
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
~error,insert query failed....AND undefined index~ [message #34033] Mon, 02 October 2006 07:03 Go to previous message
tyngtyng is currently offline  tyngtyng   Malaysia
Messages: 1
Registered: October 2006
Location: MALAYSIA
Karma:
Junior Member
hi...
i'm new to the php and now i'm getting an error to insert my data inside the form..and also undefined index in latest_updated......
Now,i'm having trouble catching what i'm doing wrong.... Shocked Here's my code to the query entry...

<?php

include 'config.php';

$pili_id=$_POST['pili_id'];
$branch=$_POST['branch'];
$zone=$_POST['zone'];
$location=$_POST['location'];
$type=$_POST['type'];
$subtype=$_POST['subtype'];
$alamat=$_POST['alamat'];
$latest_updated=$_POST['latest_updated'];

$query = "INSECT INTO pili VALUES (pili_id, branch, zone, location, type, subtype, alamat, latest_updated)
('$pili_id', '$branch', '$zone', '$location', '$type', '$subtype', '$alamat', '$latest_updated')";

mysql_query($query) or die('Error, insert query failed');
echo " '$pili_id' <b> '$branch' </b> ,'$zone', '$location', '$type', '$subtype', '$alamat','$latest_updated'";



?>

Can anyone give me a clue..?
thanks...!!!!
[Message index]
 
Read Message
Read Message icon14.gif
Previous Topic: Creating Simple Redirect links
Next Topic: Apache on local pc -> DocumentRoot on a remote nas
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 19:10:09 GMT 2024

Total time taken to generate the page: 0.04816 seconds