User Profile

Collapse

Profile Sidebar

Collapse
W051
W051
Last Activity: Jun 16 '12, 07:01 PM
Joined: Mar 6 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • W051
    started a topic Using strings and if statements in C++
    in C

    Using strings and if statements in C++

    The problem with this code is that there are no errors showing, but when i compile the program, the if else statements do not carry out as they should do. Both if statements show the same answer, for example the second if statement. If I type Y or N then I get the same thing, 'You will now choose an event'. How do i get rid of this problem? Is char supposed to be used or string?
    Code:
    #include <iostream>
    #include <iomanip>
    ...
    See more | Go to post

  • W051
    replied to php/mysql
    in PHP
    thanks for your help, but i have it sorted now, by adding this to where i insert the data into the form. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">...
    See more | Go to post

    Leave a comment:


  • W051
    replied to php/mysql
    in PHP
    yes, if it helps i read somewhere that it might be to do with an outdated version of php? I am using Notepad to write my php code....
    See more | Go to post

    Leave a comment:


  • W051
    replied to php/mysql
    in PHP
    actually, i tried to add different ids into the table but i still get the error message...
    See more | Go to post

    Leave a comment:


  • W051
    started a topic php/mysql
    in PHP

    php/mysql

    I get the error of Duplicate entry '' for key 1 when running a mysql query
    this comes from a form that has textboxes and then tries to save to student table in mysql.

    Code:
    $id=mysql_real_escape_string($_POST['txtstudentid']);
    $password=mysql_real_escape_string($_POST['txtpassword']);
    $dob=mysql_real_escape_string($_POST['txtdob']);
    $firstname=mysql_real_escape_string($_POST['txtfirstname']);
    $lastname=mysql_real_escape_string($_POST['txtlastname']);
    ...
    See more | Go to post
    Last edited by Rabbit; Mar 6 '12, 11:39 PM. Reason: Please use code tags when posting code.
No activity results to display
Show More
Working...