Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Nedeľa, 29. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Adding static data with an sql query

phpMyEdit Configuration     Adding static data with an sql query
Odoslať novú tému   Odpovedať na tému    
 
houghi     Založený: 18.04.2008   Príspevky: 11  
Príspevok Zaslal: 2009-05-14 11:08
Návrat hore  Odpovedať s citátom     

I have the following code:
Kód:
'sql'    =>  'PMEjoin22.'.$main_column,

This works perfectly. The output is in the form "1234".

What I would need is to add "997." in front of each of them to get an output of e.g. "997.1234".

I do get errors all the time when I try this. I asume that I must work with CONCAT. Here something that did NOT work:

Kód:
'sql'    =>  'CONCAT("997.", \'PMEjoin22.\'.$main_column)',

I assume this is because of working with join and.or the wrong use of quotes.

What am I doing wrong?

 
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