What do you want to save?
Add Code snippet
New code examples
-
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 -
ActionScript 2021-09-04 17:48:03
php get session variable from table
<?php // Start the session session_start(); ?> <!DOCTYPE html> <html> <body> <?php // Set session variables $_SESSION["color"]= "blue"; $_SESSION["animal"]= "dog"; ... Add solution -
Javascript 2021-09-01 03:40:01
Open URL while passing POST data with jQuery
$(button).click(function(){ var s_name=$("#txtbox").val(); $.post("http://localhost/AJAX/save_session.php", { student_name: s_name, }, function(data){ location.href='http://localhost/AJAX/result.php'; }); // On http... Add solution