Current Page: 1 of 1
Results 1 - 9 of 9
14 years ago
vartika
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <img src="C:\wamp\www\header.gif" width="100%" height="10%"> <br> <br> <SCRIPT TYPE="text/javascript"> <!-- function dropdown(mySel) { var myWin, myVal; myVal = mySel.options.value; if(myVal) { if(mySel.for
Forum: WampServer English
14 years ago
vartika
oops getting now Thanks once again.
Forum: WampServer English
14 years ago
vartika
well the errors are gone but there is no ouput. I am getting a blank screen. I have 5 fields and 5 rows in my table. My code is: <html> <?php $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = 'vartika'; $db = mysql_connect('localhost', 'root', 'vartika') or die ("Unable to connect: " . mysql_error()); mysql_query("show databases" mysql_
Forum: WampServer English
14 years ago
vartika
wow it worked thanks a lot for your help and time
Forum: WampServer English
14 years ago
vartika
Now the error I am getting is Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\wamp\www\connectivity1.php on line 23 line no 23 is if (mysql_num_rows ($result) > 0) {
Forum: WampServer English
14 years ago
vartika
It is there ..The database name is Test and there are two tables under it namely 't1' and 'greendb'. Any suggestions what should I do now?
Forum: WampServer English
14 years ago
vartika
Thanks my PhpMyAdmin is working perfectly fine now. Now I am getting the following error when I run the code below: ERROR--->Unable to select database: Unknown database 'test' where 'Test' is the database name and 'greendb' is the required table in that. //CODE <html> <?php $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = 'vartika'; $db = mysql_connect($dbhost,
Forum: WampServer English
14 years ago
vartika
Thanks for replying. I did make necessary changes as you said but I am again getting the following error. Warning: mysql_connect() : Access denied for user 'root'@'localhost' (using password: YES) in C:\wamp\www\connectivity.php on line 7 Error connecting to mysql
Forum: WampServer English
14 years ago
vartika
I was getting a similar error while running a PHP program in WampServer . I then set up a root password after which I was not able to access my PhpMyAdmin instead I am getting this error. #1045 - Access denied for user 'root' @ 'localhost' (using password: NO) phpMyAdmin tried to connect to the MySQl server, and the server rejected the connection. You should check the host, username and pas
Forum: WampServer English
Current Page: 1 of 1