PHP Login System with Admin Features

This forum was created to talk about the PHP Login System with admin features created by jpmaster77 on evolt's website


    multiple field choices?

    Share
    avatar
    intothefantasy

    Number of posts : 37
    Registration date : 2009-04-11

    Re: multiple field choices?

    Post  intothefantasy on Fri May 08, 2009 11:30 pm

    Code:
    $q = "INSERT INTO `cats` (`dtime`, `catname`, `values`,) VALUES (NOW(), '$catname', '" . $_POST['values'][$i] . "')";
        mysql_query($q) or die(mysql_error());


    the error just now


    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') VALUES (NOW(), 'asasas', 'apples')' at line 1

    and no matter how many choice i choose...i still see it only wanna insert apples...
    avatar
    Linchpin311

    Number of posts : 220
    Age : 33
    Localisation : Long Island
    Registration date : 2007-05-14

    Re: multiple field choices?

    Post  Linchpin311 on Fri May 08, 2009 11:33 pm

    the comma in `values`,) try removing it


    _________________
    in the end, the universe tends to unfold as it should...

    Also note that it is your responsibility to die() if necessary.
    avatar
    intothefantasy

    Number of posts : 37
    Registration date : 2009-04-11

    Re: multiple field choices?

    Post  intothefantasy on Fri May 08, 2009 11:37 pm

    lol nais...it did it...manage to add into database as 3 lines if i add 3 of them
    avatar
    Linchpin311

    Number of posts : 220
    Age : 33
    Localisation : Long Island
    Registration date : 2007-05-14

    Re: multiple field choices?

    Post  Linchpin311 on Fri May 08, 2009 11:39 pm

    good to hear! so its all working correctly now?


    _________________
    in the end, the universe tends to unfold as it should...

    Also note that it is your responsibility to die() if necessary.
    avatar
    intothefantasy

    Number of posts : 37
    Registration date : 2009-04-11

    Re: multiple field choices?

    Post  intothefantasy on Fri May 08, 2009 11:41 pm

    yea...is working as i intended to...later i will try to implement this together with this awesome php login system..i think i might need time for that lol..thanks man u really give me a great help...i wish you can continue support me for this topic..i might be coming back for more question abt this part lol cheers
    avatar
    Linchpin311

    Number of posts : 220
    Age : 33
    Localisation : Long Island
    Registration date : 2007-05-14

    Re: multiple field choices?

    Post  Linchpin311 on Fri May 08, 2009 11:43 pm

    ask away! i am always happy to help a fellow programmer. Very Happy


    _________________
    in the end, the universe tends to unfold as it should...

    Also note that it is your responsibility to die() if necessary.

    Sponsored content

    Re: multiple field choices?

    Post  Sponsored content


      Current date/time is Wed Nov 14, 2018 1:03 am