-
Posts
2,210 -
Joined
-
Last visited
-
Days Won
47
Content Type
Profiles
Forums
Events
Everything posted by sniko
-
You could make this beneficial by placing all the 2k accounts in a gang and create a mission from it by killing all the 2k accounts etc Also, Did they change IP per signup? If not, add this: $already = $db->query("SELECT `userid` FROM `users` WHERE `signup_ip` = ". $_SERVER['REMOTE_ADDR']); if( $db->num_rows($already) ) { echo 'You\'ve already an account on '. $set['game_name']; $h->endpage(); exit; }
-
Oooops, sorry //Required Courses $reqCourses = array(); //Populate for($i = 1;$i<= 72; $i++) { $reqCourses[] = $i; } $verdict = null; $get = $db->query("SELECT * FROM coursesdone WHERE userid = '{$ir['userid']}'"); while( $verdict == null ) { while($r2 = $db->fetch_row($get) ) { if( !in_array($r['courseid'], $reqCourses) ) { $verdict = FALSE; } } if($verdict == null) { $verdict = TRUE; } } echo ($verdict ? "You can do it!" : "You can't do it!");
-
Have you had a look at at edit 2?
-
Woah, that's a lot of same-gates being used! <?php //Create an array $courses = array(); //Populate for($i = 1; $i<=72; $i++) { $courses[] = $i; } //Check if( in_array($r2['courseid'], $courses) ) { echo 'This'; } else { echo 'This'; } ?> Try that? Here is it being executed: http://codepad.org/LkZScRXm Sorry Djk Edit - This basically acts as an OR gate. - If their is an occurrence in the array, it will display 'Yep'. I assumed that is what you're after, if not, I'll make amendments. Edit2 - Closer look, my original code isn't what you're after. - Not tested, I think it should work :) //Required Courses $reqCourses = array(); //Populate for($i = 1;$i<= 72; $i++) { $reqCourses[] = $i; } $verdict = null; $get = $db->query("SELECT * FROM coursesdone WHERE userid = '{$ir['userid']}'"); while( $verdict == null ) { while($r2 = $db->fetch_row($get) ) { if( !in_array($r['courseid'], $reqCourses) ) { $verdict = FALSE; } } elseif($verdict == null) { $verdict = TRUE; } else { $verdict = $verdict; } } echo ($verdict ? "You can do it!" : "You can't do it!");
-
Either use the switch() method, or a different page... <?php include_once('globals.php'); switch($_GET['action']) { case 'choose_a_grade' : choose_a_grade(); break; case 'chosen_a_grade' : chosen_a_grade(); break; default: choose_a_grade(); break; } function choose_a_grade() { /* -- Paste the script that gives the user the ability to choose grade -- Ensure you include the action in the href of the chosen grade, for example <a href="?action=chosen_a_grade&grade=x">Grade X</a> */ } function chosen_a_grade() { /* -- Paste the script that gives the user the information after they've chosen a grade */ } ?>
-
In the code, your grammar is incorrect - not a good view to players, anyway, I'll fix that up for you ;) print "Hello and welcome to school. Before doing a course, you must first select a grade.... <table width=75% cellspacing=1 class='table'><tr style='background:gray;'><th>Grade</th><th>Required Courses Complete</th><th>Enter</th></tr>"; while($r=$db->fetch_row($q)) { /* Is it `grade_id` or `crGRADE` */ $enter="<a href='education.php?gcourses={$r['grade_id']}'>Enter</a>"; print "<tr><td>{$r['grade_name']}</td><td>{$r['crREQUIRED']}</td><td>$enter</td></tr>"; } print "</table>"; Now, do this /* Filter & Sanitize */ $grade = filter_var($_GET['gcourses'], FILTER_VALIDATE_INT) ? abs( (int) $_GET['gcourses'] ) : 1; /* Fetch them */ $get = $db->query("SELECT [... something ...] FROM [... table ...] WHERE `crGRADE` = ". $grade); while( $r = $db->fetch_row($get) ) { /* Display data */ } I think that's what you're after ;)
-
Did my suggestion help?
-
Because I'm Indie ;) haha, sure, I'll revert to the mainstream pasters.
-
No worries Bladewolf (: Djk, code pad loads wonders for me. It is that bad?
-
Why not put them in tiers? For example; Add a new column to the courses table, named `tier` (numeric) Add a new column to the users table, named `tier` (numeric) (default: 1) Put each course into a `tier` (1, 2, 3, 4...) When starting a course, that isn't `tier`= 1, do the following check. When completing a course, do this process. That sir, I think, should do the trick.
-
True. The game[engine] is still being created. The thought statement was about the details posted above.
-
Some game features have been redrafted and have started development. We are extremely excited about this game, and the others running on the custom engine. Any thoughts? Also, sorry for the lack of updates on social mediums.
-
Thanks for the feedback! Also, regarding the price. I'm going to create an update sometime next week, which will allow you (staff) to do specific things...and therefore will bump the price up, if it were lowered. To those who have already purchased this modification, the update will be free to you! Thanks, sniko
-
Are you... Struggling to find members? Struggling to catch peoples eye? Wanting to find a new way to advertise? If so, this modification is for you! For £20.00 Great British Pounds you can have a new system up, in a matter of minutes that will help you overcome the questions above with ease! Introducing the player cards Choose from 3 different stock styles Alter the settings, and make it yours! Two styles for a regular member and a premium member (donator) Dynamic data! - You increase in a level, it will show in the image, without re-uploading! Users can put it on third-party sites, increasing your traffic! A unique player card is given to each user, automatically This system costs £20.00 Great British Pounds, payments accepted through PayPal: [email protected] * Please PM me your transaction ID and your e-mail, and I'll send it within 24 hours! If you'd like more information, please reply, or PM me! Thank you, sniko
-
Yeah, that's what I meant
-
Would it add it into the specific file that you turned the link off? For example, item ID "x" couldn't be sent by using /senditem.php&item=x&qty1&user=y
-
Awesome :)
-
That is one cool looking template! Keep up the good work!
-
No worries :)
-
$array = (1 => "xxx", 2 => "yyy"); echo '<select name="currency">'; foreach($array as $id => $name) { echo '<option value="', $id ,'">', $name ,'</option>'; } echo '</select>'; And then of course, use the following to validate; if( !in_array($_POST['currency'], $array) ) { echo 'Please choose a currency!'; }
-
http://net.tutsplus.com/tutorials/php/php-5-4-is-here-what-you-must-know/
-
How about a dropdown list to select the currency? System looks good though ;)
-
Happy Birthday Dabomstew!
-
That would fail.
-
I've found a pretty good site, where everything is 5$ - fiverr Here is an interesting one for everyone; 10 Security Tests + Report ..And a useful category (php) Social Marketing Browse, and enjoy :)