You are here: Re: undefined index « PHP Programming Language « IT news, forums, messages
Re: undefined index

Posted by Chris on 07/18/06 19:43

Thanks, but I don't quite understand. Wasn't the value (for all docs.projID
rows) assigned when the query runs?

$query_search = "SELECT Distinct docURL, docTitle, docDesc, docs.projID,
groupCode, projCode, catName FROM docs
JOIN subcat on subcat.subcatID=docs.subcatID
JOIN cat on cat.catID = subcat.catID
JOIN groups on groups.groupID=proj.groupID
JOIN proj on proj.projID=docs.projID
WHERE proj.projID=docs.projID AND docURL LIKE '%$keyword%' OR docTitle LIKE
'%$keyword%' OR docDesc LIKE '%$keyword%'";

Do you mean I should initialize a variable and give it a null value, then
run the query?

Christina

<tomwerner@gmail.com> wrote in message
news:1153250073.720919.208950@s13g2000cwa.googlegroups.com...
> Hi,
>
> Technically undefined index errors should not affect your script,
> however, if you want to get rid of these warnings then make sure you
> initialise that index, the best way being assigning it a null value.
>
> Tom
>

 

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

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