|
Posted by Pedro Graca on 11/19/06 16:17
Please do not top-post.
Please trim unnecessary lines from the quoted articles.
Please read http://www.greenend.org.uk/rjk/2000/06/14/quoting.html
Thank you.
so many sites so little time wrote:
<snip>
> $result = mysql_query ($query);
>
> $query = 'SELECT * FROM home';
>
> print "<p><h3>{$result}</h3>
> </p><hr />\n";
Wrong order of statements.
*First* you set up variables,
*then* you call mysql_query(),
*then* you call mysql_fetch_*(),
and *last*, in a loop, you print the data.
--
I (almost) never check the dodgeit address.
If you *really* need to mail me, use the address in the Reply-To
header with a message in *plain* *text* *without* *attachments*.
Navigation:
[Reply to this message]
|