Jump to content

joshi_v

Members
  • Posts

    168
  • Joined

  • Last visited

    Never

About joshi_v

  • Birthday 03/14/1981

Profile Information

  • Gender
    Not Telling

joshi_v's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Helllo, Wants to say a word with you. when you are using global variables in a php page, they will be available in the same. They won't be accessible in the next page you post the variables. if you want them in the next page, then you can use the sessions. regarding second problem. when you used href link it is going to starting page. If you want to go back to the previous page, check what are the variables that are required to be in that page(It mught be redirecting the page due to lack of some varibales). if you use href with appending the required variables..you could be solve this issue another option is php include option. Try these options and let me know if you have any issues with it. Best of luck Joshi.
  2. $i_query = mysql_query("SELECT * FROM MTES_direct_hours WHERE tech_id = '$_SESSION[userid]' && week_ending_date = '$_SESSION[week_ending_date]' && directontimesheet = '0'"); while ($i_row = mysql_fetch_array($i_query)) { echo ' <tr> <td style="color: RED;">', $i_row[gold_id], '</td> <td style="color: RED;">', $i_row[project], '</td> <td style="color: RED;">Direct</td> <td style="color: RED;">', $i_row[MTES_direct_task], '</td> <td style="color: RED;">', $i_row[week_ending_date_day], '</td> '; $z_query = mysql_query("SELECT SUM(MTES_direct_sub_task_hrs) AS direct_hours_total FROM MTES_direct_hours WHERE week_ending_date = '$i_row[week_ending_date]' && week_ending_date_day = '$i_row[week_ending_date_day]'"); while ($z_row = mysql_fetch_array($z_query)) { echo ' <td style="color: RED;">', $z_row[direct_hours_total], '</td> </tr> '; } $k_query = mysql_query("SELECT MTES_direct_sub_task, MTES_direct_sub_task_hrs FROM MTES_direct_hours WHERE direct_hours_id = '$i_row[direct_hours_id]'"); while ($k_row = mysql_fetch_array($k_query)) { echo ' <tr> <td style="color: RED;"> </td> <td style="color: RED;"> </td> <td style="color: RED;"> </td> <td style="color: RED;">', $k_row[MTES_direct_sub_task], '</td> <td style="color: RED;"> </td> <td style="color: RED;">', $k_row[MTES_direct_sub_task_hrs], '</td> </tr> '; } } } Can u provide the result of this.. pls try it asap..time to leave
  3. GA4101 P1002 Direct Expansion - Installation & Integration Monday 12 Which field in the code is displaying this? $i_row[project] ?
  4. why are u repeating everything in the first while loop? i didn't get why?
  5. Me too working on windows XP and unlink is working perfectly for me. this is my piece of code. <?php $filepath = "/tmp/test.txt"; if (! unlink ($filepath)) { echo ("Couldn't delete file"); } else { echo ("Removed $filepath"); } ?> In your case, check whether your $mainpath contains the correct path and file name. Otherwise post u r code here.
  6. SELECT *, SUM(title)AS sum FROM suggest group by title This is what i have at this moment.
  7. For password and confirm password checking u can use password===confirmpassword. For email checking you have to use some regular expression with the characters that u are expecting in email. Regards, Joshi
  8. If you could use GROUP BY with query u can get what u want.
  9. I think this will work for u foreach($MyArray as $value){ if(ereg($IllegalChars , $value) { //code } else { //Code } }
  10. Hi Everyone, I have XML file. It have some date to display the Graph. In that file i need to provide the date value. I would like to give the current date instead of hard coded date. I tried someways that i found in net , but no use of it. Can anyone help how to do this. This is my XML file. <?xml version="1.0" ?> <!-- created: Fri May 4 10:18:56 2007 --> <graph animation="1" bgColor="FFFFFF" canvasBgColor="FFFFFF" canvasbordercolor="CCCCCC" canvasborderthickness="1" canvasbgalpha="100" hovercapbgColor="FFFFFF" basefontcolor="000000" outcnvbasefontsize="10" areabordercolor="ffffff" hoverCapBorderColor="CCCCCC" PYAxisMinValue="0" numdivlines="4" divLineColor="FFFFFF" decimalPrecision="0" shownames="1" showAlternateHGridColor="1" alternateHGridColor="CCCCCC" showAlternateVGridColor="1" alternateVGridColor="CCCCCC" alternateVGridAlpha="80" showSecondaryLimits="1" showDivLineSecondaryValue="1" PYAxisName="" SYAxisName="" SYAxisMaxValue="420000" PYAxisMaxValue="420000" numVdivlines="10" formatNumberScale="1" showLegend="0" com_bankwatch_caption="Potential Attacks By Category" com_bankwatch_subcaption ="05-07 - 06-07" com_bankwatch_changepct="-55.4%"> <categories> <category name="May"/> <category name="Jun"/> <category name="Jul"/> <category name="Aug"/> <category name="Sep"/> <category name="Oct"/> <category name="Nov"/> <category name="Dec"/> <category name="Jan"/> <category name="Feb"/> <category name="Mar"/> <category name="Apr"/> </categories> <dataset color="000080" areaBorderColor="000080" seriesName="other-activity" showValues="0"> <set value="3598"/> <set value="2626"/> <set value="2174"/> <set value="7109"/> <set value="1154"/> <set value="3150"/> <set value="3391"/> <set value="7208"/> <set value="14767"/> <set value="2312"/> <set value="11950"/> <set value="9084"/> </dataset> </graph> In the above code, i want to replace "com_bankwatch_subcaption ="05-07 - 06-07" " with the current date. from PHP i can't pass any variable to this. I would appriciate any suggestions that would help to get it work. Thanks Joshi. In this forum why we don't have any section for "XML" ???
  11. Thanks u guys for u r response. as ToonMariner suggested i did it using JS and its working fine. Once again thanks for all the guys who responded to this post.
  12. Hi all, I have a class for menu tabs in my index page This is working good but the tab name is not coming in center of the div. if i increase the top padding it is working but it is showing gaps between tabs in IE. can anyone help me how to do this? .menu { color : #FFFFFF !important; margin: 1px 0px 0px 0px; padding-top: 0px; padding-bottom:0px; padding-left: 22px; height: 23px; float:top; } Thanks in advance
  13. Hi guys, I have a menu with image, on mouse over event , image will be changes. Related css code for this is written in a separate css file and calling in HTML file. all this is doing well in Firefox, but in IE 6.0 it is giving trouble. it is not working for mouse over. i came to knew that it IE 6.0 doesn't support css hover. i heared there is a fix to it by inclusing csshover.htc file to the body. But couldn't work it with too. So please anyone could suggest me a way to get it work even with IE 6.0. Thanks Joshi
×
×
  • 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.