Post
Topic
Board Services
Re: $40 in BTC for some php/mysql coding help, quick problem
by
MoneypakTrader.com
on 01/06/2013, 05:59:35 UTC
You don't really provide enough code to do this (ie what variable is table b's data stored in, assuming its already been queried). However I would hazard it would be something like the following (assuming table b's data is already queried and stored in $tableB as an array):

Code:

echo '
 '
.$r['id'].
'
;

foreach(
$tableB as $b)
{
      if (
$b['ID'] == $r['id'])
      {
            echo 
'
  •  '.$b['msg'].
  • '
    ;
          }
    }

    echo 
    '
    ';

    ?>

    This did not work either.

    Contest is over. I have created a solution. I might send you 2 a little something for the effort to encourage people helping with my next task.