[PHP] Delete from Multidimensional Array?

2003-06-03 Thread Mark D Hiatt
I think I've outsmarted myself, again. Can someone help me out of this, 
please?
 
I've built a page that collects network card information, assigning each 
element its place within a $Card array, and all of the cards to $NetCards. 
As you enter your card information at the bottom, the previous card is 
displayed above it, with a Delete checkbox option at the end of that row 
($Delete[$Card]).
 
But I can't figure out how to actually delete that card from the "deck", 
as it were. I've looked over the Arrays pages, but there's little there 
about multi-dimensional arrays and I ended up more confused than ever. 
Here's my print_r:
 
Array   <=---  This is $NetCards
(
[0] => Array<=--- This one is just 
$Card
(
[0] => 3Com <=--- Description
[1] => 12:34:45:78:90:AA<=--- MAC Address
[2] => 129.93.100.100   <=--- IP  Address
)

[1] => Array
(
[0] => Intel 100b
[1] => 12:34:45:78:90:AB
[2] => 129.93.100.101
)

[2] => Array
(
[0] => ThinAire
[1] => 12:34:45:78:90:BB
[2] => 129.93.100.102
)

[3] => Array
(
[0] => 3Com
[1] => 12:34:45:78:90:BC
[2] => 129.93.100.103
)

)

How can I delete, say, the wireless card (ThinAire) which is third, here, 
if someone clicks on that one's Delete box? Thanks!
 
Mark D Hiatt
"Better Documentation Through Science"

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP.net Manual Magic?

2003-06-17 Thread Mark D Hiatt
One of the coolest things I have seen online, and some of you may not even 
know this works, but if you type in the url: "http://www.php.net/foo"; 
you'll be taken straight to the foo page of the php manual, if one exists. 
If "foo" doesn't exist, you pull up a Google search-within-the-site page.
 
I haven't been messing with php for very long, but I haven't been able to 
put together all of the pieces for something like this. Is it hugely 
complicated? There's definitely a lot more here than a simple .htaccess 
rewrite. Has anyone thought of any other uses this kind of thing could be 
put to?
 
Mark D Hiatt
"Better Documentation Through Science"

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP-Only Polling Script?

2003-11-19 Thread Mark D Hiatt
Can anyone recommend a good, simple PHP-only polling script?
 
I have a non-profit with no money that wants people to be able to select 
one from a range of candidates, and then see the total number of votes, 
the percentage breakdown and probably a histogram or a bar graph showing 
the most popular selections.
 
They are not worried about anyone scamming them, thinking that as many 
people would vote sixty times for "Blue" as would vote sixty times for 
"Green". It wouldn't have to be secure, wouldn't have to support a bunch 
of cookies, wouldn't have to validate users, etc. etc. They don't have any 
money, so I don't have any time.
 
I just need a good, cheap, low-hours-to-live, no-database, no-money poll. 
Anyone know of one?
 
Mark D Hiatt
"Better Documentation Through Science"

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php