Hello Ash,

No, I don't get an error message, the thing is, my post form, isn't working... 
I can't post those fields in database when I fill them up in the form... But, I 
really don't know why... Do you want my form code? all the entire class.php 

Thank you for helping me.

Carlos Sura.

Subject: Re: [PHP] What's wrong in this function? Does not work for me.
From: a...@ashleysheridan.co.uk
To: carlos_s...@hotmail.com
CC: php-general@lists.php.net
Date: Sat, 3 Jul 2010 00:08:05 +0100


On Fri, 2010-07-02 at 22:05 +0000, Carlos Sura wrote:

Hello, this function does not work for me... And I really don't know what am I 
doing wrong... Any help??

This function is in a class, and I call it in a form, to create a new user..

    $objEmploye=new Employe;
    if ( 
$objEmploye->insert(array($name,$lastname,$salary,$dui,$afp,$isss,$nit)) == 
        echo 'Saved';
        echo 'Error, try again';

    function insert($field){
            return mysql_query("INSERT INTO employes (name,lastname, salary, 
id, afp, isss, nit) VALUES ('".$field[0]."', 

Do you have a story that started on Hotmail? Tell us now

I can't see anything wrong with that code excerpt. Are you getting a specific 
error, and if so, what is the code on and around the line number indicated in 
that error?




We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now

Reply via email to