View Single Post
Old 12-28-2004, 06:54 AM   #1 (permalink)
jimmyoctane
Registered User
 
jimmyoctane's Avatar
 
Join Date: Sep 2003
Location: California
Posts: 26
jimmyoctane is on a distinguished road
Send a message via AIM to jimmyoctane
Need a bit-o-guidence on passing parms to PHP

Hello

First off Happy holidays to all!!!!


I am trying to use a parmeter passed into a PHP script directly.

http://www.eteichertfineprints.com/l...=Grace%20Albee

hunk of script
PHP Code:
<?php include("includes/head.php");
$result=mysql_query("select * from images where artist_name = "$inartist" ");
and this is my error message

Parse error: parse error, unexpected T_VARIABLE in /home/eteicher/public_html/loadartist.php on line 2


so my question is can i use a parameter passed in to PHP script in a MYSQL statement?

Please forgive my newbieness.....
Thanks
Jimmy
jimmyoctane is offline   Reply With Quote