CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Deletion of records in grid using checkboxes

Print topic Send  topic

Author Message
Ivo
Posted: 05/23/2003, 2:26 AM

I found the article: Deletion of records in grid using checkboxes. I need something like that to delete records from a grid. Is there someone with a example for PHP?

Tnx!
Ivo
Ivo
Posted: 05/23/2003, 2:45 AM

If there is not an example available, maybe this works?

I already use the updatable grid (http://www.gotocode.com/art.asp?art_id=50) and that works fine. I use it for my shoppingbasket. I want to change the script to make it possible that when the user gives the quantity: 0, the product will be removed from the shoppingbasket.

Now the script is:

$max = dLookUp("orderline", "max(orderline_id)", "1=1");
$min = dLookUp("orderline", "min(orderline_id)", "1=1");

for ($i=$min; $i<= $max; $i++)
{
//echo $i." is ".get_param("$i")."<br>";
$aantal = get_param("$i");
if ($aantal != "")
{
$aantal = str_replace(",", ".", $aantal);
$sSQLu = "UPDATE orderline SET aantal=" . $aantal . " WHERE orderline_id=".$i;
$db->query($sSQLu);
}
}


Tnx for helping,
Ivo
Ivo
Posted: 05/23/2003, 7:12 AM

Who can help me with this "small" problem.

Thank you!!
Ivo
(student from holland)
guest
Posted: 05/26/2003, 5:27 AM


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.