ID's mixed up
#5

I am assuming that [pumpID] is for MySQL ID of pump in table so
Have you done like this? :
PHP код:
forward onCreatePump(localPumpID);
public 
onCreatePump(localPumpID)
{
     
pumpData[localPumpID][pumpID] = cache_insert_id();
     return 
1;

Make sure that id is the PRIMARY_KEY in mysql db.
and why aren't you inserting the coords of pump?
Reply


Messages In This Thread
ID's mixed up - by conor565 - 10.09.2015, 22:40
Re: ID's mixed up - by conor565 - 12.09.2015, 12:06
Re: ID's mixed up - by BroZeus - 12.09.2015, 12:18
Re: ID's mixed up - by conor565 - 12.09.2015, 12:20
Re: ID's mixed up - by BroZeus - 12.09.2015, 12:39
Re: ID's mixed up - by conor565 - 12.09.2015, 13:09
Re: ID's mixed up - by BroZeus - 12.09.2015, 13:47
Re: ID's mixed up - by conor565 - 12.09.2015, 16:16
Re: ID's mixed up - by BroZeus - 12.09.2015, 16:42
Re: ID's mixed up - by conor565 - 12.09.2015, 17:05

Forum Jump:


Users browsing this thread: 1 Guest(s)