Jump to content

BillyBoB

Members
  • Posts

    630
  • Joined

  • Last visited

    Never

Everything posted by BillyBoB

  1. ok well i still want to know how to do it :)
  2. yea i know but it would keep the speed up on my site cuz i wouldnt have a bunch of slow ppl
  3. optikal media at [url=http://www.optikal-media.com/]http://www.optikal-media.com/[/url]
  4. i have like -5 karma cuz somone hates me lol SMITE ME AL MIGHTY SMITER!!!!!!!!!!! lol
  5. um heres a question do u think it wont work if there isnt ne ips in there ?
  6. ok im having a weird error with a code that somone gave me and wanted to see if somone could help heres the code: [code] <?php   ob_start();   $conn = mysql_connect("localhost","user","pass");   mysql_select_db(database) or die(mysql_error());   $logged = MYSQL_QUERY("SELECT * from users WHERE id='$_COOKIE[id]' AND password = '$_COOKIE[pass]'");   $logged = mysql_fetch_array($logged);   $fffquery = mysql_query("SELECT * FROM banned ");   $bannedips = mysql_fetch_array($fffquery);   if(in_array($_SERVER['REMOTE_ADDR'], $bannedips)) {  // this is line 9 print("You have been banned from this website and are unable to view it."); exit();   } ?> [/code] and heres the error: [code] Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/dreamsh/public_html/config.php on line 9 [/code]
  7. thats why i used the first ex
  8. can i ban isps ? cuz then i could just ban all the dial up isps and get over that small glitch
  9. i didnt want to post here cuz everyone hates me but i cant find how to fix it heres the code [code] <?php   ob_start();   $conn = mysql_connect("localhost","user","pass");   mysql_select_db(database) or die(mysql_error());   $logged = MYSQL_QUERY("SELECT * from users WHERE id='$_COOKIE[id]' AND password = '$_COOKIE[pass]'");   $logged = mysql_fetch_array($logged);   $fffquery = mysql_query("SELECT * FROM profile WHERE ip='$_SERVER['REMOTE_ADDR']'") or die(mysql_error());// this is line 7   $coninfo = mysql_fetch_array($fffquery);   if($coninfo[banned]=="yes")   { echo("You are banned!");   } ?> [/code] heres the error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/dreamsh/public_html/config.php on line 7
  10. is there an site that i can goto where i can get info on how to block ips in php script the blocked ips will be in a database plz tell me thanks
  11. wtf dude i do that all the time its all good thats the point of using \ slashes duh....
  12. use like echo("<img src=\"imageurl.ext\" />"); try this instead of putting it into a varible
  13. i want to store the users ip in a table called profile and a colum called ip is there a way so when the user logs in it stores there ip?
  14. me it makes me look bad  :'( :'(
  15. or u can just use the if statements with else attached as in: [code] <?php if($pass!=$pass2) {   echo ("Passwords don't match!"); }else{   if(!eregi("[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}",$email))   {       echo("Invaild email!");   }else{       //go on from here   } } ?> [/code]
  16. no wonder u have 2000 + post uve been here for almost 2 years lol i just started this mourning early
  17. will u plz tell me how the karma works i dont get it im usually pretty nice and isnt karma like how u think about other ppl if so why do i have -2
  18. i tried that but it didn't work b4 lol and i know why cuz im not that smart awake with only 5-6 hours or sleep cuz i didnt put $i++ lol stupid me lol
  19. im tring to make a page where the members are sorted by abc order then beside there name it has a number and it goes in order 1 2 3 4 5 6 ... etc heres what i have if u can make it echo a number before the username: [code] <?php $getuser = mysql_query("SELECT * from users order by username"); while ($user = mysql_fetch_array($getuser)) { echo (" <a href=\"members.php?user=$user[username]\">$user[username]</a><br />\n"); } ?> [/code] plz help thanks
  20. because i like to waste my time typing all that stuff on my script lol kiding idk
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.