Recent content by Holms

  1. H

    please i need a user input validation, maybe a preg_match or something PHP?

    i need a preg match or something else i need to filter al special characters )(*&^%$#@! and wierd things and numbers i have this one but does not work with the "%" : if(!preg_match("^[A-Za-z]+$^", $username)) and a email validation too or if you know something else more effective let me know...
  2. H

    PHP if the ID exist in a variable echo true..?

    i need to ask again, just to be sure: i have some thing like this: $IDS = "148,231,243,239,257,368,342,683,898"; // ids with acces // $ID_TO_CHEK = "148"; // the user id is 148 // my question is, how to check the id of $ID_TO_CHEK with all of the $IDS variable? i cant change anything i just...
  3. H

    .php How to verific if 'ids', match with visitor and if exist = true else false?

    i have a "friend_array" table, it has ids: "2,14,24,51,102,155,523,156" $friend_array = $printinfo["friend_array"]; $friendList = ""; if($friend_array != "") { $friend_array = explode(",", $friend_array); $friend_Count = count($friend_array); $friend_array = array_slice($friend_array...
Back
Top