I cannot see what is wrong with userid yet. Ignore what I said in unedited post!
qazplm114477 commented: thanks for clearing up +1
ceeandcee commented: Thank You! +1
I cannot see what is wrong with userid yet. Ignore what I said in unedited post!
is this code for welcome.php? I cannot find userid anywhere in the code!
It is strange that PHP complains about something non existant!
Thank you, I think I closed all my curly braces but I a still getting an error. Do you happen to see any errors I am missing...
what is the error currently and your current code also?
I don't have any acquaintance with OGL but it seems glaux library is missing. See:
http://www.gamedev.net/topic/381093-linker-error/
echo the values of Post and see if they work then from there we can track the query.
first , i need some clarification,
what is the topic feature if that topic is locked????and
set "is_lock" flag in your topics table in database,
then set it to 1 if it is locked, default is 0 means it is not locked.
as Shanti said, do that and then in inserting the reply check for unlocked forums. Incase the column indicates the post is locked then post back form and error message
I cannot test and understand your code for now but what do you mean by "down the tree"?
. Please Help me to develop the tree view. Thanks in advance.
Without showing effort your thread will die young. explain more with some code, what you have done and where is the problem!
Make the Class singleton!
how do you know the active page?
What do you want to do?
What is your level of programming?
There are two inserts
table have columns: col1, col2, col3
--Inserts into all columns, this kind of query should have values equal to number of columns
INSERT INTO table_name("Blah", "bla2", "blah3")
--Insert any number, the other columns should have default defined for safety
INSERT INTO table_name(col1, col2) VALUES("Blah", "bla2")
how could i add the onkeydown() function in jquery..
this is for the autocomplete..
regards, ^^
Check JQuery UI auto complete
So? What have you done for your homework?
Remember it is YOUR homework.
why not just use Email client like thunderbird? It will save you a lot of pain.
Writting such complex project isn't easy.
Check thunderbird or if you are on linux there is also evolution
You have extra ) in your statement. Rectify it to one below
if (!$check){
header('Location: http://www.eguard.comli.com/theme2/login.php');
}
Thank you for telling me. But I think I need a book about datastructure rather than specific language, thanks.
Here we go!
@OP
Data Structures using C/C++
That is Achille's heel. He does want Languageless
But I think I need a book about data structure rather than specific language, thanks.
I can't think of any. all I know use one language or another
Points of correction added as comments
#include <iostream>// Dont use something.h, it is deprecated
#include <string>//see above comment
#include <cstdlib> //MISSING
using namespace std;
#define INVENTORYLIMIT 5
struct itemClass
{
int itemID;
string itemName;
};
class characters //name of base class
{
private:
int currentLocationID;
int healthPoints;
int attackPoints;
string charName;
string description;
itemClass inventory[INVENTORYLIMIT];
int itemsInInventory;
public:
characters(); //A constructor function - must be same name as class itself
~characters(); // a destructor function
int getLocation();
bool setLocation (int charlocation);
string getName(); // An accessor function for name
bool setName(string name); // An mutator function for name
string getDescription(); // Accessor function for description
bool setDescription (string chardescription); // A mutator function for description
bool setHealthPoints(int health); // a mutator function for health points
int getHealthPoints(); // an accessor function for health points
bool setAttackPoints(int attack); // a mutator function for attack points
int getAttackPoints(); // an accessor function for attackpoints
///////////////////////////////
bool addAttackPoints(int newAttackPoints); // a mutator function to subtract attack points
bool subtractHealthPoints(int subtractHealthPoints); // a mutator function for subtracting Health Points
bool subtractHitPoints(int subtractHitPoints); // a mutator function for subtracting hit points (attack points)
//////////////////////////////
bool addItem(int itemID, string itemName);
//bool dropItem (int itemID);
int getinventory();
int viewallitems();
};
////////////////////////////////////////////////////////////////////////////////
class playingCharacterClass: public characters
{
private:
int expPoints;
public:
bool addExperiencePoints(int points);// a mutator function to add experience points
bool setPoints(int expPoints); // A mutator function for expPoints
int getPoints (); // An Accessor for expPoints
};
////////////////////////////////////////////////////////////////////////////////
class nonPlayingCharacterClass: public characters
{
private:
bool …
Points of correction added as comments
#include <iostream>// Dont use something.h, it is deprecated
#include <string>//see above comment
#include <cstdlib> //MISSING
using namespace std;
#define INVENTORYLIMIT 5
struct itemClass
{
int itemID;
string itemName;
};
class characters //name of base class
{
private:
int currentLocationID;
int healthPoints;
int attackPoints;
string charName;
string description;
itemClass inventory[INVENTORYLIMIT];
int itemsInInventory;
public:
characters(); //A constructor function - must be same name as class itself
~characters(); // a destructor function
int getLocation();
bool setLocation (int charlocation);
string getName(); // An accessor function for name
bool setName(string name); // An mutator function for name
string getDescription(); // Accessor function for description
bool setDescription (string chardescription); // A mutator function for description
bool setHealthPoints(int health); // a mutator function for health points
int getHealthPoints(); // an accessor function for health points
bool setAttackPoints(int attack); // a mutator function for attack points
int getAttackPoints(); // an accessor function for attackpoints
///////////////////////////////
bool addAttackPoints(int newAttackPoints); // a mutator function to subtract attack points
bool subtractHealthPoints(int subtractHealthPoints); // a mutator function for subtracting Health Points
bool subtractHitPoints(int subtractHitPoints); // a mutator function for subtracting hit points (attack points)
//////////////////////////////
bool addItem(int itemID, string itemName);
//bool dropItem (int itemID);
int getinventory();
int viewallitems();
};
////////////////////////////////////////////////////////////////////////////////
class playingCharacterClass: public characters
{
private:
int expPoints;
public:
bool addExperiencePoints(int points);// a mutator function to add experience points
bool setPoints(int expPoints); // A mutator function for expPoints
int getPoints (); // An Accessor for expPoints
};
////////////////////////////////////////////////////////////////////////////////
class nonPlayingCharacterClass: public characters
{
private:
bool …
with the inventory, the idea is that each character can hold 5 items, so an array, but the array needs to hold the itemID and the itemName therefore an array wont be any good coz it can only hold one or the other.
Is it not working or just polishing? (I haven't read for now whole story).
But as for above, I would suggest structs and unions as best options IMO
Use Code Tags and post only relevant code not whole bunch of it.
All I can see is JS code and this is PHP forum (wrong forum?)
sudo apt-get remove firefox
sudo apt-get install firefox
Why not just use MS-Word or Open Office to modify the doc file?
This is the best I can say, heed to AD's advice :)
If you are still stubborn about it, learn MS word format and know how to manipulate me, which to me is as useless as useless itself ;)
After some testing, I still couldn't figure out my this was happening, but I did find out something weird as well. When I used an Alter statement in mysqli_multi_query() it did not work, but when I used the Alter statement in mysqli_real_query / mysqli_query it worked fine.
fyi, I did test my connection and query/multi query, and they were both working fine.
IMHO, alter statement is taken with many (I included) as bad design, so it much of the time, not thought to be of frequent use. So I guess that is why it isn't supported: Afterall we run the query when we mess up with design don't we? :)
Just run it as separate Query. I will check to see if my guess is so.
These few concise tutorials have good examples.
See if something is wrong with your code
http://www.weberdev.com/ViewArticle/PHP%3A-A-simple-MySQL-search
http://www.htmlite.com/mysql011.php
http://www.iamcal.com/publish/articles/php/search/
Laziness? :icon_eek:
You have showed no effort. Show your relevant codes
At the bottom you will find:
Has this thread been answered?
If this thread has been successfully resolved, please Mark this Thread as Solved so that it can be added to our Knowledge Base and help others. Also, posters who replied appreciate knowing that they were helpful.
Click link contained and voila.
Mark it then solved :)
forums are for question to be discussed. so what's your question?
If you don't mind Try wxWidgets. from version 2.9.x you can use wxBase which have no GUI components Just console. Remember to compile with unicode flag set.
wx is known to work with Unicode "naturally" when compiled with Unicode. also there is wx-SDL tutorial.
Thanks evsteve...this current code doesn't seem to work. It wont update the database. I am looking for help to get this to work and I think I am close.
I will advice you the best way to do these stuffs. Get your copy of MySQL workbench and connect to your local copy (remote site?) and test queries. Tweak them until they work. Transfer query to PHP. MWB have got syntax highlighting. You can also create view that acts as a table with all sums you need!
I'm using Unicode to test difference between 'a' and 'A'. So yes, it would have unicode. (I'm using GCC for Windows). And what third party libraries could I use?
(are there any other possible solutions?)
Check with POCO Unicode, if you have question ask in their forums
That means if ($ua="HelloWorld") is always true. echo the value of $ua before comparison
Any help would be most appreciated!
??:icon_rolleyes:??
Haven't said anything is wrong/not fixed yet
Hint: Path may be incorrect!
src="/ImageGallery/Images/mmbg3xmx3g.gif"
supposing that you have your www directory at src="Z:/home/localhost/www/ and images in subdir ImageGallery/
Using relative paths is easier than absolute paths
are you sure SDL can handle unicode? It seems C++ doesn't have Unicode support. So try third party libraries!
Here is the solution (I guess it has to do with priority of operations, I never had that problem before, but again, I rarely use pointers to member functions):
(pointerToBase_->*pointerToComputeFooFunc_)(aValue); //notice additional parentheses.
That makes it compile!
Thinking in C++
I'm big fan of comprehensive C++ how to program by Deitel
Also some good sites to visit like CplusPlus and CProgramming. Also don't miss Soulie's tutorial
I am a beginner in c++, I taught myself c++ through the book "c++ primer plus", it really took me a lot of will to finish the book. Now i just want to use the thing i learned to do some pratical things in my life, can anybody tell me how to accomplish? Some advice for my learning will receive my appreciation too.
try some console apps, depending on your interests. If you love math, go to project eura and keep with their questions. After you get little advanced (IDEs of course) make some interesting project. I would suggest simple audio player (console one) using some libraries like Zplay or Bass. Then Choose GUI toolkit (wxWidgets/QT/GTKmm) and transfer you console App into GUI application. Keep adding things like Podcasting, streaming....and you end up with open/Closed source applications.
That is Just example, you can geer yourself into any direction of your interest. The rule of the thumb is, start with simple app, learn new concept, exapand your app.
My Suggestion:
Compiler: GCC/MiNGW
IDE: CodeLite or Code::Blocks
GUI Toolkit: wxWidgets
hope it helps
what is your current code?
I'm not familiar with class forwarding so I'm lost in Mike's code.
Where is BaseClass?
Thanks for the detailed response. I went ahead and tried your suggestions, and everything seems to work fine, except that the compiler throws this error:
This is linked to the following line of code:
pointerToBase_->*pointerToComputeFoo_(aValue);
I can't seem to get around this, and it's very strange to me, since the error shows that it's in the scope of FooClass that the pointer to member function pointerToComputeFoo_ is compiled, whilst the typedef explicitly places it in the scope of BaseClass.
Something rather funky seems to be happening here.
I hope you can help me sort this out.
Your feedback is much appreciated.
Thanks in advance,
Kartik
Is it not the same issue of forgetting the ClassName:: *iamAPointer?
Try adding the class in which it is contained