NEWS

LINK_ID = mysql_pconnect('localhost','agriturismolegiu','IBONuxoiZ2FiBbx'); // If the param was passed then open the db... if ($p_db != "") { mysql_select_db($p_db,$this->LINK_ID); } } // Simply executes the query & returns the number of affected records...(INS,DEL,UPD) function exec( $p_sql ) { mysql_query($p_sql,$this->LINK_ID) or die("SQL Exec can't execute:
$p_sql"); return mysql_affected_rows($this->LINK_ID); } // Executes the query, fetchs the first row returned w/name fields & returns the number of rows found... function query( $p_sql ) { $this->result = mysql_query($p_sql,$this->LINK_ID) or die("SQL Query can't execute:
$p_sql
Invia segnalazione errore"); if( $this->row = mysql_fetch_array($this->result) ) { return mysql_num_rows($this->result); } else { return 0; } } // Executes the query, fetchs the first row returned & returns the number of rows found... function row_query( $p_sql ) { $this->result = mysql_query($p_sql,$this->LINK_ID) or die("SQL Query can't execute..."); if( $this->row = mysql_fetch_row($this->result) ) { return mysql_num_rows($this->result); } else { return 0; } } // Executes the query, fetchs the first row returned & returns the value of the first field... function single_val_query( $p_sql ) { $this->result = mysql_query($p_sql,$this->LINK_ID) or die("SQL Query can't execute..."); if( $this->row = mysql_fetch_row($this->result) ) { return $this->row[0]; } else { return FALSE; } } // Moves to the following row... function row_on() { if( $this->row = mysql_fetch_row($this->result) ) { return TRUE; } else { return FALSE; }; } // Moves to the following row ARRAY... function go_on() { if( $this->row = mysql_fetch_array($this->result) ) { return TRUE; } else { return FALSE; }; } } ?>