Why Register With OSV?

Join 5700+ of your peers

Get enriched. Access 1270+ quality tutorials right away on:

  • Joomla 2.5.X, 3.0.X
  • WordPress 3.5.X
  • Shopping Carts
  • E-Commerce Payment Gateways
  • PDFs for each tutorial - FREE for download
  • New topics and tutorials added weekly

FREE EBooks

FREE Templates

Member Login

Not a member yet? Sign Up!

Opensourcevarsity Logo
Tutorials & Training from experienced world class trainers
Welcome, Guest
Username Password: Remember me

i wrote this sql query as a test and i get syntax
(1 viewing) (1) Guest
All your queries regarding
MySQL Installation,
Learning MySQL DBA,
and tonnes more... will be solved in this forum
  • Page:
  • 1

TOPIC: i wrote this sql query as a test and i get syntax

i wrote this sql query as a test and i get syntax 1 year, 4 months ago #896

  • kloper
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
i wrote this sql query as a test and i get syntax error.
the error cuased In the bold line
i'm using joomla 1.7 ' cb 1.7 my sql 5.0
the query chak the current session id with all the session id and bring back the user id that open the current session


$query1 = "SELECT b.userid "
."\n FROM #__session AS b, #__session AS s"
."\n WHERE (b.session_id)= " .session_id(). " AND (b.guest=0) AND" . ( ( checkJversion() >= 1 ) ? "(b.client_id = 0)" : "(NOT ( b.usertype is NULL OR b.usertype = ''))" ); $_CB_database->setQuery($query1);
$rows1 = $_CB_database->loadObjectList();
Last Edit: 1 year, 4 months ago by kloper.
  • Page:
  • 1
Time to create page: 1.37 seconds
O-S-V Free Templates

FREE HTML / Joomla / WordPress Templates For Download
Registration Required

CONNECT WITH US

Sitemap   |   Privacy Policy   |   MySQL(70)   |   Disclaimer   |   Reach Out To Us
Designed by Ivan Bayross & Meher Bala | Powered by Joomla
© 2013 All Rights Reserved.