插入数据但无法使用PHP查看mysql数据库localhost服务器上的数据 [英] Data inserted but cant see the data on mysql database localhost server using PHP

查看:59
本文介绍了插入数据但无法使用PHP查看mysql数据库localhost服务器上的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题是插入的数据没有显示在我的mysql数据库上localserver其重要的谢谢。



另一个问题是我想在我的mysql上收到一条消息数据库当我交换rfid卡时,我的本地主机上显示其标签号码我该怎么办呢请再次帮助谢谢。



我是什么尝试过:



the problem is that data inserted doesnt show on my mysql database on localserver its important thank you.

another problem is i want to receive a message on my mysql database n when i swap a rfid card its tag number is shown on my localhost how can i do that please please help thank you once again.

What I have tried:

<?php

include_once ("connect.php");

$write =("INSERT INTO id,name_rf,user_rf,point_rf,time  VALUES ('','MAAZ','908802','HU-45','NOW()')");



$res = mysql_query("SELECT name_rf,user_rf from myrfidtable1");


$data = mysql_fetch_assoc($res);
echo "data inserted into database";

//('id','name_rf','user_rf','point_rf','time')
?>

推荐答案

write =( INSERT INTO id,name_rf,user_rf,point_rf,time VALUES(' , '玛斯', '908802', 'HU-45', 'NOW()'));



write =("INSERT INTO id,name_rf,user_rf,point_rf,time VALUES ('','MAAZ','908802','HU-45','NOW()')");


res = mysql_query( SELECT name_rf,来自myrfidtable1的用户_rf);


res = mysql_query("SELECT name_rf,user_rf from myrfidtable1");


data = mysql_fetch_assoc(
data = mysql_fetch_assoc(


这篇关于插入数据但无法使用PHP查看mysql数据库localhost服务器上的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆