Posted by David Grant on 12/16/05 15:26
Paul,
Paul Jinks wrote:
> David Grant wrote:
>> $SQLQuery = "SELECT * FROM project WHERE projTitle = '" .
>> $HTTP_GET_VARS['projTitle'] . "'";
>
> Yep, that fixed it. Thanks. I had a feeling there was a mix up with the
> "s and 's. What's with the . s?
The . is a concatenation operator, i.e. it joins two strings together.
>> Not sure why you've got the or die() there.
>
> I had the idea that you could put an or die() after any command and it
> would tell you that it had screwed up at that point. Bad idea?
Bit hard to maintain I should think. It's unlikely you're going to
screw up a string concatenation and it still be able to call the die().
Cheers,
David
--
David Grant
http://www.grant.org.uk/
[Back to original message]
|