Need help with Auto_Increment MYSQL!
#1

I'm making a Business MYSQL, but i have problem with the ID of every Business.
The problem is when i delete one Business and create new one, but the ID did'nt replace the old ID, it make a new ID for that business. I use this script but it's not really effective. Help me


PHP код:
for(new i=0i<MAXBIZi++)
{
    
format(query,sizeof(query), "SELECT * FROM business WHERE IDBiz=%d",i);
    new 
rowsfields;
    
cache_get_data(rowsfields);
    if(!
rows)
    {
        
id i;
        break;
    }

P/s: I use MYSQL R33
Reply


Messages In This Thread
Need help with Auto_Increment MYSQL! - by dieuhanhphuc - 15.07.2014, 09:53
Re: Need help with Auto_Increment MYSQL! - by Vince - 15.07.2014, 10:54
Re: Need help with Auto_Increment MYSQL! - by dieuhanhphuc - 15.07.2014, 13:51

Forum Jump:


Users browsing this thread: 1 Guest(s)