duande1146 2014-10-13 02:50
浏览 42
已采纳

如果我在CodeIgniter中使用函数或类来生成用于存储用户信息的表,那么它是安全的还是可能的?

I'm try to create my own algorithm to generate table rather than insert their data into existing table in database. I'm using WAMP Server with latest PHP, Mysql, Apache version to store my employer and employee information specially they will have one table to store Jobs information and I want to use CodeIgniter class to generate it(table) for each user (employee, employer) when their click generate their table for their job information after that their can input,update,delete, as they want to post their jobs in its table'row or cell or column.

Should I build table generator to create one table for each user to store their jobs information that is avoid Database slow down when my job table got more than 5000 rows or more than this in only one table?

Should I store my information if I need more than 5000 rows of my data into only on table in Mysql Db?

  • 写回答

1条回答 默认 最新

  • doudou201701 2014-10-13 03:11
    关注

    Generally speaking it's not good practice to dynamically create tables with PHP. Your tables will be hard to maintain in the long run. There are reasons other than security to avoid this, but yes, it is possible.

    Instead of creating a new jobs table for each user, why not just create a single jobs table with a user_id row so you know which jobs belong to which users.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Qt下使用tcp获取数据的详细操作
  • ¥15 idea右下角设置编码是灰色的
  • ¥15 全志H618ROM新增分区
  • ¥20 jupyter保存图像功能的实现
  • ¥15 在grasshopper里DrawViewportWires更改预览后,禁用电池仍然显示
  • ¥15 NAO机器人的录音程序保存问题
  • ¥15 C#读写EXCEL文件,不同编译
  • ¥15 MapReduce结果输出到HBase,一直连接不上MySQL
  • ¥15 扩散模型sd.webui使用时报错“Nonetype”
  • ¥15 stm32流水灯+呼吸灯+外部中断按键