Ir para conteúdo
Fórum Script Brasil

Pedrohas2000

Membros
  • Total de itens

    1
  • Registro em

  • Última visita

Sobre Pedrohas2000

Pedrohas2000's Achievements

0

Reputação

  1. Olá boa noite gente, to com um probleminha aqui que não to conseguindo resolver... um erro de sintaxe no script. Se alguém souber e puder dar uma força You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'call from hm2_history where '2011-9-1' + interval 0 day < date + interval 0 hour' at line 1 A sintaxe está dessa forma: $q = '' . 'select count(*) as call from hm2_history where ' . $datewhere . ' ' . $typewhere . ' ' . $ecwhere . ' and user_id = ' . $id; ($sth = mysql_query ($q) OR print mysql_error ()); $row = mysql_fetch_array ($sth); $count_all = $row['call']; ==================================================================================== $datewhere = '\'' . $frm['year_from'] . '-' . $frm['month_from'] . '-' . $frm['day_from'] . '\' + interval 0 day < date + interval ' . $settings['time_dif'] . ' hour and ' . '\'' . $frm['year_to'] . E também essse erro: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/maxhostb/public_html/hyip/inc/earning_history.inc on line 2 ESsas são as 2 primeiras linhas: <? $id = $userinfo['id']; $type = $frm['type']; $type_found = 0; $options = array (); $q = '' . 'select type from hm2_history where user_id = ' . $id . ' group by type order by type'; ($sth = mysql_query ($q) OR print mysql_error ()); while ($row = mysql_fetch_array ($sth)) { if ($row['type'] == Algue´m tem alguma ideia do que seja? já tentei de tudo que meu conhecimento pode, mas não deu... <_<
×
×
  • Criar Novo...