Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

newbie question regarding mysql_connect
this piece of php:


<?php
require($_SERVER["DOCUMENT_ROOT"]."/config/db_config.php");
$connection = mysql_connect($db_host, $db_user, $db_password) or die("Error 
connecting");
echo "Connection made!";
?>
presents me with a blank page. It's picking up the variables ok from db_conf
ig.php, because if I replace
the;

$connection = mysql_connect($db_host, $db_user, $db_password) or die("Error 
connecting");
echo "Connection made!";

lines to just echo the host, user and password, they all appear on screen fi
ne.

I'm using Mysql 4.0.1.8-nt with Apache2 webserver and PHP5

I'm new to this and i'm guessing that MySQL, apache or PHP is mis-configured
 somewhere.... but I can't
track it down.

Any help appreciated.



All the Best,
John

<< In Birmingham  -  The Industrial Riviera..! >>

Report this thread to moderator Post Follow-up to this message
Old Post
John T
10-31-04 01:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:22 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.