FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » about php connection string
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
about php connection string [message #180229] Fri, 01 February 2013 07:47 Go to previous message
amitjaluf is currently offline  amitjaluf
Messages: 5
Registered: February 2013
Karma:
Junior Member
Hello All
i am writing a connection string to connect database to the web page but when i run this with Firefox it shows Nothing. I am using Linux(Debian) on machine.

here is the code can anyone help me where i am wrong.

<?php
$db=mysql_connect("localhost","xyz","");
mysql_select_db("mysql",$db);
$rs=mysql_query("select * from emp",$db);
printf("User: %s\n",mysql_result($rs,0,"Ename"));
?>

and the other thing is when i save the .php file in "/var/www" its show me message Permission denied so where i have to put these files(Project) where from i can run.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to get data for website pages..
Next Topic: Hot list for BA/QA, BA – Insurance, Embedded Engineer & Technical BM
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 10:36:02 GMT 2024

Total time taken to generate the page: 0.06464 seconds