CTphpnwb's Profile User Rating: *****

Reputation: 2889 Guru
Group:
Mentors
Active Posts:
10,010 (4.6 per day)
Joined:
08-August 08
Profile Views:
58,348
Last Active:
User is offline Today, 12:17 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Mac
Favorite Browser:
Safari
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Toyota
Dream Kudos:
350
Expert In:
PHP

Latest Visitors

Icon   CTphpnwb has not set their status

Posts I've Made

  1. In Topic: connection to database server

    Posted 24 Jul 2014

    View Postnoobydoods, on 23 July 2014 - 03:23 AM, said:

    why is it 11.22.33.61 and not 11.22.33.66 ? is that what is causing the error? or is there something else?

    61 is the address of the server running php (and probably Apache) and 66 is where the database lives. If the database isn't set up to accept requests from addresses other than localhost you won't get connected.
  2. In Topic: Passing Ajax result to PHP SQL Query

    Posted 23 Jul 2014

    Your code is highly vulnerable to SQL injection attack. Do a web search on it.

    There's a great PDO tutorial here. Read it, then read it again, then study it. Finally, use it. Do not pass Go, do not collect $200, do not do any other PHP coding until you know it.
  3. In Topic: Passing Ajax result to PHP SQL Query

    Posted 23 Jul 2014

    DO NOT USE DEPRECATED MySQL functions!!! Use prepared statements in PDO or MySQLi.
  4. In Topic: C optimizations

    Posted 21 Jul 2014

    View Posttbandtg1, on 21 July 2014 - 01:25 PM, said:

    No inline is being used.

    How do you know? The compiler is free to inline or not, regardless of what you ask it to do.
  5. In Topic: Write bit function

    Posted 21 Jul 2014

    It would be good if you posted your solution. Something simple that demonstrates it, like:
    #include <iostream>
    
    int main(int argc, const char * argv[])
    {
    	int test, bita = 2, bitb = 4;
    
    	test = 0;
    	for (int bitnum = bita; bitnum <= bitb; bitnum++) {
        test += 1<<bitnum;
    	}
    
    	std::cout << "test\t" << test << std::endl;;
    	return 0;
    }
    
    

My Information

Member Title:
D.I.C Lover
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Interests:
Looking for php programming work.
Years Programming:
34
Programming Languages:
Experience is important, yet at the same time it's over-rated.

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://

Comments

Page 1 of 1
  1. Photo

    CTphpnwb Icon

    31 Mar 2010 - 18:50
    Please post programming questions in the appropriate forums.
Page 1 of 1