User Profile

Collapse

Profile Sidebar

Collapse
bananahead
bananahead
Last Activity: Sep 24 '08, 11:42 PM
Joined: Aug 1 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hi Guys!!!

    Atli and PhpNerd, thank you very much for your assistance!!!

    I was in the process of moving homes and I just got my net re-connected again. Sorry I could not check the posts before!!!

    I will try to work out the above solutions and see what I get!!!

    Atli, the vars $biasRatio and $targetRatio have any values? Or $targetRatio is the actual value from the DB?? How about $biasRatio?...
    See more | Go to post

    Leave a comment:


  • How to rotate code based on how many visits already recorded to DB?

    Hello all, and thanks again for the help, I have been very pleased with the quality posts on this forum!

    Here what I need to solve:

    I have 2 tables on a db, one is called visitor_log and here is the structure:

    [PHP]
    visitor_ID | visitor_IP | visitor_date (DATETIME FIELD) | article_ID
    1 192.168.1.1 2008-09-02 01:12:19 10
    2 192.168.1.2...
    See more | Go to post

  • You guys are awesome! It is working as it should!

    Again, thanks so much, love you guys!

    I need some help with a new issue though :-) I will post soon!
    See more | Go to post

    Leave a comment:


  • My God guys, you saved me from a really hard headache!!! Im gonna try this now and report back!!!

    THANKS SO MUCH!!! Love ya guys :-)
    See more | Go to post

    Leave a comment:


  • Thanks for the reply!

    to explain it a bit better, this is what I need:

    I need to be able to count the number of visits by each hour, so if you look at the sample table:

    visitor_ID | visitor_IP | visitor_date (DATETIME FIELD)

    1 192.168.1.1 2008-09-02 01:12:19
    2 192.168.1.2 2008-09-02 05:26:22
    3 192.168.1.3 2008-09-02...
    See more | Go to post

    Leave a comment:


  • How would I query the mySQL? Im not really sure how to put all together so that the code will spit as:
    [code=php]
    $data = array('01:00AM' => 1,'02:00AM' => 0,'03:00AM' => 0,'04:00AM' => 0, '05:00AM' => 1, '06:00AM' => 1,'07:00AM' => 0,'08:00AM' => 0,'09:00AM' => 0,'10:00AM' => 0,'11:00AM' => 0,'12:00PM' => 0,'13:00PM' => 0,'14:00PM' => 1,'15:00PM' => 0,'16:00PM' => 0,'17:00PM => 1'02:00AM'...
    See more | Go to post
    Last edited by pbmods; Sep 7 '08, 05:04 PM. Reason: Added CODE tags.

    Leave a comment:


  • bananahead
    started a topic How to Create this complicated Array? Help
    in PHP

    How to Create this complicated Array? Help

    Hello PHP Pros!

    I need some help with this complicated problem!

    I have looked into how to do arrays but Im a bit confused on this one. I have a table in the following format:
    Code:
    visitor_ID   | visitor_IP    | visitor_date (DATETIME FIELD)
    
    1                 192.168.1.1    2008-09-02 01:12:19
    2                 192.168.1.2    2008-09-02 05:26:22
    3                 192.168.1.3    2008-09-02
    ...
    See more | Go to post
    Last edited by pbmods; Sep 7 '08, 05:04 PM. Reason: Added CODE tags.

  • bananahead
    replied to Filtering Empty Array
    in PHP
    Sorry for the code, I pasted and tried to fix it, but it came up like that
    [code=php]
    <?php

    include 'includes/conecta.php';

    $sql_select = "select member_id, firstname, lastname
    from members";

    $result_set = mysql_query($sq l_select);

    $html = '';

    while($row = mysql_fetch_arr ay($result_set) ) {

    $member_id =...
    See more | Go to post
    Last edited by Atli; Aug 1 '08, 08:23 PM. Reason: Added [code] tags

    Leave a comment:


  • bananahead
    started a topic Filtering Empty Array
    in PHP

    Filtering Empty Array

    Hello,

    Im a noob when it comes to php, and Im trying to figure out how to work out a code that will allow me to filter out an array.

    Basically, I have a system to assign offers to my clients and I have a page that is used to assign offers. Once all offers are assigned to a client, I dont want the form to be displayed anymore, but i cant get it work. here is the code:

    [PHP]$html .= "<div style='backgrou nd-image:url(image s/gradientdiv.gif );...
    See more | Go to post
    Last edited by Atli; Aug 1 '08, 08:22 PM. Reason: Cleaned up the title
No activity results to display
Show More
Working...