Error help: "Apache HTTP Server stopped working and was closed"
Posted by: amyjawanda (---.in-addr.btopenworld.com)
Date: August 17, 2009 12:13PM

Hello, can any on help me please?
Ive got a error coming up saying "Apache HTTP Server stopped working and was closed"

Im not sure why or how to fix it..any feedback is aprechiated smiling smiley x

Options: ReplyQuote
Re: Error help: "Apache HTTP Server stopped working and was closed"
Posted by: toumimi (84.6.111.---)
Date: August 17, 2009 01:10PM

Hi,

When does the problem appears ?
- Wamp start
- When opening WampServer homepage ('http://localhost/')
- When opening your project
- Others

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: Error help: "Apache HTTP Server stopped working and was closed"
Posted by: amyjawanda (---.in-addr.btopenworld.com)
Date: August 17, 2009 01:15PM

Hello its when I have my project open which is a guest list and rsvp. When I click the submit button to invite a guest this error comes up and the keeps coming up.

xx

Options: ReplyQuote
Re: Error help: "Apache HTTP Server stopped working and was closed"
Posted by: toumimi (84.6.111.---)
Date: August 17, 2009 01:25PM

I think this is an error with mysql_close function, already reported here.
So I suggest you to correct your use of mysql function since its a bug in php 5.3

$link = mysql_connect(__, __, __) or die('Connection error !');
mysql_close($link);

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: Error help: "Apache HTTP Server stopped working and was closed"
Posted by: amyjawanda (---.in-addr.btopenworld.com)
Date: August 17, 2009 02:00PM

Hello, thanks for your help.

In my index file I have:


<?php
$username="root";
$password="";
$database="invites";

mysql_connect("localhost",$username,$password);
mysql_select_db($database) or die( "Unable to select database"winking smiley;
$query="SELECT * FROM guest_list ORDER BY lname";
$result=mysql_query($query);

$num=mysql_numrows($query);

mysql_close();
?>

What do I need to correct??

thanks smiling smiley X

Options: ReplyQuote
Re: Error help: "Apache HTTP Server stopped working and was closed"
Posted by: toumimi (84.6.111.---)
Date: August 17, 2009 02:05PM

<?php
$username="root";
$password="";
$database="invites";

$link = mysql_connect("localhost",$username,$password);
mysql_select_db($database,$link) or die( "Unable to select database"winking smiley;
$query="SELECT * FROM guest_list ORDER BY lname";
$result=mysql_query($query,$link);

$num=mysql_numrows($query);

mysql_close($link);
?>

Note that I also added a link into mysql_select_db and mysql_query.
It is not necessary for the moment but it can prevent future php bugs winking smiley

For more information on how to use mysql functions, please have a look at php.net online manual..

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: Error help: "Apache HTTP Server stopped working and was closed"
Posted by: amyjawanda (---.in-addr.btopenworld.com)
Date: August 17, 2009 02:36PM

Hello thanks smiling smiley

im still getting the error confused smiley im looking at php.net at the moment.

Is there a way of uploading my files so you can see them? x

Options: ReplyQuote
Re: Error help: "Apache HTTP Server stopped working and was closed"
Posted by: toumimi (84.6.111.---)
Date: August 17, 2009 02:53PM

If it's not this problem, then you can check if apache error log to see if there is any information in it...

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote


Sorry, only registered users may post in this forum.