ConfusedOfLife
05-04-2003, 01:16 AM
Hi, I'm doing a very basic update query inside of a class, the syntax is so simple that I can't understand why it doesn't work!
Here it's a snippet of what I'm doing:
class something
{
function update($arr)
{
$query = "update newsbox set headline = 'jjj' where index = 9";
}
}
The class is somehow big and I don't bring it in here, but if it's nothing wrong with having an update query inside of a class, then I'm having a logical problem! Hey, it doesn't give me any error, it simply doesn't work! Nothing changes after running the query.
Thanks
Here it's a snippet of what I'm doing:
class something
{
function update($arr)
{
$query = "update newsbox set headline = 'jjj' where index = 9";
}
}
The class is somehow big and I don't bring it in here, but if it's nothing wrong with having an update query inside of a class, then I'm having a logical problem! Hey, it doesn't give me any error, it simply doesn't work! Nothing changes after running the query.
Thanks