Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $host = "localhost";
- $dbname = "induedun_chand02s";
- $dbusername = "induedun_chedu";
- $dbpassword = '?!l1neoB-iE#';
- function db_connect()
- {
- global $host,$dbusername,$dbpassword,$dbname;
- if(!($link_id=mysql_pconnect($host,$dbusername,$dbpassword)))
- {
- echo("error connecting to host");
- exit();
- }
- if(!mysql_select_db($dbname,$link_id))
- {
- echo("error in selecting the database");
- echo(sprintf("Error : %d %s",mysql_errno($link_id),mysql_error($link_id)));
- }
- return $link_id;
- }//function
- $link_id = db_connect();
- $qxresult=mysql_query("select comp_name from comp_name WHERE id='1' limit 1");
- $qxrow=mysql_fetch_array($qxresult);
- $sitename=$qxrow[comp_name];
- ?>
- site : http://chandrabinduedu.com/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement