dave_6_10's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
Contributors
Active Posts:
55 (0.02 per day)
Joined:
19-March 08
Profile Views:
2,094
Last Active:
User is offline Nov 14 2013 06:37 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Linux
Favorite Browser:
Chrome
Favorite Processor:
AMD
Favorite Gaming Platform:
PC
Your Car:
Nissan
Dream Kudos:
25

Latest Visitors

Icon   dave_6_10 has not set their status

Posts I've Made

  1. In Topic: Warning: stripslashes() expects parameter 1 to be string, array given

    Posted 9 Nov 2013

    Something like this?

    $connection = mysql_connect("$mysql_server","$mysql_user","$mysql_password") or die ("Unable to connect to MySQL server.");
    $db = mysql_select_db("$mysql_database") or die ("Unable to select requested database.");
    $isMagic = get_magic_quotes_gpc()
    foreach($_POST as $key=>$value) {
    	// IF POST VARIABLE NOT BLANK
    	if (empty($_POST[$key])) {
    		if($isMagic) {
    			$_POST[$key] = array($_POST[$key]);
    		}
    		// ESCAPE CHARACTERS
    		$_POST[$key] = trim(htmlspecialchars(htmlentities(mysql_real_escape_string($_POST[$key]), ENT_QUOTES)));
    	}
    }
    
    foreach($_GET as $key=>$value) {
    	// IF GET VARIABLE NOT BLANK
    	if (empty($_GET[$key])) {
    		if($isMagic) {
    			$_GET[$key] = array($_GET[$key]);
    		}
    		// ESCAPE CHARACTERS
    		$_GET[$key] = trim(htmlspecialchars(htmlentities(mysql_real_escape_string($_GET[$key]), ENT_QUOTES)));
    	}
    }
    

    You have been a fantastic help in this project. Thank you for your timely responses and wonderful feedback. How may I credit you in the credit roll of this project?
  2. In Topic: Warning: stripslashes() expects parameter 1 to be string, array given

    Posted 9 Nov 2013

    Warning: array_map() [function.array-map]: Argument #2 should be an array in

    attempting that throws me this error at log in. perhaps my $_POST is sometimes an array but not always?
  3. In Topic: What's your college

    Posted 28 Aug 2013

    I am currently attending college at Lord Fairfax Community College. I find the library computers here exceedingly useful at giving a slight buff to the amount of web traffic to my current website project CrowdGather which makes me wonder if any of the other users of this forum either A. attend college at LFCC also, or B. Use the computers at the library on their campus to boost site visits to their webpages. Any takers on this? :donatello:

My Information

Member Title:
D.I.C Head
Age:
32 years old
Birthday:
June 10, 1982
Gender:
Years Programming:
17
Programming Languages:
HTML,Python,Pascal,Basic,COBOL,Ada,LISP,others

Contact Information

E-mail:
Private
MSN:
MSN  d_hiett@hotmail.com
Website URL:
Website URL  http://www.richmonddaddy.com
Yahoo:
Yahoo  dave_6_10
Facebook:
http://facebook.com/richmonddaddycom

Friends

Comments

dave_6_10 has no profile comments yet. Why not say hello?