Need help with horizontal looper links and date query

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
crenshawdesignz
Forum Newbie
Posts: 3
Joined: Wed Apr 12, 2006 4:21 pm

Need help with horizontal looper links and date query

Post by crenshawdesignz »

Please if someone can look at this situation because I really need some help. I am using an application developed by Chris Goerner that will help me with managing attendance for parents in cooking and GED classes. Here is what I hope to achieve.

I would like the unit descriptions to loop horizontally instead of running vertical for however long they may run.

I have a file name looper in the c/includes/myincludes folder of the file I have zipped for distribution.

On the index page of the site I want to be able to place a date query that can be entered and have it work in the same manner as the back and foward links on the page.

This is a great application but I want to extend it a bit further with some help from this community.

http://marccrenshaw.com/assistance.zip

The file is located inside the zip folder. I appreciate you looking at this.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

You're wanting someone to do it for you? You want someone to tell you what to change?
crenshawdesignz
Forum Newbie
Posts: 3
Joined: Wed Apr 12, 2006 4:21 pm

I want to do it myself

Post by crenshawdesignz »

feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


I am learning how to use PHP and if someone did it for me I wouldn't learn anything or not much. But if someone told me what to change and I did it then, well you know.

Thanks for the note.

Code: Select all

/**
 * Will return the value of a particular field given the ID, table, and field name.
 * 
 * @param $table The name of the table
 * @param $id The ID of the record
 * @param $field The name of the field
 * @return string The value of the field
 **/
function getValueFromID($table, $id, $field)
{
    $result = do_mysql_query("SELECT * FROM $table WHERE ID=$id");
    $tempOutput = "";
	
	while ($row = mysql_fetch_array($result)) {
        $tempOutput = $row[$field];
    } 

    return $tempOutput;
}
I found this code and wonder if this will be of any help?


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
crenshawdesignz
Forum Newbie
Posts: 3
Joined: Wed Apr 12, 2006 4:21 pm

Contract

Post by crenshawdesignz »

I was not aware that there are independent designers here.

You may be able to help me directly then. Let me know how we are to negotiate this and perhaps we can do some business.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

The function you've found merely attempts to finds a single field in a record from a table. It has no specific baring on what you are wishing to alter, although it may be involved to some degree.
Post Reply