generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: i can make a thing so you can make groups

Previous Thread :: Next Thread 
ahhyeaehhmaybeohhno is not online. ahhyeaehhmaybeohhno
Joined: 09 Aug 2011
Total Posts: 574
04 Sep 2011 06:08 PM
if i wanted to make it so only users online can do it i can just add this:

$_SESSION['login'] because i set a session using mysql_fetch_assoc
but most of us here know php (hopefully) so it wouldnt matter

< form action = 'registergroup.php' method='get' >
group name < input type='text' name='group' >
< input type ='submit' name ='submit' >
< /form >

*puts in group name*
< ?php
$connection = mysql_connect('localhost','root','');
$data = mysql_select_database('website',$connection);
function a($slash){
$slash = mysql_real_escape_string($slash);
$slash = strip_tags($slash);
$slash = addslashes($slash);

return $slash;
}

$group = a$_POST['group'];

$check = array();

if(!$group){
$check[] = 'enter a group name';
}

if($group){
if(!ctype_alnum($group)){
$check = 'can only contain letters and numbers';
}
$ran = range(3,15);
if(!in_array(strlen($group))){
$check = 'group name has to be 3 - 15 letters';
}
}

if($group){
$sq = "SELECT * FROM `groups` WHERE `groupname` = '$group'";
$query = mysql_query($sq) or die(mysql_error());
if(mysql_num_rows($query) > 0){
$check = 'group name is taken';
}
}

if(count($check) > 0){
foreach($check as $checking){
echo $checking . '< br >';
}
} else {
$sql = "INSERT INTO `groups` (`groupname`) VALUES ('$group')";
$query2 = mysql_query($sql) or die(mysql_error());
echo 'your group is now in the database';
}
}
}

Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
04 Sep 2011 06:09 PM
*wish I knew what language that was and I could understand it*
Report Abuse
ahhyeaehhmaybeohhno is not online. ahhyeaehhmaybeohhno
Joined: 09 Aug 2011
Total Posts: 574
04 Sep 2011 06:09 PM
i said it at the top

its php
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
04 Sep 2011 06:09 PM
@Arceus: You're a horrible impostor. LocalChum = PHP person
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
04 Sep 2011 06:10 PM
sad phace
Report Abuse
ahhyeaehhmaybeohhno is not online. ahhyeaehhmaybeohhno
Joined: 09 Aug 2011
Total Posts: 574
04 Sep 2011 06:10 PM
wow i just noticed an error


change 'get' in the form to 'post'

lol
Report Abuse
ahhyeaehhmaybeohhno is not online. ahhyeaehhmaybeohhno
Joined: 09 Aug 2011
Total Posts: 574
04 Sep 2011 06:12 PM
hey guyz i like tew buump
Report Abuse
TheCapacitor is not online. TheCapacitor
Joined: 19 Jan 2011
Total Posts: 7045
04 Sep 2011 06:15 PM
@aymon: Are you dap?
Report Abuse
ahhyeaehhmaybeohhno is not online. ahhyeaehhmaybeohhno
Joined: 09 Aug 2011
Total Posts: 574
04 Sep 2011 06:22 PM
im guessing youre referring to me, but no i am not dap
Report Abuse
ahhyeaehhmaybeohhno is not online. ahhyeaehhmaybeohhno
Joined: 09 Aug 2011
Total Posts: 574
04 Sep 2011 06:22 PM
im guessing youre referring to me, but no i am not dap

and im getting a 'service is unavailable'?
Report Abuse
ahhyeaehhmaybeohhno is not online. ahhyeaehhmaybeohhno
Joined: 09 Aug 2011
Total Posts: 574
04 Sep 2011 06:23 PM
oh double post, sorry

btw i love gran torino its on right now ;)
Report Abuse
ahhyeaehhmaybeohhno is not online. ahhyeaehhmaybeohhno
Joined: 09 Aug 2011
Total Posts: 574
04 Sep 2011 08:23 PM
plz i need ppl to talk to
Report Abuse
TheCapacitor is not online. TheCapacitor
Joined: 19 Jan 2011
Total Posts: 7045
04 Sep 2011 08:27 PM
*Hits with stun baton*
Report Abuse
ahhyeaehhmaybeohhno is not online. ahhyeaehhmaybeohhno
Joined: 09 Aug 2011
Total Posts: 574
04 Sep 2011 08:48 PM
why did you hit yourself with a stun baton
Report Abuse
xSIXx is not online. xSIXx
Joined: 06 Aug 2010
Total Posts: 9202
04 Sep 2011 08:51 PM
ahhhhh yea
ohhhhh no
ehhhhh maybe
Report Abuse
ahhyeaehhmaybeohhno is not online. ahhyeaehhmaybeohhno
Joined: 09 Aug 2011
Total Posts: 574
04 Sep 2011 08:54 PM
cmon guys talk about my rather easy php and sql script instead of groups on roblox
Report Abuse
jode6543 is not online. jode6543
Joined: 16 Jun 2009
Total Posts: 5363
04 Sep 2011 08:59 PM
"$group = a$_POST['group'];"

-THROW THE CHEEEEEEESSSSSEEEEEEEEEEEEE!!!-
Report Abuse
ahhyeaehhmaybeohhno is not online. ahhyeaehhmaybeohhno
Joined: 09 Aug 2011
Total Posts: 574
04 Sep 2011 09:01 PM
If you looked at it, I was calling the function on the $_POST[''];

lol read all of the code
Report Abuse
jode6543 is not online. jode6543
Joined: 16 Jun 2009
Total Posts: 5363
04 Sep 2011 09:41 PM
...
$group = a($_POST['group']);

-THROW THE CHEEEEEEESSSSSEEEEEEEEEEEEE!!!-
Report Abuse
ahhyeaehhmaybeohhno is not online. ahhyeaehhmaybeohhno
Joined: 09 Aug 2011
Total Posts: 574
04 Sep 2011 09:42 PM
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF-



CRAP HOW DID I MISS THAT
Report Abuse
xXKrystalzXx is not online. xXKrystalzXx
Joined: 22 Dec 2011
Total Posts: 51
31 Dec 2011 09:07 PM
lol i dont get
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
31 Dec 2011 09:09 PM
Eww.
Report Abuse
xSIXxStorage is not online. xSIXxStorage
Joined: 22 Aug 2010
Total Posts: 1811
31 Dec 2011 10:34 PM
@xXK

why did you bump this? moron.

@local

look at the dates, n00b.

@xSIXx

hai
Report Abuse
LocalDimensions is not online. LocalDimensions
Joined: 08 Oct 2011
Total Posts: 2929
01 Jan 2012 04:27 AM
oh i remember this account

he did well - until he got banned

Holo the wise wolf
Report Abuse
Megamatrixdude is not online. Megamatrixdude
Joined: 06 Dec 2009
Total Posts: 10939
01 Jan 2012 06:04 AM
lolo Arce00se didn't know it was php

[Co creator of the Siggy Automator] [Now son, don't touch that cactus!]
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image