Re: mysqli error?



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
.



Relevant Pages

  • Re: Troubleshooting connection loss (continued)
    ... Most were actual commands. ... you look at the config files for suspect area failure/vaules. ... echo "You need to be root to run $0" ...
    (comp.os.linux.networking)
  • Re: Persisting env vars in cmd windows
    ... more about batch files as you go on, ... echo The time is %time::=.% ... But the piece de resistance was the "start" command, ... echo:: ERROR ERROR ERROR ERROR ...
    (microsoft.public.win2000.general)
  • Re: Persisting env vars in cmd windows
    ... But the piece de resistance was the "start" command, ... - Have all code for the one project in one single batch file. ... @echo off ... echo:: ERROR ERROR ERROR ERROR ...
    (microsoft.public.win2000.general)
  • Re: Persisting env vars in cmd windows
    ... even though it applies to any command, e.g. echo, copy, ... Similarly the syntax for the extremely powerful "for" command ... more about batch files as you go on, ... echo:: ERROR ERROR ERROR ERROR ...
    (microsoft.public.win2000.general)
  • Re: Persisting env vars in cmd windows
    ... even though it applies to any command, e.g. echo, copy, ... Similarly the syntax for the extremely powerful "for" command ... more about batch files as you go on, ... echo:: ERROR ERROR ERROR ERROR ...
    (microsoft.public.win2000.general)