need Array help


Posted on 16th Feb 2014 07:03 pm by admin

This is what I have to do.
$teamname[1] = "Red Sox"
$teamname[2] = "Giants"
$teamname[3] = "White Sox"
Did you know?Explore Trending and Topic pages for more stories like this.
$teamname[4] = "Cubs"
$teamname[5] = "Cubs"
Interface: Number 1 to 5;
Output: "The [name] won World Series number .

This is what I have so far. <?
$array=array('Red Sox', 'Giants', 'White Sox','Cubs' ,'Cubs');



print_r($array );
echo "
";
foreach( $array as $key => $value){echo $value ." "; }















?>

<form method = "post" action = "">
<input type = "Submit" value = "Who won the series?" />
</form>

I'm not sure what to do next.
No comments posted yet

Your Answer:

Login to answer
248 Like 38 Dislike
Previous forums Next forums
Other forums

Remove Rows From Database ad
Hi All,

I have this:

Code: [Select]<?php
session_start();
include('../com

trouble printing an array....
I'm having some trouble printing out an array forwards. I'm figuring out the high and low of an arra

List/Menu Box
On an edit page when you want something to select what a user has previously selected from the datab

Display last record first.
I need some help how put the last record first and first record last.

Thanks

Code: &am

Need help with an email blocker for a guessbook
I am new with php and here is a simple guessbook page but I am being hit with spam from a group of t

Request for tunning the below query
Hi,

Can any one help me on the below query while improving the performance,

Oracle Connectivity
Hi Every One,

Can we access SAP from oracle database.If it possible then please spec

Problem with an browser game.
Hello,i just joined that great forum and i got php prob,its kinda freaky...anyway i got browser game

Adding Outlook 2007 items via file upload
I am looking for a way to be able to attach an Outlook item (an email message) in an ASP.NET 3.5 app

XML Grouping
I'm using xml_parse_into_struct to get all my elements, but now I need to group them. For example, h

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash