hiddenghost's Profile User Rating: -----

Reputation: 39 Craftsman
Group:
Contributors
Active Posts:
621 (0.36 per day)
Joined:
15-December 09
Profile Views:
7,269
Last Active:
User is offline Apr 30 2014 08:22 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Linux
Favorite Browser:
FireFox
Favorite Processor:
AMD
Favorite Gaming Platform:
Playstation
Your Car:
Who Cares
Dream Kudos:
100

Latest Visitors

Icon   hiddenghost nuking tribbles

Posts I've Made

  1. In Topic: Sending text messages

    Posted 10 Apr 2014

    View Postpanzerfaust67, on 10 April 2014 - 09:51 PM, said:

    No id have to install it what do you recommend

    Haha. I don't use php mail so I'm not a good person to ask.

    Just to get this to work I think any old mail server will do.
    Check this.
    You may already have one installed. If so make sure you have it configured properly.
  2. In Topic: Insert data into Database using PHP ?

    Posted 10 Apr 2014

    View Postnarutoninjakid, on 10 April 2014 - 09:48 PM, said:

    Ok i removed the semi colon.

    Link to page if you want to check it out : My link

    I used this on my last work and it worked perfectly. So confused

    Sometimes php is wonky like that. It's important to make sure you don't get used to undefined behavior like this.
    Even if it's defined it might be bad. It's a wacky language. Make sure you don't fall into it's traps.
  3. In Topic: Insert data into Database using PHP ?

    Posted 10 Apr 2014

    Also for testing:

    Echo the results of everything.
    All variables, all error codes, all function return values.
    Everything in your php should be printing. At least until you're sure it all works.

    Check to see if your syntax matches the syntax on the php documentation site.

    Place a __LINE__ constant before and after every block, and function call.
    Use like this:

    echo __LINE__;
    
  4. In Topic: Insert data into Database using PHP ?

    Posted 10 Apr 2014

    BTW is this homework?

    If so you should go though the entire thing line by line character by character, and rewrite the entire thing. This would still be good if it's not homework.

    Copy the whole file by hand looking for little things that could be tripping up the code. You will have to do this even when you're experienced and think you know what you're doing sometimes.

    Run each section of new code by itself. Use blocks to decide what code should be added. Block by block run, and test the code.
  5. In Topic: Insert data into Database using PHP ?

    Posted 10 Apr 2014

    Also here you have a semicolon where it shouldn't be.
    if($operation == "insert"){
    	    $sql = "INSERT INTO Members (newMemberName, newMemberAddress, newMemberTelephonenumber, newMemberAge, newMemberStartdate, newMemberNumber)VALUES ('$newMemberName','$newMemberAddress','$newMemberTelephonenumber','$newMemberAge','$newMemberStartdate','$newMemberNumber')";
    	    echo 'good insert';
    	};<--------Glaring semicolon
    

My Information

Member Title:
D.I.C Addict
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Location:
Iowa
Interests:
Programming, oop, computer science, and math for technical.
Games, movies and hanging out with my girlfriend for just plain fun.
Learning.
Programming Languages:
Know: Javascript, php
Learning: C++, C, OpenGL, Assembly

Contact Information

E-mail:
Private
Website URL:
Website URL  http://

Friends

Comments

Page 1 of 1
  1. Photo

    Duckington Icon

    14 Dec 2011 - 11:07
    You broke the forum with that thread :-O
Page 1 of 1