Jump to content
xisto Community
Sign in to follow this  
Eggie

Sql

Recommended Posts

dont be angry at me for having much questions...but i think u'll get used to me...
i have this on my phpmyadmin...does this mean i wont be able to make any databases...
Create new database:
No Privileges

i created one but i cant select it...

<?php$host="localhost"; // Host name$username="eggie_asa"; // Mysql username$password="xxx"; // Mysql password$dbname="information_schema"; // Database name$tblname="members";// Connect to server and select database.$a=mysql_connect("$host", "$username", "$password") or die("cannot connect");mysql_select_db($dbname) or die ($dbname . " Database not found." . $username);;$sql="SELECT * FROM $tblname WHERE username='$myusername' and password='$mypassword'";$result=mysql_query($sql);echo $result;echo $sql;?>

eggie_asa Database not found.eggie_asa
Edited by Eggie (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.