[PHP-WIN] Re: error query

2002-03-03 Thread Mark Sweeney
I seem to have isolated my problem. My code will only work with non-numerical tables for some reason, which is kind of a pain. Is there any way to use php to connect to a mysql table that has a numerical value as its name (1,2,3 etc)? Thanks, mark

[PHP-WIN] error query

2002-03-01 Thread Mark Sweeney
Sorry to bother, but I am having a severe problem with this (probably stupidly) flawed code. It is part of a script to call descriptions for images along with their filenames from a mysql database. trouble is, it doesnt work, and it claims that I have a syntax error near "LIMIT 10" The code i

[PHP-WIN] Search Engine Problem

2001-10-24 Thread Mark Sweeney
Hey, I am using this piece of code to display news articles based on the variables inputted by a user. However, it will only display one article, never more, even if more are within the terms of the "WHERE" clause. What am I doing wrong? $search = mysql_query("SELECT news.ID, newstitle, newsde

[PHP-WIN] Array Manipulation?

2001-10-16 Thread Mark Sweeney
Hey, Just wondering, I am fetching a load of ids and names from a Mysql database. However, I want to exclude 3 of the results from this based on their id numbers. How would I go about this? An array_filter? And if so, what would I do? sorry for my isiocy, but I am still learning and its pretty