MYSQL_RES *results1;
MYSQL_ROW row;
MYSQL DBsession;
mysql_init ( &DBsession );
mysql_real_connect ( &DBsession, PRI_HOST_IP, PRI_USER_NAME,
PRI_USER_PASSWORD, PRI_DB_NAME, PRI_PORT_NO, "", 0 );
sprintf ( sql, "SELECT filepath FROM filepath WHERE charset = '%s' AND
location = '%s'", s1, s2 );
mysql_query ( &DBsession, sql );
results = mysql_store_result ( &DBsession );
if ( row = mysql_fetch_row ( results ) ) {
strcpy ( s3, row[0] );
}
mysql_free_result ( results );
mysql_close ( &DBsession );
---------------------------------------------------------------------
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