Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Updating Database--Embarassed
22/09/2009
23:13
Avatar
bhogsett
Cleveland, Ohio, USA
Member
Members
Forum Posts: 19
Member Since:
21/09/2009
sp_UserOfflineSmall Offline

I am moving an existing table page with a mysql backend to jgrid and use php to access the database.  I have delete working but not add or edit.  Looking at the post items in firebug it sure looks like they are getting passed in.

Here is the php (which is based on an earlier post here):

    if($_POST['oper']=='add')
    {   // Add a New Round
        $newgame = $gh->getnewgame();
    }
    else if($_POST['oper']=='del')
    {   //delete the Round
        $id = $_POST['id'];
        $gh->deleteGame($id);
    }
    else if ($_POST['oper']=='edit')
    {   //edit the Round
        $id = $_POST['id'];
        $newgame = $gh->getnewgame($id);
    }

Anyone see a problem with the code?

Bill

23/09/2009
09:07
Avatar
bhogsett
Cleveland, Ohio, USA
Member
Members
Forum Posts: 19
Member Since:
21/09/2009
sp_UserOfflineSmall Offline

SOLVED!

The problem had to do with difference in the _POST data coming from JGrid and the _POST data coming from my earlier implementation.

The IF construct in my earlier post works fine.

I had tried to put an emoticon in the title and it was converted to Embarassed, which perhaps is accurate!!!

Bill

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
91 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information