Welcome our webmaster and SEO forum
Please enjoy the forum, contribute what you can, and wind up the Moderators!
Results 1 to 7 of 7

Thread: PHP/MySQL problem

  1. #1
    gilbertsavier is offline Member
    Join Date
    Jun 2009
    Posts
    31

    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
    Live Chat Software By miOOt

  2. #2
    Join Date
    Jul 2009
    Posts
    42

    Default

    Can you tell me its English so i can help you , Mate
    Hire Php/cakephp developer
    start from 3.99$ per hour

  3. #3
    swordfishhostingltd is offline Junior Member
    Join Date
    Nov 2009
    Location
    Nottingham, UK
    Posts
    2

    Default

    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.

  4. #4
    surreypcsupport's Avatar
    surreypcsupport is offline Senior Member
    Join Date
    Nov 2008
    Location
    surrey
    Posts
    565

    Default

    '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'

  5. #5
    elisha24 is offline Junior Member
    Join Date
    Feb 2010
    Posts
    1

    Default

    you shud check ur puntos word ,,i mean wt is it any kind of id no?

  6. #6
    surreypcsupport's Avatar
    surreypcsupport is offline Senior Member
    Join Date
    Nov 2008
    Location
    surrey
    Posts
    565

    Default

    Quote Originally Posted by elisha24 View Post
    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.

  7. #7
    silverf0x's Avatar
    silverf0x is offline Member
    Join Date
    Jul 2010
    Posts
    53

    Default

    it's difficult to understand what is your problem. Maybe you can try to explain it more details in full english...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124