User Profile

Collapse

Profile Sidebar

Collapse
Phill
Phill
Last Activity: Sep 13 '13, 10:45 PM
Joined: Feb 10 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Phill
    replied to Exception handling
    in C
    You should really include your code.. You are probably compiling as c and not C++
    See more | Go to post

    Leave a comment:


  • Phill
    started a topic C++ Reading in 16bit Audio File - data size not correct
    in C

    C++ Reading in 16bit Audio File - data size not correct

    I'm attempting to read in .wav files, however, whenever I try to read in a 16Bit audio file, the "data" chunk size is not correct, however, for an 8bit file it is correct. The code is below:

    Code:
     #pragma pack(push, 1)
        struct s_riff_hdr
        {
          char id[4];
          uint32_t size;
          char type[4];
        };
    
        struct s_chunk_hdr
        {
           char
    ...
    See more | Go to post

  • Phill
    replied to PHP login script displays blank
    in PHP
    Code:
     $open_data = connect_dbase("login");
    Don't understand why you have this. Wouldn't it just be:

    Code:
    connect_dbase("login");
    OR put your sql as:

    Code:
    $query = mysql_query("SELECT * FROM users WHERE userid = '$username'", $open_data);        
                $rows = mysql_numrows($query);
    mmm
    See more | Go to post

    Leave a comment:


  • Phill
    replied to PHP login script displays blank
    in PHP
    I think your problem is your connection file. Try requiring it rather than including it. Also, make sure the details are correct. Tested it and it works fine on my server.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...