User Profile

Collapse

Profile Sidebar

Collapse
assgar
assgar
Last Activity: May 26 '08, 01:37 AM
Joined: Aug 4 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • assgar
    started a topic Select where clause with "IN"
    in PHP

    Select where clause with "IN"

    Hi

    I would like to put a list of ids in an array
    and loop to select data from a table using
    "IN" in the where clause.

    I am not having any success getting this to work.
    Any suggestions?


    Note:I am using Mysql database, apache, linux/Windows


    [php]
    <?
    //array with list of friends to display
    $friend = array('1','2',' 3','4');...
    See more | Go to post

  • Hi

    I hope this better explains what I am trying to accomplish.

    The events are recurring every month, but not recurring at the same time or on the same day of the week.

    Thank
    See more | Go to post

    Leave a comment:


  • Inserting alternating event/appointment type using time and date range

    Hi

    I need help.

    I know what I want to accomplish, but I do not know how to do it.

    WHAT I NEED HELP ACCOMPLISHING:
    How to do I insert data into a table for a date range of two or more months,
    where every second or third week should be able to have different events/appointments.

    POSSIBLE APPROACH:
    I would like to choose a 7 day cycle/template,...
    See more | Go to post

  • assgar
    replied to looping to insert event types into schedule
    in PHP
    Hi

    The number of inserted events for each day is 148 there should only be a maximum of 24 inserts per
    day. There should not be inserts on Sunday or the following week.



    pk date time event type
    Monday
    1 2007-01-01 09:00:00 201 This is OK
    2 2007-01-01 09:15:00 201
    3 2007-01-01 09:30:00 ...
    See more | Go to post

    Leave a comment:


  • assgar
    started a topic looping to insert event types into schedule
    in PHP

    looping to insert event types into schedule

    Hi

    I am having problem with my loping.
    I don't know if I have chosen the correct approach.

    GOAL:
    I need to insert into a table event types for a specific date range.
    The calendar the event type is displayed on is divided into
    15 minutes time intervals


    A group consist of days of the week, each day consist of segments of
    time blocks for different events:
    ...
    See more | Go to post
    Last edited by pbmods; Dec 2 '07, 03:00 PM. Reason: Removed CODE tags.

  • assgar
    replied to Retrieving and comparing data from arrays
    in PHP
    Solution

    Hello
    Thanks for the info its was the best way to make this work.

    This is the solution, this final code allows you to double book appointments.


    [php]
    <?

    /**---------------------------appointment interval--------------------------**/
    SWITCH($time_in terval)
    {
    case 10:
    $add_time = 600; //10 min...
    See more | Go to post
    Last edited by assgar; Jul 6 '07, 04:48 PM. Reason: display

    Leave a comment:


  • assgar
    replied to Retrieving and comparing data from arrays
    in PHP
    Thanks for the info on the select statement I changed it. This though is not a solution to matching the schedule time eg 07:00 AM to the client name with an appointment for 07:00AM....
    See more | Go to post

    Leave a comment:


  • assgar
    replied to Retrieving and comparing data from arrays
    in PHP
    I forgot to add the end of the table structure

    [php]
    <?
    echo"</div>\n";
    echo "</div>\n";
    echo "</td>\n";
    echo "</tr>\n";
    echo "</table>\n";
    echo "</table>\n";
    ?>
    [/php]
    See more | Go to post

    Leave a comment:


  • assgar
    started a topic Retrieving and comparing data from arrays
    in PHP

    Retrieving and comparing data from arrays

    Hi

    I am php newbie and I don't know if I am approaching this properly.
    I need to creat a scheduler that list the appointment time on the left
    and client for a specific appointment time on the left.

    NOTE: The appointments are stored in a Mysql database

    This is what I am trying to acomplish:

    Time | client Name
    -------------------------------------------
    ...
    See more | Go to post

  • assgar
    replied to Scrolling display is blurred
    in PHP
    [My problem with the scrolling is solved. It was looking blurred because of a duplicate function displaying the same info.
    [php]
    Eg.
    <?
    Function display()
    {
    Return $multiple_array _values;
    }
    List() = display();//NOTE: this was creating the duplicate
    ?>
    [/php]
    Changed to
    [php]
    <?
    Function display()
    {
    Return $multiple_array _values;...
    See more | Go to post

    Leave a comment:


  • assgar
    started a topic Scrolling display is blurred
    in PHP

    Scrolling display is blurred

    Hi

    Multiple rows of dynamically created data is retrived from the database and displayed properly.
    When I get 50 rows displayed scrolling is necessary.
    The problem is when I scroll to see the items at the bottom of the list the rows get blurred (jumbled).

    To be specific at the top and bottom rows of the list are displayed properly but in the middle the rows get blurred.

    Can you you see...
    See more | Go to post

  • Store multiple selection from pagination info into single array

    Hi

    I was using a schroll bar to display multiple rows of dynamically created from database records.
    The scrolling was not displaying the data properly so I have decided to use pagination.

    The problem I am having is,
    if I select one item on page #1 and another on page #5
    only the last item selected on page #5 is stored in the array.

    How can I store selections from multiple pages into...
    See more | Go to post

  • assgar
    replied to Looping through arrays
    in PHP
    Problem Solved.

    Using a for loop to incement the array index syncronizes the array indexes.

    I think using a two-dimentional array would be better but I don't how to do that yet.

    This is the code that resolved the problem.


    [html]
    <html>
    <head></head>

    <body>
    <!-----------------------form processor---------------------------->...
    See more | Go to post

    Leave a comment:


  • assgar
    started a topic Looping through arrays
    in PHP

    Looping through arrays

    Hello

    I have changed the process code abit so it receives
    the data from the form and ensures the data in array format.
    This has eliminated my previous error.

    The problem I am experiencing is the looping is not
    displaying the all contents of the arrays.

    Do you have any idea what the problem is and how to fix the problem?



    [html]
    <html>...
    See more | Go to post

  • This problem has been solved

    Thanks...
    See more | Go to post

    Leave a comment:


  • assgar
    started a topic Variable passed to each() is not an array or object
    in PHP

    Variable passed to each() is not an array or object

    I am having problems getting the user selected form info to inserted into the mysql database.
    I am also rec eving an error:
    Warning: Variable passed to each() is not an array or object in

    D:\web_server\w ebroot\common_l ist_process.php on line

    1) I can display the contents of the $op array (see below)
    2) Am I using the correct loop to unpact the array for inserting into the

    ...
    See more | Go to post

  • assgar
    started a topic Processing array values
    in PHP

    Processing array values

    Hi

    I need help solving a porblem.

    I have a form that displays a checkbox, service code, description
    and dropdown with fees on each row.

    The fee_money and unit array only returns a selected value from the
    first item (checkbox).

    When I used the line below in the processor, it displayed the
    correct selection.

    [php]
    echo '<pre>',print_ r...
    See more | Go to post

  • assgar
    replied to Array filtering
    in PHP
    Hi

    I have been using this bit of code to resolve the problem for over
    a week and have not received the error message.

    This can be considered resolved.


    [php]

    /*** arrays passed from the form with selected service variables ***/
    $code_id = $_POST['fee_choice']; //array of code_id primary key
    $fee_unit = $_POST['fee_unit'];//array with the number of units...
    See more | Go to post

    Leave a comment:


  • assgar
    replied to Array filtering
    in PHP
    Hi Ron

    Thanks for replaying.

    I think this is what you are looking for. The names were messed up in my
    example. I appologize for the length.


    This is the function that display the information on the form.
    [php]
    <?php

    function display($servic es, $special, $fee_master_tab le)
    {

    if ($services == "A")
    {
    $data...
    See more | Go to post

    Leave a comment:


  • assgar
    replied to Array filtering
    in PHP
    I am very sorry but I accidentally deleted your reply. But I have seen it and, maybe I am missing some important part, but I cannot see anywhere on your to-be-submitted form the 2 fields that you extract from the POST array, i.e.[php]$fee_unit = $_POST['fee_unit'];//array with the number of units
    $fee_money = $_POST['fee_money'];//array selected fee
    [/php]

    Ronald :cool:
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...