RESPONSE: <br /> <b>Warning</b>: Use of undefined constant conn - assumed 'conn' (this will throw an Error in a future version of PHP) in <b>C:\xampp2\htdocs\database.php</b> on line <b>72</b><br /> <br /> <b>Warning</b>: Use of undefined constant dbhost - assumed 'dbhost' (this will throw an Error in a future version of PHP) in <b>C:\xampp2\htdocs\database.php</b> on line <b>72</b><br /> <br /> <b>Warning</b>: Use of undefined constant dbuser - assumed 'dbuser' (this will throw an Error in a future version of PHP) in <b>C:\xampp2\htdocs\database.php</b> on line <b>72</b><br />
Ok when I put die('test') at the beginning, it prints to CONSOLE: "test", but when I put i passed die('test') AFTER connect() call, it gives me this long string of text that looks like it's in HTML:
I ran the same script without die line you mentioned, and in the error_log of PHP, it says "CODE MATCHES? 1" (break) "1". So count is equal to 1. On the last line in the PHP function I write echo $count and it prints 1.
Hi, i'm using codeblocks and trying out SDL 2.0. I first call the SDL_Init function and then create a window. The program runs, but the window appears for a split second then disappears what could be the problem on windows
Hi, i'm using codeblocks and trying out SDL 2.0. I first call the SDL_Init function and then create a window. The program runs, but the window appears for a split second then disappears what could be the problem
can someone explain why the compiler does not give an error when you call a function twice (or more), which has a static const member in it, that you assign a new value to it each time? (it still remains the same value from the first call, but why does it not give an error when you attempt to change it with subsequent calls?)
How does a multimap store multiple values to the same key? like if i create a char key to an int ('a'=>1) then another ('a'=>2), and i print it, it always returns the last one i entered. what happens to the old ones (1)?
@Borgleader it's just because i thought the header to a function definition specifies which function you want to define. wouldn't class_name::function_name(params) be enough? since you can't overload that method with just a return type being different
im just confused because in switch statements you can't say case val: int a = 5; yet case val: int a; a=5; is. why is the first not allowed yet the second is?
do i have the right idea about private/protected/public inheritance? he highest level of visibility for each of the derived class's inherited members from the base class is the access specifier specified
ok so headers tell the compiler what to "expect" before running the code? so if you want to call say a declared void function foo(), it will look for 'void foo()'
hey. if i have two functions with the same name and return type, but one takes a parameter 'long' and the other 'double'. if i call the function, and pass '67.5' for example, why is this not ambiguous to the compiler? it will call the one that took a double in this case. yet if i pass say an int, it will not compile
class Shape { public: void setWidth(int w) { width = w; } void setHeight(int h) { height = h; } protected: int width; int height; }; //Why can you declare variables after they are assigned a value?
ok so headers tell the compiler what to "expect" before running the code? so if you want to call say a declared void function foo(), it will look for 'void foo()'?
why is it that you need to declare functions before they are called, yet you can declare a variable in a class after it's initialized. like class foo{ foo():var(5){}private: const int var;};