Results 1 to 7 of 7

Thread: When AWS data isn't available

  1. #1
    Registered
    Join Date
    Jan 2004
    Posts
    224

    When AWS data isn't available

    When AWS data isn't available for the reviews, the rating, etc., how do you display something like "Not available"?

  2. #2
    Registered Mike's Avatar
    Join Date
    May 2003
    Location
    UK
    Posts
    2,755
    I just use if statements. Like if the value of AverageCustomerRating is equal to 0, I echo No rating available.
    Don't you just love free internet games ?

  3. #3
    Registered
    Join Date
    Jan 2004
    Posts
    224
    How would you do this with the reviews?

  4. #4
    Registered Mike's Avatar
    Join Date
    May 2003
    Location
    UK
    Posts
    2,755
    Same way.
    Don't you just love free internet games ?

  5. #5
    Registered
    Join Date
    Jan 2004
    Posts
    224
    You would use 0 as a value if no reviews are available?

  6. #6
    Registered
    Join Date
    Jan 2004
    Posts
    224
    PHP Code:
    if $Reviews "0" then echo "No reviews available." 
    Would that work?

  7. #7
    Going strong! Kings's Avatar
    Join Date
    Aug 2003
    Posts
    61
    PHP Code:
    if (is_array($details['Reviews']['CustomerReviews'])) {
    // The reviews are available
    } else {
    // No reviews
    echo "No Reviews";

    Dennis Pallett

Similar Threads

  1. Excluding Rows in PHP?
    By Mike in forum Website Programming & Databases
    Replies: 18
    Last Post: 01-27-2004, 04:03 PM
  2. Query result column separation...
    By Stevens in forum Website Programming & Databases
    Replies: 41
    Last Post: 10-29-2003, 09:11 AM

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
  •