Functions for interacting with a MySQL DBMS. On Linux you must have the MySQL headers and libraries installed. 03/10/2024 mysql_connect(host,username,password := "", port := 0) Connects to DMBS. Connection on success mysql_query(connection,query,parameters := "") Performs a query. Every occurrence of ? in the query will be replaced by corresponding parameter in the parameters array (if present). Parameters are automatically escaped. All parameters are handled as string by now. Example: mysql_query(conn, "SELECT a FROM t WHERE a = ? AND b = ?", array{1,"hel'lo") executes "SELECT a FROM t WHERE a = '1' AND b = 'hel\'lo'" Connection on success mysql_fetch_row(result) Fetches next row from Result. Array on success mysql_affected_rows(result) Returns number of rows affected by last query. Integer on success mysql_num_fields(result) Returns number of fields in result. Integer on success mysql_num_rows(result) Returns number of rows in result. Integer on success mysql_select_db(connection,database) Select a database to perform queries on. 1 on success mysql_field_name(result,column_index) Returns the given field's name in result. String on success mysql_close(connection) Closed the connection to DBMS. 1 on success mysql_escape_string(connection, str) Returns escaped string on success String on success, Error otherwise