Jump to content

Morrac

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Morrac's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. ok using extract($ra) and print the variable that I used for the extract statement I get 0
  2. I am having some problems with a couple of MySQL lines of code on a website that I am working on. $q = "SELECT COUNT(ID) FROM ".$tables['TableNameGoesHere']." WHERE AssocA=".$logObj->ID." AND (AssocB=10 OR AssocB=1)"; $r = mysql_query($q); $ra = mysql_fetch_array($r); The problem I am having is that $r is returning Resource id #17 and $ra is returning just Array (not an array just the work Array). I don't know what the problem could be ... I am completely stumped.
  3. well the include statement goes like this: if(!@include("./plugins/lostNFound.inc.php")) { @include("../plugins/lostNFound.inc.php"); } This include statement is done inside of another if statement in the community.php file.
  4. Hello, I am working on a web site that includes a file called lostNFound.inc.php which I need to display a database of lost and found pets. I have the include statement right and the link is showing up but for some reason I cannot get the right function to work. The link code is: print "<a href\"".$PHP_SELF."?command=addLostNFoundPet&display=".$display."\" class=\"BBSV2StandardLink\" border=\"0\">Add new Lost N Found Pet</a>"; I inherited this site and most of the code is not the way I like to program but I have been do what I can. Anyway, the PHP_SELF points to the community.php file which doesn't have the addLostNFoundPet function in it (the lostNFound.inc.php file has that function in it) but when I point the link to the lostNFound.inc.php page I get a blank page. Now I need the form and the database to show (which the addLostNFoundPet function does) but I need it to show on the community.php page. Any idea or do I need to provide more code? Morrac
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.