Why isn't this working?

    Date: 12/14/05 (PHP Community)    Keywords: php, database

    Just a small problem, but I'm going desperate here because I don't know what wrong. I'm pretty much a noob, you should know...

    this script is for generating the sitetitle; if there's one set in the file it should take the one for the file (that part works), and if it's display.php, it should pull it from a database. The database one is not working, doesn't show anything....
    Here's my code:

    " . $sql . "
    " . mysql_error());
    while ($row = mysql_fetch_array($result))
    {
    $title = $row["title"];
    $category = $row["category"];
    echo " :: $title :: ($category)";
    }
    }
    else echo "";
    ?>


    Thanks in advance :)

    Source: http://www.livejournal.com/community/php/379164.html

« Query Help || Multi-lingual "captcha"... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home