Jump to content

austine_power007

Members
  • Posts

    70
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

austine_power007's Achievements

Member

Member (2/5)

0

Reputation

  1. [quote author=Stopofeger link=topic=119925.msg491650#msg491650 date=1167125472] Now i understood. You need to define a directory index. Its because when u type like this : [color=red]http://sitename/foldername[/color] the server looks for a default page to open. U have not set index.php as ur default page. do it by opening iis console-> right click on ur folder->there will be a tab for setting directory index with a list of page names like index.html default.asp ... add index.php there. This will solve this. [/quote] I have done this before but i am facing this problem .....i m getting mad help meeeeeeee
  2. my client using IE 6 above ...i think it will work in IE 6 .....but why i am getting errors?? mainly i make the folder and the document to index.php but when i write the address like: http://localhost/My_blog then press enter it show error you are not authorized to view this page .........why??
  3. I can only see some HTML data like some table header and my flash header ....ohh i am using wordpress blog
  4. I am using Microsoft Server 2003 for my hosting now when i upload all my files into a folder inside my localhost and run from server( test in the server) it is ok but when i try to browse my site from another pc it only show the flash works why?? Please help me to slove ???
  5. Yesss i solved the problem it is only for the ' ' around the $actual in Update field
  6. I use some code it like: [code]<input type=\"text\" name=\"act_dat\" value=\"{$actual[0]}$actual[1]\" size='01'><span class='style12'>dd</span><input type=\"text\" name=\"act_mon\" value=\"{$actual[3]}$actual[4]\" size='01'><span class='style12'>mm</span><input type=\"text\" name=\"act_yr\" value=\"{$actual[6]}$actual[7]$actual[8]$actual[9]\" size='01'><span class='style12'>yy</span>[/code] it return me date in three text field like: 20 12 2006 then i took three field and make it a varibale [code]$act_date=$_POST['act_dat'];   $act_month=$_POST['act_mon'];   $act_year=$_POST['act_yr'];   $actual=$act_month.'/'.$act_date.'/'.$act_year;[/code] then i update the database [code]$query = odbc_exec($odbc, "UPDATE task SET actual_end_date = $actual,complete = $complete, remark = '$remark'  WHERE title = '$title'") or die ("Wrong data");[/code] after update, it shows me some error: :'( [code]Windows does not support dates prior to midnight (00:00:00), January 1, 1970 [/code] Can any one help me out??
  7. $start = date("d/m/y", strtotime($start_dat)); this $start returns me something like : 11/12/06 but i want the yr to be 2006 not 06........ how can i do that ??
  8. [quote author=JP128 link=topic=119050.msg487065#msg487065 date=1166415723] You could also use SESSION variables. [/quote] i give you a example i have a text field under echo it is: echo "<td colspan='3'><input name='job_ttl' type='text' id='job_ttl' value=\"{$titl}\" size='50' DISABLED></td>"; how can i pass this $titl value to another page??
  9. [quote author=JP128 link=topic=119050.msg487060#msg487060 date=1166414640] You can include the file.. [code] <?php include "pagename.php"; ?> [/code] [/quote] But it include the whole page with all the echo statement so i just want the varibales
  10. How do i inherit vaules from another php file ....?? i want to use the variable in another file ......how??
  11. I have tryed with POST now it can't get those variable value error is: Notice: Undefined index: job_ttl in c:\inetpub\wwwroot\flash\update_success.php on line 82 got so many same kind of error ...
  12. [quote author=thorpe link=topic=118958.msg487046#msg487046 date=1166412724] Your missing the SET keyword in your query. [code=php:0] query = odbc_exec($odbc, "UPDATE task SET act_end_date ='$act_date',complete = $complete,remark = '$remark'  WHERE title = '$title'") or die ("Wrong data"); [/code] [/quote] I have tried with the SET also but it didn't update the table why?? is it getting data from other files??
  13. [quote author=fenway link=topic=118397.msg485858#msg485858 date=1166229804] Because you only have comp1 & comp2 hard-coded... [/quote][quote author=fenway link=topic=118397.msg485858#msg485858 date=1166229804] Because you only have comp1 & comp2 hard-coded... [/quote] so what is the solution for this plzz help me
  14. I have a page named update_data.php the code: [code]echo"     <table width='548' height='255' border='0'> <form name='exampleform' onsubmit='return formValidator()' method='POST' action='update_success.php'>         <tr>           <td width='159' align='right' valign='middle' class='style12'>Job Title:</td>           <td colspan='3'><input name='job_ttl' type='text' id='job_ttl'value=\"{$titl}\" size='50' DISABLED></td>           </tr>         <tr>           <td align='right' valign='middle' class='style12'>Start Date: </td>           <td colspan='2'><label>             <input name='start_dat' type='text' id='start_dat' value=\"{$start}\" DISABLED>           </label></td>           <td width='227'>&nbsp;</td>           </tr>         <tr>           <td align='right' valign='middle' class='style12'>Est. End Date: </td>           <td colspan='2'><label>             <input name='est_dat' type='text' id='est_dat' value=\"{$end}\" DISABLED>           </label></td>           <td>&nbsp;</td>           </tr>         <tr>           <td align='right' valign='middle' class='style12'>Actual End Date: </td>           [b]<td colspan='2'><label>             <input type=\"text\" name=\"act_dat\" value=\"{$actual[0]}$actual[1]\" size='01'><span class='style12'>dd</span><input type=\"text\" name=\"act_mon\" value=\"{$actual[3]}$actual[4]\" size='01'><span class='style12'>mm</span><input type=\"text\" name=\"act_yr\" value=\"{$actual[6]}$actual[7]\" size='01'><span class='style12'>yy</span>           </label></td>[/b]           <td>&nbsp;</td>           </tr>         <tr>           [b]<td height='39' align='right' valign='middle' class='style12'>Completed:</td>           <td colspan='3' bordercolor='#000000'><table width='300' border='0'>               <tr>                 <td width='20'><input name='comp' type='text'  id='comp' value=\"{$complete}\" size='01'  ></td>[/b]                 <td width='270'><span class='style15'><span class='style17'><span class='style19'>%</span> <strong>( Integer</strong></span><span class='style22'> numbers Only)</span></span></td>               </tr>             </table></td>           </tr>         <tr>           [b]<td height='46' align='right' valign='top' class='style12'>Remarks:</td>           <td colspan='3' valign='top'><textarea name='remark' cols='50'  id='remark'>{$remark}</textarea></td>[/b]           </tr>                 <tr>           <td height='26' align='right' valign='middle' class='style10'>&nbsp;</td>           <td width='66'><label>           <input type='submit' name='Submit' value='Submit'>           </label></td>           <td width='78'><input type='reset' name='Submit2' value='Reset'></td>           <td><label></label></td>         </tr> </form>       </table> ";   }[/code] Ok in this code i retrive some data from database  Now i when user click submit it goes to update_success.php page and the code of update is: [code]<?php include "connect_db.php"; if (isset($_GET['Submit'])) // name of submit button { $title=$_GET['job_ttl']; echo "$title"; $act_date=$act_mon.'/'.$act_dat.'/'.$act_yr; $complete=$_GET['comp']; $remark=$_GET['remark']; $query = odbc_exec($odbc, "UPDATE task act_end_date ='$act_date',complete = $complete,remark = '$remark'  WHERE title = '$title'") or die ("Wrong data"); function Redirect($time, $topage) { echo "<meta http-equiv=\"refresh\" content=\"{$time}; url={$topage}\" /> "; } Redirect(1, "profile.php"); exit; } ?>[/code] But it update nothing ....wht is happneing ?? help me with my college project :( [b]E.G: i am using Microsoft Access 2003[/b]
×
×
  • 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.