By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,643 Members | 1,797 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,643 IT Pros & Developers. It's quick & easy.

Connecting to MySQL Using PHP

P: 45
Hi Mycoding is


$link = @mysql_connect("localhost","rigindex","index1") or die
("Error connecting to mysql:");

mysql_select_db("rigindex",$link) or die("Unable to select database: . mysql_error()");

$selectSql = "select CommId,JobRefNo,EmailId from COMM_EML";

$result = mysql_query($selectSql,$link);

if(!$result) {
die("Invalid query: ".mysql_error()."<br>".$selectSql);

echo("database selected");

I upload this coding in my web appalication, and run it on the web but there is no result display on the web. that is the output is blank page.

what can i do?

what is the problem please help to solve the problem

Jan 22 '07 #1
Share this Question
Share on Google+
1 Reply

P: 12
did you save it with .php extentsion?
Jan 22 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.