i tryed adding w.email to
- Code: Select all
$sql = "
select p.product_id,p.product_name,w.winner,w.bid_amount,if(w.email_sent,'Yes','No') as email_sent,if(w.admin_email_sent,'Yes','No') as admin_email_sent,convert_tz(w.close_date,'SYSTEM','".df_utc_offset()."') as close_date
from products p left join closed w on p.product_id=w.product_id";
it gives me this error at the top of the page and the report is empty
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/zedimus/public_html/actions/reports.php on line 13
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/zedimus/public_html/dataface/Dataface/RecordGrid.php on line 99
Warning: Invalid argument supplied for foreach() in /home/zedimus/public_html/dataface/Dataface/RecordGrid.php on line 159
That just breaks my report. Do i need to add some code to dataface/Dataface/RecordGrid.php ?
and tryed changing
- Code: Select all
$row['email'] = $user->val('email');
to
- Code: Select all
if ( @$row['email']){
$user = new Dataface_Record('users', array('email'=>$row['email']));
and that gives me white page with this error
Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /home/zedimus/public_html/actions/reports.php on line 34
[/code]
Edit:
Do i need to add new fields in the db ?