Welcome Guest, Not a member yet? Register   Sign In
Issue with joining tables.
#3

(This post was last modified: 08-25-2018, 12:34 PM by HarrysR.)

(08-25-2018, 05:31 AM)jreklund Wrote: I can't see that you are converting $pet_entry_id into an integer. It will be a string of '0' so the following will not be true.
PHP Code:
  if($pet_entry_id === && $pet_entry_slug === FALSE ){ 

The problem is not the Pet_entry_id.. The problem is when the breed (which is optional) gets a zero value. If the value is different and not 0 them it works fine. I dont want that though, since as i mentioned is optional

//Life motto
if (sad() == true) {
     sad().stop();
     develop();
}
Reply


Messages In This Thread
Issue with joining tables. - by HarrysR - 08-24-2018, 03:11 PM
RE: Issue with joining tables. - by jreklund - 08-25-2018, 05:31 AM
RE: Issue with joining tables. - by HarrysR - 08-25-2018, 12:33 PM
RE: Issue with joining tables. - by HarrysR - 08-25-2018, 02:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB