473,322 Members | 1,690 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

buffers od mysql interface

Hi,
the line of SQL code:

********$sql*=*"select*ids*from*idlist*where*lid*= *last_insert_id()";

should get the number of the new inserted row and it works properly when
called directly. but called through php:

******$sql_res*=*mysql_query*($sql,*$connection);

is still ok, but

******$res*=*mysql_fetch_row*($sql_res)

sometimes returns 0, even if mysql_errno() is 0. after some time, or some
trials the error sometimes won't reappear. therefore i expect someting
connected to logging, or freeing some buffers. does anybody have an idea
how to get rid of it, or how to find the true cause.
thanx in aadvance,
zbyszek lisiecki
--
http://zbyszek.evot.org
Jul 17 '05 #1
1 1297
rw
If i read last inset id using PEAR it newer cause me amy problem. Mybe
look on pear source or maybe use this
http://pl2.php.net/manual/en/functio...-insert-id.php.
--
Robert Was

Zbigniew Lisiecki wrote:
Hi,
the line of SQL code:

$sql = "select ids from idlist where lid = last_insert_id()";

should get the number of the new inserted row and it works properly when
called directly. but called through php:

$sql_res = mysql_query ($sql, $connection);

is still ok, but

$res = mysql_fetch_row ($sql_res)

sometimes returns 0, even if mysql_errno() is 0. after some time, or some
trials the error sometimes won't reappear. therefore i expect someting
connected to logging, or freeing some buffers. does anybody have an idea
how to get rid of it, or how to find the true cause.
thanx in aadvance,
zbyszek lisiecki


--
Robert Was
Jul 17 '05 #2

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

Similar topics

9
by: Google Mike | last post by:
To my surprise last month, my dad wanted to start dabbling in PHP and MySQL or pgSQL. I've been helping him out a bit. He's into athletic medicine and wants to have a website to help athletes and...
1
by: Yong Wang | last post by:
Hi, All: We have a network management system written in C++, MysQL, and Hp SNMP. It works in Solaris command line. When I wrote a similar python codes which call compiled C++ and mysql codes in...
15
by: B. Pigman | last post by:
There have been many questions as to the viability of MySQL's assertion that it can dictate what constitutes a derived work in order to use the GPL against developers who don't wish their software...
51
by: w_curtis | last post by:
I'm an Access user, and I'm trying to learn MySQL and then PHP so I can make some web databases. But it just isn't clicking. I've followed some tutorials, and picked up a book, but just getting...
2
by: David | last post by:
I do some website design here and there occasionally for a few clients and I've got a new one that wants a database with their website that will display pricelists displayed for their products and...
2
by: Noah Roberts | last post by:
It was my understanding that doing something like 'cin.rdbuf()->pubsetbuf(NULL, 0)' would cause any buffering troubles to stop. I am not sure where the problem resides, but I am experiencing...
2
by: | last post by:
Hi, we are planning to rewrite an extisting C++ image processing application/library in C#. Now several question arouse where I hope you can help me: So far we allocated a block of memory as...
0
by: Sam Durai | last post by:
Hello, A particular select query took unusually long time to execute hence I took an app.snap to find out what happens internally and I found out that tablequeue buffers are overflowing on a...
6
Atli
by: Atli | last post by:
This is an easy to digest 12 step guide on basics of using MySQL. It's a great refresher for those who need it and it work's great for first time MySQL users. Anyone should be able to get...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.