Jump to content

dewey_witt

Members
  • Posts

    151
  • Joined

  • Last visited

    Never

Posts posted by dewey_witt

  1. So i have some cards i want to be able to predict the odds to the draw. there are 3 diferent variable "Rare, Uncommon, and common."..... the draw will be a random three cards....... I need the chances of pulling 1 Rare, 2 Rares, and 3 Rares...... how?

  2. OK so look I installed right I used this as a test script

     

    <?php
    
    require_once 'DB.php';
    PEAR::setErrorHandling(PEAR_ERROR_DIE);
    
    $db_host = 'localhost';
    $db_user = 'root';
    $db_pass = 'password';
    $db_name = 'dataBase_name';
    $dsn = "mysql://$db_user:$db_pass@unix+$db_host/$db_name";
    
    $db = DB::connect($dsn);
    $db->setFetchMode(DB_FETCHMODE_OBJECT);
    
    ?>
    
    

  3. You forgot to close off your function indication @ line 288

     

    // ***** Separate Links ********************************************************
    
    function separate($roots, $urls,       <===RIGHT THERE
                      &$int_pages = Array(),
                      &$int_loads = Array(),
                      &$ext_pages = Array(),
                      &$ext_loads = Array(),
                      $extensions = Array('', 'asp', 'aspx', 'cgi', 'htm', 'html', 'php'))
    {
    

    //it should look like this
    // ***** Separate Links ********************************************************
    
    function separate($roots, $urls,)  //<===this
                      &$int_pages = Array(),
                      &$int_loads = Array(),
                      &$ext_pages = Array(),
                      &$ext_loads = Array(),
                      $extensions = Array('', 'asp', 'aspx', 'cgi', 'htm', 'html', 'php'))
    {
    

  4. <?php
    
    foreach ($imgURL as $value) {
    echo '<img src=\"".$value."\"><br />';
    echo 'Copy & Paste the Code Below to your Profile or Comment Box<br />';
    echo '<input type=\"text\" name=\"Avatar ".$int."\" class=\"\" onclick=\"\" value=\"<center><a href=\"".$siteURL."\"><img src=\"".$value."\"></a><br />".$siteDescription."<center><br /><br />";
    $int++;
    }
    echo '</center>';
    
    ?>
    

     

    Try this I changed it a lil.

  5. <? 
    include("db.php");
    $sql = "SELECT package FROM clients WHERE clientid = $_SESSION[client_id]";
    $result= mysql_query($sql, $connection) or die (mysql_error());
    if (mysql_num_rows($result) > 0) {
    while ($row = mysql_fetch_array($result))  {
    $package = $row['$Package'];
    if($package = "1") {
    $package ="Starter";
    } else
    if($package = "2") {
    $package ="Basic Package";
    } else
    if($package = "3") {
    $package ="Advanced";
    } 
    
    
    } 
    }
    
    echo "$package";
    ?>

     

    Try to use and if statment something like this for this query.

  6.   <?php
    echo "<img src=\"$value\"><br />";
    echo "Copy & Paste the Code Below to your Profile or Comment Box<br />";
    echo '<input type=\"text\" name=\"Avatar $int\" class=\"\" onclick=\"\" value="<a href=\"$siteURL\"><center><img src=\"$value" alt=\"$siteDescription\"></center><br /><br />';
    $int++;
    
    ?>

     

     

    Hey try this........ Dont be scared to test this stuff useing the html tags... I know I know there is a standard but ehe

×
×
  • 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.