/*******************************************\ | * Ce programme est sous liscence GNU GPL * | | * This software is under GNU/GPL licence * | | * * * * * * * * * * * * * * * * * * * * * * | | * http://www.gnu.org/copyleft/gpl.html * | \*******************************************/ /* Cr er par Laurent Coustet <ed@zehome.com> * http://ed.zehome.com/ * Made by Laurent Coustet <ed@zehome.com> */ #define connect(mysql) _mysql_connect(mysql,"ed","127.0.0.1","********","ed") #define query(mysql,query,...) _mysql_query(mysql,query,__VA_ARGS__) #define disconnect(mysql) _mysql_disconnect(mysql) typedef struct st_news { char *titre; /* Title of the news */ char *texte; /* Text of the news */ char *auteur; /* Author of the news */ char *date; /* MYSQL DATE */ unsigned int id; /* id of the news */ } ST_NEWS; void GetNews(); void print_news_foot(); void print_news_head(); void AddNews(char *titre, char *texte);