I cant add in my database without error?

<?php ini_set('display_errors', 'On'); error_reporting(E_ALL); $con= mysqli_connect('localhost','test','test','id10491325_test'); $name=$_POST['name']; $memo=$_POST['memo']; $sources=$_POST['sources']; $contact=$_POST['contact']; $wb=$_POST['wb']; $rdate=$_POST['rdate']; $w=substr ($wb, 0); // pre defined function of php $m=date('m'); // Get the month $y=date('y'); // Get the dat $d=date('d'); // Get the Year // Get the rows count $GetSidNo=mysqli_query($con,"SELECT * FROM `REPORT` "); $GetSidNo1=mysqli_num_rows($GetSidNo); $invID = str_pad($GetSidNo1, 4, '0', STR_PAD_LEFT); $references=$w.$y.$m.$d.$invID; echo ''; echo ""; $t=time(); mysqli_query($con,"INSERT INTO `REPORT` (`reference`, `name`, `memo`, `sources`, `contact`, `images`, `wb`, `rdate`, `data`) VALUES ('$reference', '$name', '$memo', '$sources', '$contact', '$images', '$wb', '$rdate', '$data')"); ?>

ini_set(‘display_errors’, ‘On’);
error_reporting(E_ALL);
$con= mysqli_connect(‘localhost’,‘id10491325_yo’,‘testing25’,‘id10491325_report’);

$name=$_POST[‘name’];
$memo=$_POST[‘memo’];
$sources=$_POST[‘sources’];
$contact=$_POST[‘contact’];
$wb=$_POST[‘wb’];
$rdate=$_POST[‘rdate’];

$w=substr ($wb, 0); // pre defined function of php
$m=date(‘m’); // Get the month
$y=date(‘y’); // Get the dat
$d=date(‘d’); // Get the Year

// Get the rows count
$GetSidNo=mysqli_query($con,"SELECT * FROM REPORT ");
$GetSidNo1=mysqli_num_rows($GetSidNo);
$invID = str_pad($GetSidNo1, 4, ‘0’, STR_PAD_LEFT);

$references=$w.$y.$m.$d.$invID;

echo ’';
echo "";

$t=time();

mysqli_query($con,“INSERT INTO REPORT (reference, name, memo, sources, contact, images, wb, rdate, data) VALUES (’$reference’, ‘$name’, ‘$memo’, ‘$sources’, ‘$contact’, ‘$images’, ‘$wb’, ‘$rdate’, ‘$data’)”);

You’ve failed to include your URL.

Maybe

Can assist?