You are here: Re: i dont understand why this wont run « PHP Programming Language « IT news, forums, messages
Re: i dont understand why this wont run

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация