You are here: Re: What's Wrong with my Script? « PHP Programming Language « IT news, forums, messages
Re: What's Wrong with my Script?

Posted by Tim Roberts on 05/05/06 10:34

"funkychicken818@gmail.com" <funkychicken818@gmail.com> wrote:

><?php
> include"dbconn.php";
> $db=mysql_select_db(creative_Articles,$connection);

Is creative_Articles the name of the database? If so then you want it to
be in quotes.

> $Parent="SELECT DISTINCT 'Cat_Parent' FROM Category";

If Cat_Parent is a column name, you probably don't want the single quotes
in there. You're selecting the constant string "Cat_Parent", not the
column named Cat_Parent.

> $mysql_Parent=mysql_query($Parent);
> while ($row=mysql_fetch_array($mysql_Parent))
> {
> $Cat_Parent=$row["Cat_Parent"];
> echo "$Cat_Parent";
> }
> ?>

The rest looks OK.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

 

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

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