If that's the code you're running, it's got several
problems--

1st, the function is mysql_query()
2nd, the query is built like this:

$connection = mysql_connect('host', 'user', 'pass');
$db = mysql_select_db('db', $connection);
$query = "SELECT * FROM tablename WHERE primary_key =
'$primary_key'";
$result = mysql_query($query, $connection) or
die("file not found");

--- Glyndower <[EMAIL PROTECTED]> wrote:
> I need to return a "file not found" if the search
> item is not found..
> 
> tryed my_sql_query(select from table where primary
> key = $primary key)or die
> "file not found"
> 
> that didn't work....
> 
> suggestions anybody? please? purty please?
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to