- if (isset ($us)) {
- $knigi = mysql_query("SELECT title, price FROM cart WHERE id_user = '$us'");
- $row2 = mysql_fetch_array($knigi);
- do
- {
- printf ("<p><table class='tovar'><tr><td width=300px class='tovar' >
- <p>Название<P class='tovar_atr'>%s</p></p></td>
- <td width=100px class='tovar'><p>Цена<P>%s руб.</p></td></tr></table></p>
- ", $row2 ["title"], $row2["price"]);
- }
- while ($row2 = mysql_fetch_array($knigi));
- }