Reply to Re: newbie question integration of php and mysql

Your name:

Reply:


Posted by Thomas Larsen on 06/08/05 12:02

<CobraStrikes@al.com> skrev i en meddelelse
news:1118185644.44303.0@doris.uk.clara.net...
> Hi,
> First of all I am new to all this.
>
> I have installed apache 2.0.54,php5 and mysql 4.1.
> mysql works because I can access it on command line.
> I have run simple php script the usual phpinfo that works.
>
> when I run the following code
>
> <?php
> echo 'started'
> $conn = mysql_connect("localhost", "user", "password") or
> die('error'.mysql_error());
> echo "Connected";
> mysql_close($conn);
> ?>
>
> All I get is 'started' no error messages, what am I doing WRONG ?
> I know the problem is with the connection because if i remove it the
> script runs to the end.
>
> any help will be appreicated.
> thanks.
>
>
>
>

Hey...

First of all locate your php.ini file. In the ini file remove the ;(semi
colon) behind this line:
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
in the section "Error handling and logging"

this should do so you coukd se the error

//Thomas L.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация