However, in your if statement, you need to nest your statements with
parenthesis.

"Jack Dempsey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> didn't check your code specifically, but you can definitely have arrays
> nested inside of arrays...to see how to print them out use something like
> print_r to look  at the structure...
>
> -----Original Message-----
> From: Daniel Alsén [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 13, 2001 10:12 AM
> To: PHP
> Subject: [PHP] Can i do this?
>
>
> Hi,
>
> can i do this?
>
> $num_vals = array ();
> for ($i=0; $i<10; $i++)
> {
>   $shot_count = "SELECT COUNT(*) FROM statistik WHERE
> shooter='$shooter_login' && shot_one = '$i' || shooter='$shooter_login' &&
> shot_two = '$i' || shooter='$shooter_login' && shot_three = '$i' ||
> shooter='$shooter_login' && shot_four = '$i' || shooter='$shooter_login'
&&
> shot_five = '$i'";
>   $result = mysql_query($shot_count);
>   $num_vals[$i] = mysql_fetch_array($result);
> }
>
> I guess it´s the last row that is troubling - getting an array into an
> array. If the code is good - how do i echo the results?
>
> # Daniel Alsén    | www.mindbash.com #
> # [EMAIL PROTECTED]  | +46 704 86 14 92 #
> # ICQ: 63006462   | +46 8 694 82 22  #
> # PGP: http://www.mindbash.com/pgp/  #
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to