Join Query Help

Posted on 16th Feb 2014 01:33 pm by admin

Hi all,

I am having problems with the below code, which we shall call 'my first join query'! Suprise suprise its not working and I am getting an error I have not seen before:

QuoteParse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in C:wampwwwstockluckpagesstockpage.php
The code is:

Code: [Select]$querybuy=" SELECT, stocks.t_val
FROM users_stocks, stocks
WHERE user_id = ' . $_SESSION['user_id'] .'
AND stock_id = '$stock_id'";

$result = mysql_query($querybuy) or die(mysql_error());
and the parse error is referring to this line:
QuoteWHERE user_id = ' . $_SESSION['user_id'] .'
What I am doing wrong?

No comments posted yet

Your Answer:

Login to answer
202 Like 23 Dislike
Previous forums Next forums
Other forums

Replica Breitling klokker
swiss kopi klokker aaa +
sveitsiske kopi klokker
[b]høy kvalitet kopi klokker[/b] | [b][u

Save file by click
I'm not understand how to save file from page. I'd like make link to file with save abil

Session login issue
I'm wondering how to fix a problem I'm having with a session-based login system

Say I go to h

Replica Omega Seamaster, AAA Omega Seamaster montres à vendre, Rolex et Omega Replica Watches, Replica Watches automatiques | Haute Qualité Replica Watches
[b][url=]Répliques de montres suisses aaa +[/url][/b] [b][url=http

Replica Rolex Datejust II Watch - Orologi di lusso Rolex senza tempo [3064] - €184.14 : replica professionale orologi negozi,
[b][url=]orologi[/url][/b][b][url=]swiss orologi

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Google+ Indyaspeak @ Pinterest RSS