Skip to main content
June 2, 2009
Question

help with displaying integer values

  • June 2, 2009
  • 1 reply
  • 370 views

I am not sure what is going on in my code.

I have a field where  use

<?php

if ($pets==1) echo "Pets Allowed";
?>

and that works fine.  Integer 1 in my database.

But when I want to use that for another field, same exact settings, just different field, nothing shows up.  Even tried putting in quotes.  I queried from mysql with success and using the entered value of 1 in the dreamweaver recordset window and it showd.  But yet the PHP wont display.

This topic has been closed for replies.

1 reply

David_Powers
Inspiring
June 2, 2009

You have showed an example that works, but not one that fails. It's the code that fails that you need to show.

June 2, 2009

That's the thing.  Everything is exactly the same.  The line of code is copied and only replacing pets with cdla.