Elxis CMS Forum
Ελληνικό Forum => Βάσεις Δεδομένων => Topic started by: psiloscc on December 30, 2009, 13:27:37
-
Γεια σας, χρόνια πολλά,
Έχω εγκαταστήσει το marketplace multilanguage και προσπάθησα να προσθέσω επιπλέον πεδία αλλά κάτι μένει ακόμα να κάνω γιατί μου βγάζει σφάλμα της βάσης όταν πατάω αποθήκευση αγγελίας.
Μέχρι τώρα κατάφερα να προσθέσω τα πεδία στα αρχεία του marketolace, φαίνονται κανονικά στην διαχείριση (τα έχω όλα ΝΑΙ), και στην προσθήκη αγγελίας, και πρόσθεσα χειροκίνητα τα νέα πεδία μέσα στην MySQL (Έκδοση: 5.0.88) μόνο στα elx_marketplace_ads και elx_marketplace_config,
Αν είναι εύκολο από έδω και πέρα για να φτιάξω το πρόβλημα και μπορεί κάποιος να με βοηθήσει αλλιώς να αφήσω μόνο τα αρχικά πεδία του matketplace,
το σφάλμα που μου βγάζει όταν πατάω αποθήκευση αγγελίας είναι:
URI: index.php?option=com_marketplace&page=write_ad&Itemid=1132
Message: 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 'mod, etos2, kivika, xiliom, xroma, ipoi, portes, kaysimo, ' at line 2
INSERT INTO elx_marketplace_ads ( category, userid, user, name, surname, street, zip, city, state, country, tmoikias, tmoikop, etos, ypnod, orofoi, mpania, entos, ther, hliakos, asanser, mod, etos2, kivika, xiliom, xroma, ipoi, portes, kaysimo, phone1, phone2, email, web, ad_type, ad_headline, ad_text, ad_condition, ad_price, ad_currency, ad_negotiation, date_created, date_lastmodified, duration, flag_featured, flag_top, flag_commercial, published ) VALUES ( '1', '62', '-----', '-----', '2', '', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '------@------', '', '1', '0000000000000001', '111111111111111111111110', '', '', '0.00', 'EUR', '', CURRENT_DATE(), CURRENT_DATE(), '0', '0', '0', '0' )
[attachment deleted by admin]
-
try this
$sql = "INSERT INTO #__marketplace_ads (
category, userid, user, name, surname, street, zip, city, state, country,
tmoikias, tmoikop, etos, ypnod, orofoi, mpania, entos, ther, hliakos, asanser, mod, etos2, kivika, xiliom, xroma, ipoi, portes, kaysimo,
phone1, phone2, email, web, ad_type, ad_headline, ad_text, ad_condition, ad_price, ad_currency, ad_negotiation, date_created, date_lastmodified, duration, flag_featured, flag_top, flag_commercial, published
)
VALUES (
'$category', '$userid', '$username', '$name', '$surname', '$street', '$zip', '$city', '$state','$country', '$tmoikias','$tmoikop','$etos','$ypnod','$orofoi','$mpania','$entos','$ther','$hliakos','$asanser','$mod','$etos2','$kivika','$xiliom','$xroma','$ipoi','$portes','$kaysimo',
'$phone1', '$phone2', '$email', '$web', '$ad_type', '$ad_headline', '$ad_text', '$ad_condition', '$ad_price', '$ad_currency', '$ad_negotiation', CURRENT_DATE(), CURRENT_DATE(), '$duration', '$flagFeatured', '$flagTop', '$flagCommercial', '$publishAd'
)";
I think you're my beta tester ;)
-
thanks, what make in write_ad.php ?
my write_ad.php now is: look my write_ad file
edit: delete url
and
-----------------------
$sql = "INSERT INTO #__marketplace_ads (
category, userid, user, name, surname, street, zip, city, state, country, tmoikias, tmoikop, etos, ypnod, orofoi, mpania, entos, ther, hliakos, asanser, mod, etos2, kivika, xiliom, xroma, ipoi, portes, kaysimo, phone1, phone2, email, web,
ad_type, ad_headline, ad_text, ad_condition, ad_price, ad_currency, ad_negotiation, date_created, date_lastmodified, duration,
flag_featured, flag_top, flag_commercial, published
)
VALUES (
'$category', '$userid', '$username', '$name', '$surname', '$street', '$zip', '$city', '$state', '$country', '$tmoikias', '$tmoikop', '$etos', '$ypnod', '$orofoi', '$mpania', '$entos', '$ther', '$hliakos', '$asanser', '$mod', '$etos2', '$kivika', '$xiliom', '$xroma', '$ipoi', '$portes', '$kaysimo', '$phone1', '$phone2', '$email', '$web', '$ad_type', '$ad_headline', '$ad_text', '$duration',
'$ad_condition', '$ad_price', '$ad_currency', '$ad_negotiation', CURRENT_DATE(), CURRENT_DATE(),
'$flagFeatured', '$flagTop', '$flagCommercial', '$publishAd'
)";
-------------------
-
i sent a mail to cretecar.gr with file corrected ;)
-
i sent a mail to cretecar.gr with file corrected ;)
thanks for all, i see my email later, happy new year!
-
I insert new files but i have again problem, error is:
URI: index.php?option=com_marketplace&page=write_ad&Itemid=1132
Message: 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 'mod, etos2, kivika, xiliom, xroma, ipoi, portes, kaysimo, phone1, phone2, ' at line 3
INSERT INTO elx_marketplace_ads ( category, userid, user, name, surname, street, zip, city, state, country, tmoikias, tmoikop, etos, ypnod, orofoi, mpania, entos, ther, hliakos, asanser, mod, etos2, kivika, xiliom, xroma, ipoi, portes, kaysimo, phone1, phone2, email, web, ad_type, ad_headline, ad_text, ad_condition, ad_price, ad_currency, ad_negotiation, date_created, date_lastmodified, duration, flag_featured, flag_top, flag_commercial, published ) VALUES ( '1', '62', '-----------', '------', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '','', '', '', '', '', '', '', '', '', '', '----------', '', '1', '11111111111111111110', '11111', '', '0.00', 'EUR', '', CURRENT_DATE(), CURRENT_DATE(), '60', '0', '0', '0', '0' )
-
rename "mod" field :) (example in modi )
you can't use in mysql names of statements used in mysql as field names ;) you can have similar errors
-
rename "mod" field :) (example in modi )
you can't use in mysql names of statements used in mysql as field names ;) you can have similar errors
I rename "mod" and now its ok all, thanks and happy new year!!!
Τελικά το βασικό πρόβλημα ήταν το πεδίο mod που έχω προσθέσει εγώ το οποίο έπρεπε να μετονομάσω γιατί από ότι κατάλαβα μάλλον το ίδιο όνομα χρησιμοποιεί κάπου η mysql και το duration του marketplace το οποίο το διόρθωσε ο speck και είναι στο καινούριο patch του marketplace.