Jump to content
MakeWebGames

stryker

Members
  • Posts

    146
  • Joined

  • Last visited

    Never

stryker's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Re: Advertising www.clickzvault.net is a good place to advertise.
  2. Parameters: Table: Name of table to update Data: array of $field->$value with new values Id Field: Name of field to use as ID field Id Value: Value of ID field   function mysql_update_array($table, $data, $id_field, $id_value) { foreach ($data as $field=>$value) { $fields[] = sprintf("`%s` = '%s'", $field, mysql_real_escape_string($value)); } $field_list = join(',', $fields); $query = sprintf("UPDATE `%s` SET %s WHERE `%s` = %s", $table, $field_list, $id_field, intval($id_value)); return $query; }
  3. Re: MCCODES + Graphic to globally change it you need to so so in your header file
  4. Re: Texas Hold 'Em Mod i been working on a php/ajax powered texas holdem script since july.....only got the core junk done
  5. Re: [TGM] Federal Jail Court System [TGM]   the main problem is the install instructions they are not complete and poorly done, if cronus would learn to type it out the right way then no one would have problems.
  6. Re: [free] AJAX Notepad v2 save as updatenotepad.php <?php include "globals.php"; if($_GET['text']) { $text=$_GET['text']; $text=mysql_real_escape_string($text); $text=strip_tags($text); $db->query("UPDATE users SET user_notepad='$text' WHERE userid=$userid"); } else { echo "ERROR!"; } $h->endpage(); ?>   Replace This if(isset($_POST['pn_update'])) { $db->query("UPDATE users SET user_notepad='{$_POST['pn_update']}' WHERE userid=$userid"); $ir['user_notepad']=stripslashes($_POST['pn_update']); print "<hr>[b]Personal Notepad Updated![/b]"; } print "<hr width='400'>Your Personal Notepad:<form action='index.php' method='post'> <textarea rows='10' cols='50' name='pn_update'>".htmlspecialchars($ir['user_notepad'])."</textarea> <input type='submit' value='Update Notes' /></form>";   With This //Created by oxidati0n. print <<<TXT <div align="center" id="message"></div> <iframe width=10 height=10 frameborder=0 marginheight=0 margin=0 name="finish" id="finish"></iframe> <form onsubmit="UpdateNotepad()"> Notepad: <textarea id="notepad" width=60 height=25>{$ir['notepad']}</textarea> <input type="submit" value="Submit" id="lkme"> </form> TXT;   In header.php Find ?>   After Add <script> <!-- function UpdateNotepad() { var locme=document.getElementById('lkme'); var mess=document.getElementById('message'); var content=document.getElementById('notepad').value; locme.disabled = true; locme.value = "Notepad Updated!"; finish.location.href = "updatenotepad.php?text=".content; mess.innerHTML = "<font color=red>Notepad Updated Successfully</font>"; } //--> </script>
  7. stryker

    HTML Function

    <?php function html($element, $attributes=false, $tabs=0, $newline=false) { // Number of spaces to use for tabs $tabstop = 4; // Check to see if any tabs are needed if($tabs > 0){ $tab = $tabstop * $tabs; for($x = 0;$x < $tab;$x++){ $spaces .= " "; } } print "$spaces<"; // Do we need to print a new line at the end if($newline == true){ $new = "\n"; } // print $element; // Do we have any attributes we need to add if($attributes){ $args = split(" ",$attributes); for($x = 0;$x < count($args);$x++){ $i = split("=",$args[$x]); if(strtoupper($i[0]) == "NOWRAP"){ print " nowrap"; } else if(strtoupper($i[0]) == "SELECTED"){ print " selected"; } else if(strtoupper($i[0]) == "CHECKED"){ print " checked"; } else{ print " $i[0]=\"$i[1]\""; } } } // Finish up print ">$new"; } // Example html("html", "", "", true); html("head", "", 1, true); html("title", "", 2); print "Example"; html("/title", "", 0, true); html("/head", "", 1, true); html("body", "bgcolor=white", 1, true); print "Hello World!\n"; html("/body", "", 1, true); html("/html", "", 0, true); ?>
  8. Re: [Free] [V1] Guess What Cup? (Casino Game) why did you make a free version of mine and oxi's pick 3 mod?
  9. Re: Adding crimes and cities in v2   you just told everyone how legit your game is.....not very
  10. Re: [Free] [v1] User Verification [Captcha] this looks very familar
  11. Re: SQL Injections well if they can't get what they want through sql injections or xss attacks then most likely they will try to brute force your server
  12. Re: [FREE] Alarm clock [v1.1 v2 v1] you can set it to goto a banner clients site every 15 mins or so, and open up in a new window, that way if players don't want to see ads they can pay not to see them
  13. Re: Drug Place so all you did was edit the bar mod?
  14. Re: CrystalShop Mod!! Free!! tthere is no point making this v2 since the shopping system is differant
  15. Re: Problem loading brushes. tlp files work only for gimp zbrush and paintshop
×
×
  • Create New...