Home Database values not showing on php server
Reply: 1

Database values not showing on php server

Mubashir Maqbool
Mubashir Maqbool Published in 2018-01-13 10:56:17Z

This question already has an answer here:

  • When to use single quotes, double quotes, and backticks in MySQL 10 answers
  • How to get mysqli error in different environments? 1 answer

I am new to PHP and web and I am trying to input values from HTML form.

The values that I input on HTML form are not showing on XAMPP server. How can I see them.

Below is the code I wrote to do that.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>


{  echo"not connected";}
{echo"not selected";}


       $sql="INSERT INTO data(Name,Father Name) VALUES('$a','$b')";
       {   echo" data inserted successfully ";}


I am getting following output. Output

Chris Muga
Chris Muga Reply to 2018-01-13 12:05:35Z

try changing all the data types of the fields on your table to VARCHAR

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.502265 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO