I have this code: [code] #include <iostream> using namespace std; class hello { private: char array[4][5]; public: hello(); void get_hello(){cout << "From the function: array[2][2] = " << array[2][2] << endl;} } hi; hello::hello() { char array[4][5] = { " ###", "####", "####", "####" }; cout << "From the constructor: array[2][2] = " << array[2][2] << endl; (*this).get_hello(); } int main() { hi.get_hello(); cout << "\n" << "Press Enter to end this programm"; cin.get(); cout << endl; return 0; } [/code] Output: >From the constructor: array[2][2] = # >From the function:array[2][2] = >From the function:array[2][2] = I know I can't …

Member Avatar
Member Avatar
+0 forum 7

I have a program which requires a database. So I made a file that could generate the sql to create it (I copied the sql from PHPmyadmin as reference). When I execute the sql I get the error: [code]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '; USE `anonymusiusform`; -- ------------------------------------------------' at line 4[/code] It's always on the first ; that the error occurs. If I execute it in PHPmyadmin it works and correctly creates the database. I think the problem lays with …

Member Avatar
Member Avatar
+0 forum 4

I'm learning Object OrĂ¯ented PHP (or whatever you like to call it) and I ran into a problem. I made this query class: [php]class query { var $query; var $result; var $free; function query($query) { $this->query = $query; $this->free = false; $this->result = @mysql_query($this->query) or die('Error in mysql query:<br />\n' . mysql_error()); } function __destruct() { if($this->free === false){$this->free(); echo "You forgot to free the query result"; $this->free = true;} } function array_result() { for($a = 0; ($b = mysql_fetch_array($this->result, MYSQL_ASSOC)) !== false; $a++) { $array[$a] = $b; } return $array; } function get_result() { return $this->result; } function free() …

Member Avatar
Member Avatar
+0 forum 2

Just an whine really, when I hover my mouse over the menu bar, does the dropdown menu under search disappear. Noticed this today, I don't know wether it was that way before :P.

Member Avatar
Member Avatar
+0 forum 7

Hello, I'm Anonymusius. I'm 15 years and still in school (which is starting over a copple days :( ). Well, I was really just saying hello.

Member Avatar
Member Avatar
+0 forum 2

The End.