The Most Active and Friendliest
Affiliate Marketing Community Online!

“Adavice”/  “1Win

PHP/MySQL problem

gilbertsavier

New Member
affiliate
Hi

I have just had a site transferred to me that has [Removed false authorship of website: this is a joke I assume, no such authorship exists in the real world, techAdmin] - and I cannot, for the life of me, understand why it will not properly connect to the MySQL database.
I have done many before - so it is not likely to be a just basic error.

When selecting on the search button bottom left I end up with the following message:

"Error en la Base de Datos al ejecutar
select * from fichas where
tipo=''
and precio>= and precio<= and terretam <= and casatam <= order by puntos descYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and precio<= and terretam <= and casatam <= order by puntos desc' at line 3"


The site is [link] - my server "experts" have tried everything and confess to being "flumoxxed !!

Bizarrely - the images that have downloaded (and there are a number genuinely missing) - show in Opera and Firefox - but not in IE !!

Can anyone help or advise me? I can provide all FTP details etc.
 
yeah without seeing it in english it's a little difficult however it might well be this bit:

and casatam <= order by puntos desc

the "casatam <=" shoudl be less than a field and then after that you should put your order by statement.
 
'casatam' needs to be less than or equal to something. Because the order by clause is following immediately after the <= operator sql is throwing an error. You need to place some kind of value between <= and 'order by'
 
you shud check ur puntos word ,,i mean wt is it any kind of id no?

That's not right. 'order by puntos' is fine assuming puntos is a selected column. The problem is that there is nothing following the argument <=. Casatam has to be less than or equal to something for this statement to be correct.
 
it's difficult to understand what is your problem. Maybe you can try to explain it more details in full english...
 
MI
Back