What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-02-24 17:05:02
how to make a sign-up database
<?php session_start(); // initializing variables $username = ""; $email = ""; $errors = array(); // connect to the database $db = mysqli_connect('localhost', 'root', '', 'registration'); // REGISTER USER if (isset($_POST['reg... Add solution -
PHP 2022-02-18 00:20:11
The key "initial" is not recognized and ignored.
<?php include "connection.php"; include "header.php"; ?> <!DOCTYPE html> <html> <head> <title>Feedback</title> <link rel="stylesheet" type="text/css" href="style2.... Add solution -
SQL 2021-11-16 16:45:21
output data in sql
<?php /* Connect to your database */ $con = mysqli_query("hostname", "username", "pwd", "database"); /* Select Columns from table*/ $sql = "SELECT * FROM `TABLE`"; /* Query your SQL code t... Add solution -
Other 2021-11-06 12:09:08
mysqli_query print result
if (isset($_POST['0'])) { $sql = "SELECT email FROM CommercialEmails WHERE articleid = '$_POST[article]' AND dripid = 1 AND sent='a'"; $resultsd1 = mysqli_query($conn, $sql); while ($row = mysqli_fetch_assoc($resultsd1)) { echo $row['em... Add solution -
-
PHP 2021-10-14 19:36:09
return multiple rows from mysqli php and encode JSON
<?php $dashboard_content_token = $_REQUEST["dashboard_content_token"]; $token = "g4"; require(cc_scripts/connect.php); $sql = "SELECT * FROM `dashboard_content`"; $check = strcmp("$token", &... Add solution -
PHP 2021-10-08 15:48:04
bar chart in js,php
<?php include("db.php"); $query = "select jan,feb,march,april,may,june,july from saleschart"; $result = mysqli_query($conn,$query); if(mysqli_num_rows($result) >= 1) { while... Add solution