Profile
Achievement
the_dev's Recent SnippetsTagged php
- All /
« Prev 1 Next »
Need a function to clean your _POST array before inserting into a database? Just pass $_POST to this function.
1
1101
posted 15 years ago by the_dev
It's easy to print out an array that is readable and with only one line of code. This can easily be turned into a nifty function.
1
630
posted 15 years ago by the_dev
Here is the correct way to turn your mysql results into an array. Forget the other nonsense of useless code. Why type out this long code: "for($i = 0; $array[$i] = mysqli_fetch_assoc($result); $i++) ;" when you can accomplish the same thing with m...
1
1012
posted 15 years ago by the_dev