php - Mutli user web app login -


i having trouble setting login connects specific database or table. want have log in cname:___ user:___ password:_____ cname gives them access specified database. there tutorials on this. have yet find one. far have basic database/php form set users end submitting information single database instead of personal one. help! if 1 can point me in right direction awesome. don't want doing me, need learn though.

thanks

you may add if, or switch case statement define database depending on user name

switch($_request['cname']) {     case 'user1':         //set database db user1         break;     case 'user2':         //set database db user2         break;     default:         //set default database         break; } 

Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -