Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

help with displaying integer values

Guest
Jun 02, 2009 Jun 02, 2009

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.

TOPICS
Server side applications
376
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 02, 2009 Jun 02, 2009

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 02, 2009 Jun 02, 2009
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines