473,513 Members | 2,397 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

LOSING CONNECTION

If I do a the following using mysql_query

SELECT * FROM cine_ticket_transaction WHERE performance_day='2004-10-28'
AND film_name='Les miserable'

If the record does not exist, I lose the connection with the mysql server.

Any help appreciated.

Maurice Breault
so******@omniterm.com
Jul 20 '05 #1
2 1639
How do you know the connection is open if the query has a result?

As far as I know, every query statement you execute opens a connection and
it closes the connection once it finishes execution.

"SOFTWARE" <ma********@hotmail.com> wrote in message
news:8K********************@look.ca...
If I do a the following using mysql_query

SELECT * FROM cine_ticket_transaction WHERE performance_day='2004-10-28'
AND film_name='Les miserable'

If the record does not exist, I lose the connection with the mysql server.

Any help appreciated.

Maurice Breault
so******@omniterm.com

Jul 20 '05 #2
SOFTWARE wrote:
If I do a the following using mysql_query

SELECT * FROM cine_ticket_transaction WHERE performance_day='2004-10-28'
AND film_name='Les miserable'

If the record does not exist, I lose the connection with the mysql server.

Any help appreciated.

Maurice Breault
so******@omniterm.com

Are your logfile options turned on and showing any useful information?
If your logfiles are on, and not showing anything, you might need to
turn up the output to see exactly what is going on......
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
7775
by: vivek | last post by:
Do any of you guys have any idea what might be the reason for losing session variables, i was working on a page where i had to stroe a array in a session(trust me that was the only 'way' i could imagine doing it), and i am losing the session variable, its just returning empty values...does any one has any ideas?
1
3683
by: pleake | last post by:
Following is a logon.asp script. This script works when IIS is reset each day. The epapi object is a vendor api program I do not have the code for! The logon process involves three servers: the IIS server, a Novell Server with executable programs on it including the API program, and an Oracle server. The logon sequence is to use the IIS...
2
291
by: Frank Bishop | last post by:
Can someone tell me why I'm losing my session variable when using Response.Redirect? When I use the RedirectFromLoginPage method(currently remmed out below), my session variable works fine, but I'm trying this other way with Response.Redirect and it seems all my redirection works, but it loses the session variable when I hit the redirected...
1
2705
by: Matthew Curiale | last post by:
I have a ddl that is populated in my If Not IsPostBack block in the Page_load event. A repeater is also populated at this time, showing different domains for a website. The ddl contains different price plans that can be selected. My problem is that the user has a choice of being able to update information, or update and create a new domain....
0
966
by: Frank Bishop | last post by:
Can someone tell me why I'm losing my session variable when using Response.Redirect? When I use the RedirectFromLoginPage method(currently remmed out below), my session variable works fine, but I'm trying this other way with Response.Redirect and it seems all my redirection works, but it loses the session variable when I hit the redirected...
7
2652
by: Mike | last post by:
While working on a few projects I have this annoying issue whereby my computer is losing the connection to my SQL database. I have to save my work exit VS log out of windowsXP and log back in, relaunch VS and load my program to resume. I'm getting the following error about every 10 minutes. An unhandled exception of type...
6
1868
by: Sukh | last post by:
Hi, I am using ASP.Net with C#. My application is using a control and when control object is created my application set all the values to that control. This also contain connection string values. Control add connection string to session and rest values send to second application in XML format. Second application does some processing and...
0
1256
by: =?Utf-8?B?Sm9obiBXLg==?= | last post by:
A client application connects to a TCP-remoted object from a service on localhost for method invocations and events. It works as advertised. But... if the network cable (LAN) gets disconnected, the event subscriptions to the localhost server are lost because "The connection was forcibly closed...". If the remoting proxy had also gone away,...
6
3100
MindBender77
by: MindBender77 | last post by:
Hello All - I've exhausted all other resources so any feed back will be most helpful. If this question is not in the correct forum, admins please move. I have an older Compaq Armada laptop and a Zoom cable modem. I can receive an internet connect for about 3 minutes before losing it. My desktop pc, when connected to the same modem has no...
0
7394
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7123
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5701
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4756
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3248
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3237
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1611
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
470
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.