SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 35 of 35
  1. #26
    SitePoint Addict
    Join Date
    Feb 2012
    Location
    Kiwi in Bangkok
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi StarLion

    wow I wish I knew how to trace a variable backwards to the SQL query

    I will have a look in the database and see if I can see anything obvious, like 'adverts'.

    my 2nd not working properly is the Language changer, would you take a look and see if you can see any problem?

    http://numberthree.netne.net/index.php

    when the Thai flag is clicked it seems to just re-load the English files again.


    Quote Originally Posted by StarLion View Post
    A: Without seeing the PHP code, I cant really tell you any more other than to trace backwards the variable used for the picture - eventually you'll get to a SQL query. That query will tell you which table to check. (It's PROBABLY called something obvious, like adverts or something.)

  2. #27
    SitePoint Addict
    Join Date
    Feb 2012
    Location
    Kiwi in Bangkok
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello StarLion

    I went to phpMyAdmin and found this: screen pic attached

    Field: advert_img_path
    Type: varchar(255)
    Collation: latin1_general_ci
    Nul: No

    phpMyAdmin-Adverts.JPG

    what am I looking for?

  3. #28
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    71 Post(s)
    Tagged
    0 Thread(s)
    click the Browse tab, and look at the entries you created. What is in that field for those rows?

    as for the language thing, again, without seeing the PHP for index.php it's going to be difficult. Find where it handles $_GET['change_language'].
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.

  4. #29
    SitePoint Addict
    Join Date
    Feb 2012
    Location
    Kiwi in Bangkok
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi StarLion

    ok in phpMyAdmin/ auctions/name

    SELECT COUNT( * ) AS `Rows` , `name`
    FROM `auctions`
    GROUP BY `name`
    ORDER BY `name`
    LIMIT 0 , 30

    Rows: 3
    name: Thai Stamp
    ...........................................................

    ok in phpMyAdmin/ auctions/picpath

    SELECT COUNT( * ) AS `Rows` , `picpath`
    FROM `auctions`
    GROUP BY `picpath`
    ORDER BY `picpath`
    LIMIT 0 , 30

    Rows: 3
    picpath: (empty-no words-blank)

    .........................................................


    Quote Originally Posted by StarLion View Post
    click the Browse tab, and look at the entries you created. What is in that field for those rows?

    as for the language thing, again, without seeing the PHP for index.php it's going to be difficult. Find where it handles $_GET['change_language'].

  5. #30
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    71 Post(s)
    Tagged
    0 Thread(s)
    Did you get this script from somewhere I can see? Dont take this the wrong way, but you seem to know very little about how this code was put together.
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.

  6. #31
    SitePoint Addict
    Join Date
    Feb 2012
    Location
    Kiwi in Bangkok
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello StarLion

    yes my knowledge is very limited about this script, I am on a huge learning curve

    the script has potential, if I can fix these couple of bugs

    Quote Originally Posted by StarLion View Post
    Did you get this script from somewhere I can see? Dont take this the wrong way, but you seem to know very little about how this code was put together.

  7. #32
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    71 Post(s)
    Tagged
    0 Thread(s)
    Well the point of that was "Is there somewhere I can download the script and look at it" :P
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.

  8. #33
    SitePoint Addict
    Join Date
    Feb 2012
    Location
    Kiwi in Bangkok
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi StarLion

    PM sent with link to script files

    another thing I noticed is the /uplimg folder Chmod value: is 755 is that ok ?

    Quote Originally Posted by StarLion View Post
    Well the point of that was "Is there somewhere I can download the script and look at it" :P

  9. #34
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    71 Post(s)
    Tagged
    0 Thread(s)
    gonna take me a little time to go over it, will get back with you in the morning.
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.

  10. #35
    SitePoint Addict
    Join Date
    Feb 2012
    Location
    Kiwi in Bangkok
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi StarLion

    thank you for your time and generosity,

    just when you can will be great

    Quote Originally Posted by StarLion View Post
    gonna take me a little time to go over it, will get back with you in the morning.


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
  •