Anybody learning this for the first time might want to try using mysqli_connect() instead as it is better than mysql_connect(). You will need to google it as the parameters are in a slightly different order but pretty much all mysql_ functions have an equivalant mysqli_ function.
He hasnt created the database in this video.
To create the database you do this
mysql_query("CREATE DATABASE nameofthedatabse " , variable in which u have stored connect info)
well i hav a few doubts pls some1 help me in it....while trying the above i got this error:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'username'@'localhost' (using password: YES) in D:\xampp\htdocs\connectionfile.php on line 10
Not Connected:Access denied for user 'username'@'localhost' (using password: YES)
wht's the prob? & my 2nd question is it necessary to try this @domain hosted...cant it be done on localhost.is this y im getting error?
i have books table
and i displayed few fields of book in html table
i want to further link each row with a dynamic page fetching that book's details
like yahoo inbox page navigates to email body page when we click a specific subject in inbox page
There appears to be an error in his code.
the doublepoint in the die thinghy of the connection he did in the last vid should be within the quotation marks.
There appears to be an error in his code.
the doublepoint in the die thinghy should be within the quotation marks. liek this:
die('Not connected :' . mysql_error());
There appears to be an error in his code.
the doublepoint in the die thinghy of the connector should be within the quotation marks. like this:
die('Not connected ::' . mysql_error());
Please help me because it says:
Parse error: syntax error, unexpected ':' in /home/a2292773/public_html/connectionfile.php on line 5
I wrote everything like BUCKY .
Please help me beacause it says:
Parse error: syntax error, unexpected ':' in /home/a2292773/public_html/connectionfile.php on line 5
I wrote everything like BUCKY .
@MisutaGameBoi I was also thinking that way, but you cant look at the source code unless you hack into the database. If you check a source of a php fir it will look like an html file.
Can you also teach us how can we use the mysql at xammp, thanks Bucky, I will be waiting for your reply. I have been trying to connect it, but I dont know how to setup the username, password at phpmyadmin at xammp to set up for the code. When I try I got the error coded, not connected access denied for user ODBC at localhost using password no.