我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

2个不同的表。 用户和成员显示有关一个的信息

I have these two tables in mySQL, patient and users. In users I have 10 different columns

(
1   id  
2   username    
3   password    
4   salt    
5   email   
6   price   
7   firstname   
8   lastname    
9   univers varchar(255)    
10  studentid    
11  mobphone        
12  treatment 
) 

and in patient I have 12 columns.

Upon logging in with a user account I want to be able to see what's in the patient table. And if I log in with a patient account I want to be able to see what's inside the user table.

How do I connect them?

近期文章

  • 致命错误:在非对象上调用成员函数fetch_assoc()
  • mamp服务器在mac上的空白页
  • PHP - exec()方法不执行
  • 在PHP中检查令牌以重置密码
  • 重定向到另一个地址
  • 使用Codenvy到OAuth谷歌与PHP
  • 交换MySQL数据库中的记录
  • php从xml下载多个.zip文件
  • 获取图片不包含再次下载
  • 按特定字符拆分文档,然后进一步拆分为变量
  • 使用不带形式的多个diemnstion数组运行jquery ajax
  • 如何使用来自其他bundle的fosuserbundle usermanager
  • db无法在php中连接
  • 为什么我需要PDOStatement :: nextRowSet和存储过程来获得结果?
  • Laravel过滤器未执行
  • Magento getModel('catalog / category')返回空类别名称,id和url
  • 如何根据此函数中的特定语句忽略行,该函数从文本文件中读取数据?
  • PHP - JSON没有输出
  • 使用Twig删除Staceyapp V.3中第一个和最后一个帖子的下一个/上一个链接
  • 多个图片上传php代码

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华