What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-10 23:41:02
image crop in htaccess
// Ratio cropping $offsetX = 0; $offsetY = 0; if (isset($_GET['cropratio'])) { $cropRatio = explode(':', (string) $_GET['cropratio']); if (count($cropRatio) == 2) { $ratioComputed = $width / $height; $cropRatioComputed = (float) $cropRati... Add solution -
PHP 2021-09-10 17:14:03
PHP code for profile page add, edit, delete member?
<?php require('db.php'); include("auth.php"); $status = ""; if(isset($_POST['new']) && $_POST['new']==1){ $trn_date = date("Y-m-d H:i:s"); $name =$_REQUEST['name']; &... Add solution -
-
PHP 2021-09-08 09:39:01
create a random question generator php
<?php //Connect with mysql $db = new mysqli("host","user","pass","db"); //Perform the query to choose random questions $query = $db->query("SELECT * FROM `table` ORDER BY RAND() LIMIT 2... Add solution -
PHP 2021-09-07 03:12:03
login page php mysql check if user is verified in the database before user can be logged in
// call the login() function if register_btn is clicked if (isset($_POST['login_btn'])) { login(); } // LOGIN USER function login(){ global $db, $username, $errors; // grap form values $username = e($_POST['username']); $password = e($_POST['passwo... Add solution -
PHP 2021-09-06 12:31:02
base url in php
Try this: <?php echo "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; ?> Learn more about the $_SERVER predefined variable. If you plan on using https, you can use this: function url(){ return sprintf( "%s://%s%... Add solution
Best helpers
Blank
+5
Hwsolutions
+5
SYJ
+5
A. Pelicker
+5
KMC
+5
Jonjie
+5
Paul Knight
+5
WYSIWYG
+5
Required
+5
Saylestyler
+5
Deverejones
+5
Frank Jaeger
+5