Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End simple I don’t know how PHP

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #38337

    Hi there,

    How would you do a callback function in PHP? I know this is simple but I can’t seem to figure it out.

    mysql_query($sqlinsert, $link);

    /*begin pseudocode

    if(success that that query was inserted):
    (
    print "Yay, it worked!";
    )

    end pseudocode*/

    Something like that.

    Red

    #104202
    mweldan
    Member


    mysql_query($sqlinsert, $link) or die("now i go die.");
    echo "heyyy i am still alive let's do the next thing..";
    ?>

    #104217
    karlpcrowley
    Participant
    if(mysql_query($sqlinsert, $link)){
    //Query worked
    } else {
    //Query failed
    }
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.