total account user code here

Results 1 to 11 of 11
  1. #1
    Account Upgraded | Title Enabled! gmowner is offline
    MemberRank
    May 2009 Join Date
    i live in....Location
    270Posts

    Post total account user code here

    Total Online:&nbsp;<?php onlineTotal(); ?>
    Last edited by lCON; 24-08-09 at 07:28 PM.


  2. #2
    Account Upgraded | Title Enabled! patrick ster is offline
    MemberRank
    Nov 2008 Join Date
    226Posts

    Re: total account user code here

    Thx nice release!:D

  3. #3
    Account Upgraded | Title Enabled! gmowner is offline
    MemberRank
    May 2009 Join Date
    i live in....Location
    270Posts

    Re: total account user code here

    no problem ^^ it`s my job to share hehehe ^^

  4. #4
    TGN Studio's lCON is offline
    MemberRank
    Jan 2007 Join Date
    939Posts

    Re: total account user code here

    um this mite be nice and helpful if someone new the function for it lol.

    And how to send the data to the Db cause the db does not send data normally. On Arc files.
    This tells me you really don't understand php. all you posted was a call to a function that they may not event have.

  5. #5
    OsiRose DEV XxXshidoXxX is offline
    MemberRank
    Sep 2006 Join Date
    eeeLocation
    212Posts

    Re: total account user code here

    <p>Total Online:&nbsp;<?php onlineTotal(); ?></p>
    ok... This is not a ''Code'' , just a line who display the result of the fonction before , anyone can write it , its not a release.


    lets decompose it for fun

    <p> = ok just for the ''good looking''
    &nbsp = first thing usable
    onlineTotal = and wtf it comes from ?

    you must tell what version of rose you use , what emu , what cms or whatever is your code based on
    and by code i mean , not a fucking line .
    Strange thing is i'm sure its codded in a lot of '' open source website '' so KUNK ?

  6. #6
    Account Upgraded | Title Enabled! gmowner is offline
    MemberRank
    May 2009 Join Date
    i live in....Location
    270Posts

    Re: total account user code here

    can use only on osrose osirose osprose

  7. #7
    TGN Studio's lCON is offline
    MemberRank
    Jan 2007 Join Date
    939Posts

    Re: total account user code here

    But your not getting the point here. They sill need to write a function that calls the database table and entry a echo of the data. I'm not trying to be rude but what you post still is nothing.

    This is a Function for osrose osirose and osrose

    Ok first Your config file for db connection.

    Code:
    <?php
    //////Database Info///////
    $DBhost = "localhost";   ///// Db Host location
    $DBuser = "root";        ////  Db User Name
    $DBpass = "";      ////  Db Password
    $DBName = "";       ////  Db Name
    //////////////////
    
    mysql_pconnect($DBhost,$DBuser,$DBpass) or die(mysql_error());
    mysql_select_db("$DBName") or die(mysql_error());
    
    ///How manny Online
    function ONL() {
    	global $dbhost", $Dbuser, $DBpass;
    $db = mysql_connect("$dbhost", $Dbuser, $DBpass);
    mysql_select_db( $Dbname ,$db);
    $sql = "select * from accounttable where online = '1'";
    $result = mysql_query($sql);
    echo "".mysql_num_rows($result);
    }
    
    ?>

    Your page you wanna display the data
    Now what you posted witch was usless with out the above data

    Code:
    <?php include( 'what ever name you named the above file.php' );
    error_reporting(O);
    ?>
    
    Total Online:<?php ONL() ?>
    Now i have not used mysql in a bit but i think most of its right with changing the few missing areas

  8. #8
    Member MyMomsAnIdiot is offline
    MemberRank
    Oct 2008 Join Date
    69Posts

    Re: total account user code here

    gmowner u are really noob... u dont know to code and u just unlife kid =D

  9. #9
    Account Upgraded | Title Enabled! gmowner is offline
    MemberRank
    May 2009 Join Date
    i live in....Location
    270Posts

    Re: total account user code here

    hayyzzz nub ok

    i will accept that term

    but im sure that there some people that i can help with that code or something etc...

  10. #10
    Account Upgraded | Title Enabled! patrick ster is offline
    MemberRank
    Nov 2008 Join Date
    226Posts

    Re: total account user code here

    Quote Originally Posted by MyMomsAnIdiot View Post
    gmowner u are really noob... u dont know to code and u just unlife kid =D

    Man whats ur problem i never see u post something-.-

    atleast he trying something on this forum

    And the forum is a kinda dead so....

  11. #11
    TGN Studio's lCON is offline
    MemberRank
    Jan 2007 Join Date
    939Posts

    Re: total account user code here

    right i agree he thought he was doing right. I just suggest to know what your talking about before posting cause people here will ridicule you to the fullest. But yea your line means noting what so ever without the other half. wit out it is just and error on your page.



Advertisement