#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2013
    Posts
    1
    Rep Power
    0

    Code for auto register


    how to create multiple tables in one db......i created db using PHP code...now i created db and admin table.....but i dont know how to give connection to users table
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 2003
    Posts
    3,381
    Rep Power
    594
    First creating DBs and tables in PHP code is always a bad and dangerous idea. Why do you think you need to do that? Second, if you were able to connect to the DB engine (MySQL?) to create a DB and tables, why do you think connecting to your DB is any different? Did you read the PDO documentation or are you copying bad code from the internet (also a bad and dangerous idea)? You need to take a step back and read up on PHP security before even starting to write code.
    Last edited by gw1500se; December 27th, 2013 at 07:42 AM.
    There are 10 kinds of people in the world. Those that understand binary and those that don't.

IMN logo majestic logo threadwatch logo seochat tools logo