Greetings You dont have to do mysql = new mysql;
it is dont automatically. Rgds Insane SQLyog - The Definitive Win32 MySQL Front End http://www.webyog.com/sqlyog/download.html ----- Original Message ----- From: "Anna Fowles-Winkler" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 20, 2002 1:28 AM Subject: Does mysql_real_connect allocate memory? > Hi, > > Does the MySQL C API function mysql_real connect allocate memory or do I > need to do it? This is what my code currently does: > > MYSQL *mysql; > mysql = new MYSQL > mysql_init(mysql); > mysql_real_connect(mysql, host, user, password, dbase, 0, 0, 0); > > Thanks, > Anna > > > > --------------------------------------------------------------------- > Before posting, please check: > http://www.mysql.com/manual.php (the manual) > http://lists.mysql.com/ (the list archive) > > To request this thread, e-mail <[EMAIL PROTECTED]> > To unsubscribe, e-mail <[EMAIL PROTECTED]> > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php > --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php