No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
import random import time badmStudentsF = ["FNAME1","FNAME2","FNAME3","FNAME4","FNAME5"] badmStudentsM = ["MNAME1","MNAME2","MNAME3","MNAME4","MNAME5","MNAME6","MNAME7","MNAME8", "MNAME9", "MNAME10","MNAME11"] random.shuffle(badmStudentsM, random.random); random.shuffle(badmStudentsF, random.random); print "HackLab Groups : " + time.strftime("%Y-%m-%d %H:%M") print "++++++++++++++++++++++++++" for i in range(0,len(badmStudentsM),1): if i == 4 or i == 8 or i == 12 or i == 16 : print "------------------------------" for … |
|
Hi there I am trying to add some data from a form into a MySQL database and it doesn't seem to been working. Any help would be appreciated. # PHP # <?php if(isset($_POST['add'])) { $dbhost = 'localhost'; $dbuser = ''; $dbpass = ''; $conn = mysql_connect($dbhost, $dbuser, $dbpass); if(! $conn … |