Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Weird problem with join

phpMyEdit General     Weird problem with join
Odoslať novú tému   Odpovedať na tému    
 
sbuser     Založený: 21.04.2006   Príspevky: 1  
Príspevok Zaslal: 2006-04-21 15:24
Návrat hore  Odpovedať s citátom     

I get a
MySQL error 1054
Unknown column 'PMEtable0.join_to_Email' in 'on clause'
when trying to join. I have done a join before on another table and it worked fine. Been using phpmyedit for a couple years with great results.

$opts['fdd']['join_to_Email'] = array(
'input' => 'VR',
'options' => '',
'values' => Array(
'table' => 'EmailPermanentList', //joined table
'column' => 'EmailPermanentId', //the joined key
'description' => 'Email ID',
'join' => '$main_table.id=$join_table.EmailPermanentId,'
)
);

Here's the query it prints out. Can't figure out why it wants to


And here's the query that prints out.
SELECT PMEtable0.id AS qf0,PMEtable0.Ptype AS qf2,PMEtable0.NewExisting AS qf3,PMEtable0.ProjectName AS qf4,PMEtable0.ClientName AS qf5,PMEtable0.Source AS qf7,PMEtable0.POST AS qf8,PMEtable0.Narrative AS qf12,PMEtable0.Chambers AS qf13,PMEtable0.Bolivar AS qf14,PMEtable0.Hardin AS qf15,PMEtable0.Liberty AS qf16,PMEtable0.Jefferson AS qf17,PMEtable0.Jasper AS qf18,PMEtable0.Newton AS qf19,PMEtable0.Orange AS qf20,PMEtable0.Tyler AS qf21 FROM Activities AS PMEtable0 LEFT OUTER JOIN w248249.EmailPermanentList AS PMEjoin6 ON PMEjoin6.EmailPermanentId = PMEtable0.join_to_Email ORDER BY PMEtable0.id DESC,PMEtable0.Ptype

 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2006-04-21 16:02
Návrat hore  Odpovedať s citátom     

you have no field 'join_to_Email' ?

then you need some option like
'sql'=>'id'

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov