Uitasem o "}" si un "$" :)
<?
$db = mysql_connect("host","user","pass");
mysql_select_db("db");
$res = mysql_query("query-ul tau");
$rows = mysql_num_rows($res);
print "<table>";
while ($row = mysql_fetch_array($res)) {
print "<tr>";
for ($i=0; $i<$res; $i++) {
print "<td>";
print $row[$i];
print "</td>";
}
print "</tr>";
}
print "</table>";
?>
On Thu, 9 Aug 2001, Paul-claudiu Ardeleanu wrote:
>
> Cred ca e o greseala!!! Uita-te mai jos!!!
>
> >>> [EMAIL PROTECTED] 09/08/01 09:18:41 >>>
>
>
> <?
> $db =3D mysql_connect("host","user","pass");
> mysql_select_db("db");
> $res =3D mysql_query("query-ul tau");
> $rows =3D mysql_num_rows($res);
> print "<table>";
> while ($row =3D mysql_fetch_array($res)) {
> print "<tr>";
> for ($i=3D0; i<$res; $i++) {
> print "<td>";
> print $row[$i];
> print "</td>";
> } randul =
> asta trebe pus dupa ce printezi </tr> -> treci la o noua linie!!!
> print "</tr>";
> print "</table>";
> ?>
>
>
>
> On Thu, 9 Aug 2001, Ionut wrote:
>
> >
> > Am si eu o mica problema. Incerc sa scriu un scriptuletz PHP care sa
> > interogheze un MySQL (functie de cateva criterii selectabile in html =
> prin
> > drop-down-uri), si sa afiseze rezultatele cautarii intr-un table in =
> html.
> > Acum, query-ul MySQL de executat nu e deloc problematic. Problema e cum
> > naiba definesc tabelul ala din PHP, si cum afisez rezultatele cautarii =
> in
> > el. As fi recunoscator profund pentru o exemplificare (scuze pt. =
> offtopic).
> >
> > --
> > Ionut Boldizsar
> > Network Administrator
> > Visual Rom Studio, Bucharest
> > ICQ: 109804302
> >
> >
> > ----- Original Message -----
> > From: "Florin Andrei" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 25, 2001 9:54 PM
> > Subject: [rlug] migrare Windows - Linux
> >
> >
> > >
> > > Pentru cei care nu urmaresc site-urile de news, uite un document
> > > publicat de un tip de la IBM despre cum sa treci de la Windows la =
> Linux.
> > > Tinta documentului sint, evident, cei care cunosc relativ bine Windows
> > > si doresc / sint nevoiti sa treaca la Linux:
> > >
> > > ftp://www6.software.ibm.com/software/developer/library/l-faq.pdf=20
> > >
> > > Puteti sa pasati link-ul asta la cei care credeti c-ar putea avea =
> nevoie
> > > de el.
> > >
> > > --
> > > Florin Andrei
> > >
> > > ---
> > > Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
> > > unsubscribe from this list.
> >
> > ---
> > Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
> > unsubscribe from this list.
> >
> >
>
> --=20
> Cristian Dumitrescu
> Admin
>
> [EMAIL PROTECTED]=20
> [EMAIL PROTECTED]=20
>
> ---
> Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to=20
> unsubscribe from this list.
>
>
> ---
> Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
> unsubscribe from this list.
>
>
--
Cristian Dumitrescu
Admin
[EMAIL PROTECTED]
[EMAIL PROTECTED]
---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
unsubscribe from this list.