Voila, cette boucle ne marche pas, elle me renvoye stop a chaque fois ! alors qu'elle devrais m'envoyer une fois id_dom = 1 et une fois id_dom = 2 puis ensuite stop....
Pouvez vous me dire où est le problème ?
While stop = 1
If SQL$ = "SELECT id, domaine, extension, activ, date, expiration FROM domaine WHERE numero = '" + numero + "' AND id <> '" +id_dom.s+ "'" = 1
If CallFunctionFast (real_query, dbHnd, SQL$, Len (SQL$))
GetError(dbHnd)
Else
*mysqlResult= CallFunctionFast (store_result,dbHnd)
If *mysqlResult=0
If CallFunctionFast (field_count,dbHnd)
GetError(dbHnd)
Else
EndIf
Else
affRows = CallFunctionFast (affected_rows,dbHnd)
*mysqlRow= CallFunctionFast (fetch_row,*mysqlResult)
*mysqlLen= CallFunctionFast (fetch_lengths,*mysqlResult)
length= PeekL (*mysqlLen+4*(0))
fieldptr= PeekL (*mysqlRow+4*(0))
If fieldptr>0
id_dom.s= PeekS (fieldptr,length)
Debug id_dom
EndIf
EndIf
EndIf
Else
Debug "stop"
stop = 1
EndIf
Wend
Merci d'avance pour votre aide.