What do you want to save?
Add Code snippet
New code examples
-
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 -
PHP 2022-02-16 07:25:05
php code for fetching data from database
<?php ////////////neha jaiswal/// $serve="localhost"; $user="root"; $password=""; $db="neha"; $con=mysqli_connect($serve,$user,$password,$db); if ($con) { echo "connection success"; }else {echo &q... Add solution -
PHP 2022-01-30 08:15:09
php sql search form
<?php $localhost = "localhost"; $username = "root"; $password = ""; $dbname = "samueldb"; $con = new mysqli($localhost, $username, $password, $dbname); if( $con->connect_error){ die('Error: ' . $con->c... Add solution -
PHP 2022-01-27 04:46:23
php prepared statement select
// Multiple rows: $sql = "SELECT * FROM users WHERE id=?"; $stmt = $conn->prepare($sql); $stmt->bind_param("i", $id); $stmt->execute(); $result = $stmt->get_result(); while ($row = $result->fetch_assoc()) { echo $ro... Add solution -
PHP 2021-11-20 21:46:17
php force download csv
header('Content-Type: text/csv'); header('Content-Disposition: attachment; filename="ramais.csv"'); $saida = $stmt->fetchAll(PDO::FETCH_ASSOC); echo "id;nome;ramal;email;setor;diretor\r\n"; foreach ($saida as $s){ fore... 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