Re: [PHP] delete part of array

2005-01-12 Thread Tatang Widyanto
Sebastian wrote: how do i delete keys from an array if it has no values? eg, this: [name] => Array ( [0] => grape [1] => apple [2] => [3] => orange [4] => [5] => cherry ) to: [name] => Array ( [0] => grape [1] => apple [2] => orange

Re: [PHP] multiple deleting and updating (addnew)

2005-01-03 Thread Tatang Widyanto
DELETE FROM TableName WHERE UserID IN ('User1', 'User2', '', ..) UPDATE TableName SET fieldName='NewValue' WHERE UserID IN ('User1', 'User2', '', ..) Sejati Opreker wrote: Hi all, I meet a problem when I want to deleting a multiple row, I have a table that contain columns UserID, name, company name

Re: [PHP] formating output

2004-12-17 Thread Tatang Widyanto
print "\n"; print "\n"; $counter = 0; while ($result = mysql_fetch_array($pointer)) { $counter++; if ($counter % 4 === 0) { print "".$result[1]."\n"; print "\n"; print "\n"; } else { print "".$result[1]."\n"; } } // add blank cells if number of cell o