Home Database values not showing on php server
Reply: 0

Database values not showing on php server

user1690 Published in May 21, 2018, 9:17 am

This question already has an answer here:

  • When to use single quotes, double quotes, and back ticks in MySQL 11 answers
  • How to get MySQLi error information 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

You need to login account before you can post.

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

© 2016 Powered by mzan.com design MATCHINFO