Forum


23:13

21/09/2009

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
09:07

21/09/2009

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
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66