Re: mysqli error?
- From: marky <marky1000001@xxxxxxxxxxx>
- Date: Tue, 30 Dec 2008 02:46:26 -0800 (PST)
On 28 Dec, 22:41, Jerry Stuckle <jstuck...@xxxxxxxxxxxxx> wrote:
marky wrote:
Hi,
I'm just setting up my php enviroment and I typed in a simple script
but it wont run
past the mysqli_connect statement
The script is
<?php
echo ("starting");
$mysqli = mysqli_connect("localhost", "joeuser", "somepass",
"testDB");
echo ("exiting");
?>
I have created testDB with correct user and privaledges etc in mySql
monitor
its not that the script fails. The echo existing command never runs.
I'm running Apache 2.2.8 and php5.2.5 in java I need to load an sql
driver. Is there a php driver for sql I need to load in?
If I remove the mysqli line then everything runs fine. I've tried
debugging with xdeub on netbeans 6.5 but as soon as it reaches the
connect line I loose the trace.
I'm a total novice at php so I've included all the config files I
think are important but if I've missed something out please asked me.
marky
<snip 2,655 lines of irrelevant data>
Enable all errors and display them.
In your php.ini file, put:
error_reporting=E_ALL
display_errors=on
Restart Apache and see what error you get.
And please - before posting thousands of lines, ensure they are relevant
to the question and the newsgroup.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@xxxxxxxxxxxxx
==================- Hide quoted text -
- Show quoted text -
thanks for the tip, I enabled all errors and it was pretty clear what
was wrong after that. Thanked you again
marky
.
- References:
- mysqli error?
- From: marky
- Re: mysqli error?
- From: Jerry Stuckle
- mysqli error?
- Prev by Date: Throw Exceptions from setters: second opinion
- Next by Date: public library script
- Previous by thread: Re: mysqli error?
- Next by thread: asynchronous PHP
- Index(es):
Relevant Pages
|