Tenderfoot's Profile User Rating: -----

Reputation: 8 Worker
Group:
Contributors
Active Posts:
140 (0.33 per day)
Joined:
21-March 12
Profile Views:
1,706
Last Active:
User is offline May 05 2013 12:55 PM
Currently:
Offline

Previous Fields

Country:
IS
OS Preference:
Windows
Favorite Browser:
Who Cares
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
50

Latest Visitors

Icon   Tenderfoot has not set their status

Posts I've Made

  1. In Topic: Populating a Datagrid

    Posted 30 Apr 2013

    Problem fixed:

            public int Phone_ID
            {
                get
                {
                    return this.phone_ID;
                }
                set
                {
                    this.phone_ID = value;
                }
            }
    
    


    It was a problem with the get and set accessors, had to set them up like this as I was using private variables.
  2. In Topic: Populating a Datagrid

    Posted 30 Apr 2013

    Constructing my accessors like this fixed the problem to an extent:

    public int Phone_ID { get; set; }
    
    


    I now see the object in the DataGrid. The problem is that fields that actually do have a integer value in the phoneList are showing up as zero, all of them.
  3. In Topic: Populating a Datagrid

    Posted 30 Apr 2013

    My get and set accessors in the Phone class look like this:

    public void setLocation(string location)
            {
                this.location = location;
            }
    
            public string getPhoneType()
            {
                return this.phoneType;
            }
    
    


    This might very well be the issue.
  4. In Topic: Debugging on a remote server

    Posted 8 Jan 2013

    View PostMartyr2, on 08 January 2013 - 12:36 PM, said:

    Well at a quick glance from your code it looks like you might have a problem executing your statement. If it is not reaching your echo about the ID for translationkeys, then I would put an echo in your catch, see if that prints, if it doesn't, check if any of the prepare, bindvalue or execute statements there are returning false. I think you will find one of them is. Might be your execute.

    If that is the case, then you can look at your PDOStatement's errorInfo array and see if there is any additional info being saved to tell you what went wrong.

    I think you have it pinned, you just need to investigate the statements just before where it fails.

    P.S. Usually when it works locally and not remotely it means one of two things... 1) There is a permission in your way 2) There is simply a setting that is different in php.ini (compare them and replicate the changes on your local machine to match the remote and test locally).

    :)/>


    Thanks a lot for your help Martyr, the last paragraph in particular helped me solve this. I don't have access to the php.ini file but I assume it's more strict on including file names. The problem was that I accidentally used include 'DB.inc.php' as opposed to lowercase db.
  5. In Topic: DIC {again?} registered as a malware site

    Posted 30 Dec 2012

    I get redirected to popcash.net just a split-second after every single page on dreamincode loads. I'm browsing by using the "stop-loading-this-page" feature consistently.

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Programming Languages:
C#, PHP, MySQL, MSSQL

Contact Information

E-mail:
Private

Friends

Comments

Page 1 of 1
  1. Photo

    Nublet Icon

    18 Oct 2012 - 11:31
    "Tenderfoot has no profile comments yet. Why not say hello?"
    Hello c:
Page 1 of 1