- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
- PC Specs
- Linux (Ubuntu)
15 Posted Topics
Re: where did you initialize the 'mainDisplay' object? | |
Re: I think you should use a separate table to store the "cp_ads_welcome_msg" field and use foreign key on all the "WP_XXX_Options" to reference the "cp_ads_welcome_msg" field. By doing this, you only need to update one table and all the "WP_XXX_Options" will point to the same "cp_ads_welcome_msg". Hope it helps. | |
Re: you could try this one [url]http://www.killerphp.com/tutorials/object-oriented-php/[/url] Very simple and direct-to-the-point style of teaching. Goodluck. :) | |
Re: I think you want to convert a letter to its equivalent number in the alphabet. Am I right? You can do it by using this formula. [CODE] Character.toLowerCase(ch) - 'a' + 1 [/CODE] function [CODE] public int toInt(char ch) { return Character.toLowerCase(ch) - 'a' + 1; } [/CODE] | |
![]() | Re: Packages are just folders. That's just it. Basically, it is used to group related classes and files. |
Re: Do I understand your question right? You just want to convert a string to an integer, right? You can just use Integer.parseInt(); [CODE] String aNumber = "1234"; int numberValue = Integer.parseInt(aNumber); [/CODE] ![]() | |
Re: also, i think there is no such statement as [CODE] else (CONDITION) [/CODE] it must be [CODE] else { // code here } [/CODE] or [CODE] else if (CONDITION) { // code here } [/CODE] | |
Re: Timestamp. Basically, you want to use timestamp if you will use the datetime value in other country, or places with other timezone. For example, you are in USA and you save the timestamp December 1, 2010 12:20:00 in your database. When you go to China for example, and you recover … | |
Re: I don't think PHP supports templates, considering the fact that it is a dynamic language. | |
Re: If you are working with a large project, it is much advisable to use the magic method __autoload() to include class files, rather than including them manually. Including class files manually is frustrating especially if working with large set of classes, so i advice you to learn using __autoload(). [url]http://php.net/manual/en/language.oop5.autoload.php[/url] | |
I'm in the middle of a project development, and I'm frustrated with this problem. Im running XAMPP under Ubuntu 10.04 (Lucid Lynx) mySQL version : Ver 14.14 Distribution 5.1.41 The problem is that, mySQL is accepting null values even if the field is declared with the NOT NULL constraint. Example: … | |
I've just learned how to use vectors. I'm thinking about, what is the best way to create a vector, IF you do not know its initial size. Here are some of my options. 1.) This is the simplest I think, but is there any memory issue about this technique? [CODE] … | |
So, I'm really frustrated with this problem. I desperately need some good explanation about this. Why does the calling function does not reflect the change done in the called function? despite the fact that I pass the variable via pointer. Any explanations please. Thanks in advance. [CODE]#include <iostream> using namespace … | |
Re: Function 2: the 5th line should be: s[i] = toupper(s[i]); toupper() fucntion is returning a value, it is not directly manipulating the string, so you still need to assign the current character to the returned value. Hope it helps. | |
Re: I think it is more advisable to instantiate an object using this syntax: Ball *r = new Ball; if you will follow the syntax that i've said, you can access member functions and variables using the following syntax: (*r).Do(); or r -> Do(); either of the 2 is correct. The … |