Go Back   Free website templates > Web Template Help > PHP and MySQL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Join now to download all the free website templates or post on the forum. If you have never been on a forum before read the FAQ. It's quick, easy and free to join!
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-04-2009, 12:51 PM
Junior Member
 
Join Date: Jun 2009
Posts: 25
gilbertsavier is on a distinguished road
Default PHP/MySQL problem

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.


Thanks & regards
Lokananth

Last edited by CovertPea; 08-04-2009 at 01:27 PM.
Reply With Quote
  #2 (permalink)  
Old 09-13-2009, 06:42 PM
wilmec's Avatar
Member
 
Join Date: Sep 2009
Location: Plymouth UK
Posts: 45
wilmec is on a distinguished road
Default

Just at a quick look your error is
"Error en la Base de Datos al ejecutar
select * from fichas where
tipo=''<- should be
"Error en la Base de Datos al ejecutar
select * from fichas where
tipo=''''
an extra 2 single quotes after the = and before the " double quote.
so that it wraps anything you have in it IE
("SELECT * FROM blah WHERE this = '$whatever' ")
__________________
http://www.anscomputers.co.uk Free seo webmaster tools
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:39 AM.



mouseover mouseover mouseover