$num_stud = nuRunQuery("SELECT count(customer_id)FROM tbl_batch_stud WHERE customer_id='$cust_id' and batch_id= '$my_batch'");
Hi the variable $num_stud is not storing the value integer it should get?
any idea ?
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
QUERY :
Re: QUERY :
nuRunQuery wont directly give you count(customer_id).
Steven
Code: Select all
$t = nuRunQuery("SELECT count(customer_id) FROM tbl_batch_stud WHERE customer_id='$cust_id' and batch_id= '$my_batch'");
$r = db_fetch_row($t);
$num_stud = $r[0];
-
- Posts: 32
- Joined: Thu Sep 02, 2010 11:19 am