#ifndef _STDIO_ #define _STDIO_ #include #endif #ifndef _STRING_ #define _STRING_ #include #endif #if (defined(_WIN32) || defined(_WIN64)) #include #endif #ifndef _MYSQL_ #define _MYSQL_ #include #endif #ifndef TRUE #define TRUE 1 #endif #ifndef TRUE #define FALSE 0 #endif #define MAXIMO 500 /* No funciona en windows!!Tamaño máximo del buffer. El de MySQL es de 16 KB, por lo que no problem :-) */ MYSQL_RES *busqueda_por_datos(char campo[],char valor[],MYSQL *base_de_datos,int estricto); MYSQL_RES *busqueda_por_pedidos(char campo[],char valor[],MYSQL *base_de_datos); int existe(char * id,MYSQL * base_de_datos); void insertar_pedido_en_BBDD(char * id,char *pedido[],MYSQL * base_de_datos); void insertar_datos_en_BBDD(char *entries_datos[],MYSQL * base_de_datos); void borra_registro(char * id,MYSQL * base_de_datos);