Jump to content

austine_power007

Members
  • Posts

    70
  • Joined

  • Last visited

    Never

Everything posted by austine_power007

  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]
  15. [b]But why i am getting error?? its saying [/b] Notice: Undefined index: titl in ....\flash\update_success.php on line
  16. [b]i query and show data in text field [/b] <input name='job_ttl' type='text' id='job_ttl'value=\"{$titl}\" size='50' DISABLED> [b]Now i want this data to pass it to another page i used [/b] if (isset($_POST['Submit'])) // name of submit button { $title=$_GET['job_ttl']; }
  17. Does anybody knows how can i update Microsoft Access database using PHP?? any kind of example will be appreciated.
  18. i wanna make my date function like mm/dd/yy here is the code i explode my date how i can make this date join together [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]\" size='01'><span class='style12'>yy</span>[/code] [color=red][b]this code gives me date like: 20/12/06 i want to join all and put it inside a variable so that i can update database[/b][/color] [b]E.G: i am using Microsoft Access 2003[/b]
  19. How can i disable a text field so that user can only see data but can't change it
  20. How can i pass variable from PHP to Java Script?? I have a output in text field and the name is "comp" so i created a variable in php named $i ....and i want this "comp" text field as a array ........how?? so that i can check what user input is wrong or right.
  21. [quote author=fert link=topic=118401.msg483863#msg483863 date=1165985412] do do what you want the button needs to have the following format [code] <input type=\"get\" action=\"edit.php\"><input type=\"hidden\" name=\"job_title\" value=\"job name\"><input type=\"submit\"> [/code] Then when you use the code i've posted it will only show the row that has that job name. [/quote] this is like i think one kind of search user give the job title then click the button then it search then show result right??
  22. Dear fert i think your code will make every data i fetch from database mean every row in the whole table editable i just want tht row editable where the edit button has.
  23. [quote author=fert link=topic=118401.msg483848#msg483848 date=1165984485] [code] $result=@mysql_query("SELECT * FROM `jobs` WHERE `title`='$job_title'",$cn) or die(mysql_error()); echo "<form method=\"post\" action=\"edit_job.php\">"; while($row=mysql_fetch_array($result)) { $title=$row['title']; $start_date=$row['start_date']; $est_end_date=$row['est_end_date']; $act_end_date=$row['act_end_date']; $pro=$row['progress']; $remark=$row['remark']; echo "<p><input type=\"text\" name=\"title\" value=\"{$title}\"><b>Job title</b></p>"; echo "<p><input type=\"text\" name=\"start_date\" value=\"{$start_date}\"><b>Job title</b></p>"; echo "<p><input type=\"text\" name=\"est_end_date\" value=\"{$est_end_date}\"><b>Job title</b></p>"; echo "<p><input type=\"text\" name=\"act_end_date\" value=\"{$act_end_date}\"><b>Job title</b></p>"; echo "<p><input type=\"text\" name=\"pro\" value=\"{$pro}\"><b>Job title</b></p>"; echo "<p><input type=\"text\" name=\"remark\" value=\"{$remark}\"><b>Job title</b></p><p><input type=\"submit\"></form>"; } [/code] [/quote] Can you please give me a little description about this code i am dumb in PHP :(
×
×
  • 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.