I currently have a web service displaying a list of recepes that the user has added to their account.
$ch = curl_init();
$url = "http://myservice.url/app/s?session=".$_GET['session'];
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
$arr = split(',', $output);
foreach ($arr as &$url) {
echo $url;
echo '<hr>';
}
//echo $output;
This works as it should, but on the page where this list is displayed, is a table at the bottom that should list all of the other available recipes that the user has not selected, not including those that have been. The html table, completely static, below:
<table width="100%" border="0">
<tr align="center">
<td><a href="pdf/NAVARIN_PRINTANIER_REV.pdf">Navarin Printanier</a></td>
<td><a href="pdf/POULET_ROTI_A_LA_NORMANDE_REV.pdf">Poulet Róti á la Normande</a></td>
<td><a href="pdf/Boeuf_Bourguignon_REV.pdf">Boeuf á la Bourguignonne</a></td>
<td><a href="pdf/Bavarois_au_Chocolat_REV.pdf">Bavarois au Chocolat</a></td>
</tr>
<tr align="center">
<td><a href="pdf/Bavarois_aux_Fruits_REV.pdf">Bavarois aux Fruts</a></td>
<td><a href="pdf/ARTICHAUTS_AU_NATUREL_REV.pdf">Artichauts au Naturel</a></td>
<td><a href="pdf/Reine_De_Saba_REV.pdf">Reine de Saba</a></td>
<td><a href="pdf/SUPREMES_DE_VOLAILLE_AUX_CHAMPIGNONS_REV.pdf">Suprémes de Volaille aux Champignons</a></td>
</tr>
<tr align="center">
<td><a href="pdf/FOIES_DE_VOLAILLE_EN_ASPIC_REV.pdf">Foies de Volaille en Aspic</a></td>
<td><a href="pdf/Pate_de_Canard_En_Croute_REV.pdf">Páté de Canard En Croúte</a></td>
<td><a href="pdf/Beurre_Blanc_REV.pdf">Beurre Blanc</a></td>
<td><a href="pdf/CREPES_DE_POMMES_DE_TERRE_REV.pdf">Crépes de Pommes de Terre</a></td>
</tr>
<tr align="center">
<td><a href="pdf/MayonnaiseREV.pdf">Mayonnaise</a></td>
<td><a href="pdf/Sauce_Hollandaise_REV.pdf">Sauce Hollandaise</a></td>
<td><a href="pdf/HOMARD_THERMIDOR_REV.pdf">Homard Thermidor</a></td>
<td><a href="pdf/Poached_EggsREV.pdf">Oeufs Pochés</a></td>
</tr>
</table>
Can someone help explain what I need to do to not include the recipes that have been added to the "shopping cart"?
I'm completely new to PHP