在注册表中搞个字段拥有BLOG的ID不就可以了嘛

解决方案 »

  1.   

    在注册程序里添加创建blog的SQL语句,当用户提交注册表单之后
    1) 先执行创建blog的SQL语句.并通过函数:mysqli_insert_id(),得到新建的blog的ID,
    2) 将得到的ID插入到用户表的blogid字段(用于标识该用户所对应的blog).
    这样设计就可以了,
      

  2.   

    A simple way: http://blog.a.com/username
    Write a blog system for single user, then after a user regists, create a folder named the user's name and copy the system files into the folder.
      

  3.   

    楼上的方法有些太耗服务器资源吧?
    每个用户一套独立的blog程序?太浪费了.....
    如果有上万的用户,岂不要拖跨服务器了#_#!