De: Adam French [mailto:[EMAIL PROTECTED]]
### Enviado el: viernes, 03 de enero de 2003 3:18
### Para: [EMAIL PROTECTED]
### Asunto: [PHP] DUMB QUESTION I'M SURE
###
### I'm just starting out, this is my script...
###
### " .$feildvalue. "";
### }
### echo"&qu
I think it's just the $query var not having the right number of quotes.
I added single quotes around the value.
$name = $_POST['username'];
$name = $name;
$db = mysql_connect("localhost");
mysql_select_db("vinyldealers",$db);
$query = "SELECT shops.name FROM shops WHERE name = '".$name."'";
$re
l: viernes, 03 de enero de 2003 3:18
Para: [EMAIL PROTECTED]
Asunto: [PHP] DUMB QUESTION I'M SURE
I'm just starting out, this is my script...
" .$feildvalue. "";
}
echo"";
}
?>
This is the error I get...
Parse error: parse error, unexpected ':'
ra: [EMAIL PROTECTED]
Asunto: [PHP] DUMB QUESTION I'M SURE
I'm just starting out, this is my script...
" .$feildvalue. "";
}
echo"";
}
?>
This is the error I get...
Parse error: parse error, unexpected ':' in
C:\Xitami\webpages\php\result1
Hi,
Friday, January 3, 2003, 4:18:05 PM, you wrote:
AF> I'm just starting out, this is my script...
AF> $name = $_POST['username'];
AF> $name = $name;
AF> $db = mysql_connect("localhost");
AF> mysql_select_db("vinyldealers",$db);
AF> $query = "SELECT shops.name FROM shops WHERE name = ".$name.";
I'm just starting out, this is my script...
" .$feildvalue. "";
}
echo"";
}
?>
This is the error I get...
Parse error: parse error, unexpected ':' in
C:\Xitami\webpages\php\result1.php on line 12
I dunno what I'm doing wrong. Help please???
--
PHP General Mailing List (http://www.php.ne
6 matches
Mail list logo