phpWebLog

find
story index | search | archive | submit story | downloads | stats | contact
Topics
  • General (915)
  • Announcements (20)
  • Development (521)
  • Mods & Hacks (33)


  • phpWebLog
  • Latest Release - 0.5.3 (BETA)
  • Latest Stable - 0.5.2
  • ChangeLog
  • TODO / Roadmap
  • BUGS

    CVS WEB

  • New XL fork 0.5.2
  • Unstable branch 0.5.3

  • For development discussions and for general support, join the phpWebLog mailing list

    phpWebLog needs active developers to help fix bugs. If you are interested, send me your SourceForge login information for CVS access.


    Last 5 Comments
  • phpweblog 0.5.2 (and maybe 0.5.3) security problems (JustTesting)
  • Meaning of Blog (JKilborn)
  • Meaning of Blog (JKilborn)
  • phpweblog 0.5.2 (and maybe 0.5.3) security problems (Anonymous)
  • phpweblog 0.5.2 (and maybe 0.5.3) security problems (test)


  • Why it's hard to use a database inside a page
    Posted under Development by Twyst on Sunday October 08 2000 @ 01:26PM EDT
    Development Well, I've just realized why it's such a pain to use my own database routines in phpweblog, without causing errors in the script itself.

    $db = mysql_connect($G_HOST,$G_USER,$G_PASS);
    @mysql_select_db($G_DB) or die("Unable to connect to database $G_DB. Be sure to edit include/common.inc.php.");
    $result = mysql_query($sql,$db);

    While that is valid, it causes errors, because the database isn't selected for each query. So if I use a database, I _have_ to redo your database connections before I use an include file, which is more work than necessary.

    Removing the @mysql_select_db($G_DB) or die("Unable to connect to database $G_DB. Be sure to edit include/common.inc.php."); line, and replacing mysql_query($sql,$db); with mysql_db_query($G_DB,$sql,$db); will solve this perfectly.

    < BUG in phpweblog-unstable.tar.gz | Underscore in Table Names >

    jason writes on Monday October 09 2000 @ 10:34AM EDT: [ reply | parent ]
    Thanks, and I agree.
    Titus Jonathan writes on Friday February 23 2001 @ 05:46AM EST: [ reply | parent ]
    How to make connection with Sybase NT?
    As we know, the syntax is:
    sybase_connect("servername","user","password")

    Where I must define "servername" ?
    Is it in c:\sybase\bin\sql.ini ?
    I have done, but not success. What is the problem?

    thanks
    ampere writes on Tuesday August 07 2001 @ 03:19AM EDT: [ reply | parent ]
    While refresh the page that connect to sybase -window by using php script must be show message
    "Warning Sybase:Unabled to connect to: .../../.. online..." and can not connect to database.
    But sometime able to connect to sybase.
    Any idea to solve this problem?
    Post a Comment
    Name:
    Email:
    URL:
      Remember my information (uses cookies)
      I would rather be anonymous
    Comment:
    * Your email will not be made public.
    Save As:

    SourceForge
    SourceForge is providing us a mailing list , documentation and a CVS tree.

    SourceForge Logo


    PHP.net
  • Call for Speakers : PHP Qu&eacute;bec 2004
  • New function list auto completion
  • PHP 4.3.4 released!
  • PHP 5.0.0 Beta 2 released
  • Forum PHP in Paris, November 26 & 27th
  • Monthly PHP Magazine in French launched!
  • ApacheCon 2003, the Global Hub for All Things Apache
  • php|cruise: The World's First Ever PHP-only Cruise
  • PHP Usage Survey Results
  • PHP Manual CHM Edition - 12th build

  • PHPBuilder
  • Zend Studio 3.0
  • GIS Mapping with PHP
  • On User-Defined Timezones in PHP
  • Dreamweaver MX 2004
  • Using PEAR's HTML_Table Class
  • An introduction to the ADOdb class library, Part 2
  • An introduction to the ADOdb class library for PHP
  • Manually Expiring Web Pages
  • Regression Testing With JMeter
  • Advanced Image Editing Under the GD Library

  • phpWebLog: A PHP News and Content Management System
    Copyright (C) 2000-2002, Jason Hines / Eye Integrated Communications