473,508 Members | 2,119 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Updating single row in table causing all rows in table to be updated with same update.

I have a table with ~2.2 million rows. Sometimes when I do an update
to one single row it will instead update ALL of the rows using the
same update. This happens every one in about 500,000 updates to a
single row.

I am running mysql 4.0.14 in WinXP. I am using PHP to do the update.

I am thinking something in the update itself is causing mysql to do
this. I don't have the exact SQL statement that causes the error
but I do have the data that is causing the problem. I am thinking
some character in the update is causing all the rows to be updated
when only one row is supposed to be updated. The single quote
character "'" is highly suspect.

Here is a sample SQL (cleaned up for easy reading): "UPDATE page SET
page_content = '$buf' WHERE page_id = $page_id"

'$buf' and '$page_id' are variables.

I am updated a column of a row of type "text" with the following data
set in '$buf' (Please excuse the fact that it's quite long):

"KLUC 98.5, Las Vegas' #1 Hit Music Station local weather KLUC
Privacy Policy Terms of Use Agreement Employment EEO Policy EEO Public
File Report As the school year just gets started, 98.5 KLUC, Las
Vegas' #1 Hit Music Station asks you this.. Are you ready to PARTY!!!
It's the return of the High School Elimination . It's your opportunity
to show your school spirit and try to survive from being voted off. If
you do, your school will win a free party at Gameworks, and you never
know what KLUC has up it's sleeves. Can VoTech repeat as champions or
will the rookies, Liberty or Shadow Ridge be the ones to take it all.
It's High School Elimination 2 from the only station with all the
school spirit, 98.5 KLUC, Las Vegas' #1 Hit Music Station. Click here
to register and vote! 98.5 KLUC, Las Vegas' #1 Hit Music Station is
bringing yet another huge KLUC concert to the Vegas Valley. Mack 10
live on-stage Thursday September 18 at the House Of Blues. Keep it
locked onto KLUC for you shot to win. It's Mack 10 brought to you by
Michelob, House Of Blues, and Las Vegas' #1 Hit Music Station, 98.5
KLUC. Every week the 98.5 KLUC High School Football Patrol pads up
with live updates from the best games of the week. Check out the
football patrol in the stands for the Bishop Gorman at Liberty and
Canyon View at Shadow Ridge matchups. High School Football Patrol only
from Las Vegas' #1 Hit Music Station, 98.5 KLUC. Every Monday -
Friday, KLUC midday man Tim Stevens plays all your favorite old school
music during the Old School Lunch Hour at noon. Call in with your
requests and you may win lunch for (2) from Aloha Kitchen. 98.5 KLUC,
Las Vegas' #1 Hit Music Station is teaming up with Aquafina to spot
you. Listen to KLUC to find out where the Party Patrol will be with
ice cold Aquafina and KLUC prizes throughout the valley. If you pick
an Aquafina bottle with an X on it, you'll have the chance to win
CD's, DVD's, PS2, Xbox, and Gamecube games, and tons of other prizes.
It's the Aquafina Get Spotted contest with Aquafina and Las Vegas' #1
Hit Music Station, 98.5 KLUC. Training with Trejo Listen to the
Morning Zoo M-F 5a-9a for a daily update on Trejo's progress! The 98.5
KLUC Party Patrol is back for the Summer of Jamz! Every Saturday
night, Rayne and the KLUC Party Patrol load up the Urban Suburban and
will broadcast LIVE fron your living room with awesome KLUC prizes
like movie tickets, CD's, concert tickets, Wet N Wild tickets, food
and drinks and more and they could crash your crib! BEST OF ALL, IT'S
FREE! Click here to fill out the entry form and get ready, because
Saturday night, the Party Patrol could be knockin' on your front door!
From Las Vegas' #1 Hit Music Station, 98.5 KLUC! upcoming events Tue.
September 9 11:00pm Tim Stevens @ Studio 54 Wed. September 10 11:00pm
JB @ Baby's Thu. September 11 11:00pm Bo Jaxon @ Club Rio kluc's top
8@8 Results From :: 9.8.2003 1. Suga Suga Baby Bash 2. Get Low Lil Jon
3. Can't Nobody Hold Us Down Christina/Lil Kim 4. PIMP(remix) 50Cent
5. Right Thurrr Chingy 6. Shake Yo Tailfeather Nelly, P-Diddy 7.
Thoing Thoing R.Kelly 8. The Way You Move Outkast morning zoo poll
The Bennifer (Ben Affleck & J-Lo) are to be married this weekend. How
long do you think this marriage will last? 1 year 3 years 5 years
Until J-Lo gets bored For Eternity current results earlier poll
results 288 people have taken this poll © 2003 KLUC / Infinity Radio
Corp."
Jul 19 '05 #1
0 2191

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

Similar topics

4
3589
by: Jeff | last post by:
Below is like ddl on a table of ours and its index created in DMS tablespaces. It contains about 100 rows. Over a 10 minute period, COL2, COL3, COL4, COL5, and COL7 are updated on every row(Update...
5
2013
by: junglist | last post by:
Hi guys, I've been trying to implement an editable datagrid and i have been succesful up to the point where i can update my datagrid row by row. However what used to happen was that once i updated...
14
2104
by: Lars Netzel | last post by:
A little background: I use three Datagrids that are in a child parent relation. I Use Negative Autoincrement on the the DataTables and that's workning nice. My problem is when I Update these...
9
1715
by: Mr Newbie | last post by:
HI People, Thanks to all who helped me earlier on the subject of @@IDentity. However, I seem to have hit another snagette! My DataSet contains two tables from the SQL Server. lets say Master...
4
2360
by: Geoff | last post by:
Hi I'm hoping somebody can help me with the following problem that has occurred to me. Suppose I have two tables in an SQL Server database. Let's call these tables A and B. Assume that A has...
3
8902
by: RSH | last post by:
Hi, I have a situation in where i have two instances of SQL server, the first is our Production Environment, the second is our Development environment. Both servers contain the same databases...
6
13980
by: Rich | last post by:
Dim da As New SqlDataAdapter("Select * from tbl1", conn) dim tblx As New DataTable da.Fill(tblx) '--works OK up to this point da.UpdateCommand = New SqlCommand da.UpdateCommand.Connection =...
33
3254
by: bill | last post by:
In an application I am writing the user can define a series of steps to be followed. I save them in a sql database using the field "order" (a smallint) as the primary key. (there are in the range...
2
3300
by: =?Utf-8?B?VmFuZXNzYQ==?= | last post by:
Hi All! I am with a situation where I am not getting the right updating to the form's fields. The situation is the following one: I have one combobox and one textbox. I am using the...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7124
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7046
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...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5629
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,...
0
3195
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...
0
1558
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 ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
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...

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.