User Profile

Collapse

Profile Sidebar

Collapse
osward
osward
Last Activity: Nov 22 '07, 04:19 PM
Joined: Oct 20 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I downloaded the class form phpclasses.org and they don't have forum for their classes.

    Anyhow, thanks for your paient and time to help me make it work

    Regards,

    Osward
    See more | Go to post

    Leave a comment:


  • I finally find out which section of my code in the php document makes additional pair of end tags. It's not the calendar class but the paging class.

    After commented out this class, everything is fine now but I wonder how this class would make such a mess
    See more | Go to post

    Leave a comment:


  • Hi acoder,

    This is exactly what I am trying to do, I've got a test script with just the table. However, it still carries 2 pair of end tags. I don't think the problem is from the calendar class. Maybe I have to put on a default theme and see what happens but this is really a pain though

    I will post my finding hopefully soon

    Regards,
    Osward...
    See more | Go to post

    Leave a comment:


  • Hi acoder,

    I notice that as well, this is the calender class that generate the html tag. I am not sure how or should I go into the class file and remove that

    Any thoughts?

    Regards,
    Osward...
    See more | Go to post

    Leave a comment:


  • Is it possible to restall accidently deleted database

    Hi, everyone,

    When I want to delete a table from a database today, I accidently click drop button from phpmyadmin and the database was gone without a normal confirmation to delete message.

    Is there any possible way to retrieve the database back?

    Thanks in advance for your help

    Regards,

    Osward
    See more | Go to post

  • I enclosed the source.txt from my browser for your reference. It's a huge file I can't post it here

    Regards,
    Osward...
    See more | Go to post

    Leave a comment:


  • Hi acoder,

    The script behaves pretty weird, it work and when I close the browser and reopen it agin, It said script error. When I take away the gotoURL function, it work again.

    Think we haven't really solved the problem.

    Any suggestion?

    Regards

    Osward
    See more | Go to post

    Leave a comment:


  • Hi, acoder

    I found where the problem lies, there is a extra space in the second link, when I remove this space and put the onclick="gotoUR L(this) within the <tr> tag and it works now.

    Thanks for remind me checking the place I overlook

    Regards,
    Osward
    See more | Go to post

    Leave a comment:


  • Here is the latest version of the code
    [PHP]echo "<script type=\"text/javascript\" src=\"/modules/event/lib/tableH.js\"></script>";
    $bgcolor = "$bgcolor3" ; // set alternative row color
    echo "<table id=\"listing\" width=\"100%\" cellpadding=\"2 \" cellspacing=\"0 \" class=\"calenda r\" onMouseOver=\"j avascript:track TableHighlight( event,...
    See more | Go to post

    Leave a comment:


  • [PHP]echo "<tr onclick=\"gotoU RL(this);\" bgcolor=\"".$bg color."\">"
    ."<td align=\"center\ " class=\"list\"> $date</td>"
    ."<td align=\"center\ " class=\"list\"> $code</td>"
    ."<td align=\"center\ " class=\"list\"> $title</td>"
    ."<td align=\"center\ "...
    See more | Go to post

    Leave a comment:


  • Doesn't work, script error. Also the field where I put the 2 links show the url I want the function to access but the orginal link gone

    One additional question, how can I use the function within the same javascript?
    I know how to do it in php but have no idea in javascript

    I attached the sceen of the table for your reference...
    See more | Go to post

    Leave a comment:


  • Hi, acoder
    I had tried and place the onclick at the table <tr> tag which is line 38 of my posted php script but it returns an script error at the browser and also it display < a href="/modules.php?nam e=event&op=info &eid=355"> before the link icon and also the icon's link is disable.

    Think have to do it the hard way like you said. I had spent hours trying to make sense of the two function that I...
    See more | Go to post

    Leave a comment:


  • Hi acoder,

    Thanks for the help, I put the function in the tableH.js and put the onclick="gotoUR L(this)" inside the <table> tag. It works, but only for the first row of the table. No matter which row I click, it returns the same link as the first row.

    I had tried to put the onclick="gotoUR L(this) inside the <table> tag and the <td> tag that contains the link but only inside the <table>...
    See more | Go to post

    Leave a comment:


  • Hi,

    Following is the code of my table[PHP]echo "<script type=\"text/javascript\" src=\"/modules/event/lib/tableH.js\"></script>";
    $bgcolor = "$bgcolor3" ; // set alternative row color
    echo "<table id=\"listing\" width=\"100%\" cellpadding=\"2 \" cellspacing=\"0 \" class=\"calenda r\" onMouseOver=\"j avascript:track TableHighlight( event,...
    See more | Go to post

    Leave a comment:


  • How to let a highlighted row open the url from a database table

    Hello everyone,

    I am totally new to javascript, here is my situation:

    I had a php document that returns a quered database table and I use a javescript download from the web to highlighed the row of the table. I echoed the script and in the <table> tag I added [PHP]echo "<script type=\"text/javascript\" src=\"/modules/event/lib/tableH.js\"></script>";
    echo "<table...
    See more | Go to post

  • osward
    replied to Please help with correct paging links
    in PHP
    In addition to my yesterday's post. I follow the method to maintain the sort_order in my previous post. I think I have to $_GET(date) from the url that add date=$where_fie ld to the page link. There are 2 problems that I immediately encounter.

    1. I had already use the $date to convert to $t = date("Y-m-d", $date) and put it in my $where_field for the start of any query to the database, which was fine to start with. The problem...
    See more | Go to post

    Leave a comment:


  • osward
    replied to Please help with correct paging links
    in PHP
    Hi, pbmods

    What I had achieve is:
    using the link in the calendar that my table can display the row necessary. ie, If I click September 3, 2007, The query returns September 3, 2007 and rows onward.

    What I don't want it to do is:
    if user click the Next page as the above had been returened. It display the 2nd page of the default query. That is, SELECT * FROM mydb_tbl $where_field.
    The var $where_field...
    See more | Go to post

    Leave a comment:


  • osward
    started a topic Please help with correct paging links
    in PHP

    Please help with correct paging links

    Hi, everyone,

    I had managed to make use of the date link from a simple calendar script to my query table. When I click on the date's link or Prev and Next Month link, The table first row will be that link's day and onwards.

    I have a problem with the page link part that it won't advance to the next page according but go back according to today's date.
    This is the calender script section[PHP] // Display Calandar...
    See more | Go to post

  • osward
    replied to Help on mysql query to compare 2 tables
    in PHP
    Hi post,

    I encounter another question that I couldn't figure out

    In the first query, it returns the right set of data. However, In the real world, one user might have join more than one event in different date that will still kept in the tbl_user table.
    I had made myself 3 enteries in different date and the dataset1 prints out the 2008-03-01 one instead of all 3 sets of data (2 were prior to 2008-03-01, date...
    See more | Go to post

    Leave a comment:


  • osward
    replied to Help on mysql query to compare 2 tables
    in PHP
    Hi post, thanks for the help

    I understand want you try to do with the code and tested the code on my test script.

    You had missed to put the field name 'date' in your $query2 that took me quite some time to figure out what's wrong. Because it returns the first record of my event_cat table without any filtering.
    That's fine because you'd done more than I expected and I do really appreicate your help. I, myself,...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...