Jump to content


  • Posts

  • Joined

  • Last visited

flix_is_here22's Achievements


Newbie (1/7)



  1. hi this is my code....how to get click value from href and then show a picture on div layer....?? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled Document</title><style>#layer{ top:0; left:0; height:100%; width:100%; position:absolute; background-color:blue; display:none; opacity:0.5; color:red;}#asd{ color:red; }</style><script type="text/javascript" language="JavaScript"><!--function HideContent(d) {if(d.length < 1) { return; }document.getElementById(d).style.display = "none";}function ShowContent(d) {var img=new Array();img[0]="a.jpg"; img[1]="b.jpg";img[2]="c.jpg"; if(d.length < 1) { return; }document.getElementById(d).style.display = "block";}function ReverseContentDisplay(d) {if(d.length < 1) { return; }if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }else { document.getElementById(d).style.display = "none"; }}//--></script> </head><body><div><a onclick="ShowContent('layer'); return true;" href="javascript:ShowContent('layer')" name="show1" title="show1">[show>>>>> 1]</a><a onclick="ShowContent('layer'); return true;" href="javascript:ShowContent('layer')" name="show1" title="show2">[show>>>>> 2]</a> </div><div id="layer" >Content goes here.<a onclick="HideContent('layer'); return true;" href="javascript:HideContent('layer')" ><img src="" id="show1"/>[hide>>>>>> 1]</a></div> <!--<a onmouseover="ReverseContentDisplay('layer'); return true;" href="javascript:ReverseContentDisplay('layer')">[show/hide]</a>--> </body></html>
  2. hey anyone, i have a problem about passing variable. gridpEmp.PHP <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><HTML><HEAD><TITLE></TITLE><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta http-equiv="Content-Style-Type" content="text/css"><meta http-equiv="Content-Script-Type" content="text/javascript"><script type="text/javascript">var preEl ;var orgBColor;var orgTColor;function HighLightTR(el, backColor,textColor){ var rowindex = el.sectionRowIndex; if(typeof(preEl)!='undefined') { preEl.bgColor=orgBColor; try{ChangeTextColor(preEl,orgTColor);}catch(e){;} } orgBColor = el.bgColor; orgTColor = el.style.color; el.bgColor=backColor; try{ChangeTextColor(el,textColor);}catch(e){;} preEl = el;}function ChangeTextColor(a_obj,a_color){ ; for (i=0;i<a_obj.cells.length;i++) a_obj.cells(i).style.color=a_color;}<style>table.selectable-table td { font-size:10pt; font-family: Arial; }table.selectable-table td { cursor:pointer; margin:0px; border:0px; padding:2px 5px 2px 5px; }table.selectable-table { border-spacing:0px; background:#eef;}</style></script></HEAD><BODY><table id="gridemp" border="1" cellspacing="0" cellpadding="4" align="center"><th>Employee Initial</th><th>Employee ID</th><th>Employee Name</th><tbody><?phpinclude('check/conDBodbc.php');$empid = $_POST['searchemployee']; function dbquery($sql) {include('check/conDBodbc.php'); $arr = array(); $rs = odbc_exec($con,$sql); $x = 1; while (odbc_fetch_row($rs)) { for ($y = 1; $y <= odbc_num_fields($rs); $y++) $arr[$x][$y] = odbc_result($rs,$y); $x++; } if ($x > 1) return $arr;}$arr = dbquery("select * from getemployee where employeeid like '%$empid%' or employeename like '%$empid%' or employeeinitial like '%$empid%'");echo $arr[1][3]; $rs1 = odbc_exec($con,"select * from getemployee where employeeid like '%$empid%' or employeename like '%$empid%' or employeeinitial like '%$empid%'");while(odbc_fetch_array($rs1)){?><tr onClick="HighLightTR(this,'#c9cc99','cc3333')"><!--<tr onClick="getvalue(this)">--><td align=left><?php echo odbc_result($rs1,employeeinitial);?></td><td align=left><?php echo odbc_result($rs1,employeeid);?></td><td align=left><?php echo odbc_result($rs1,employeename);?></td></tr><?php }?></tbody></table></BODY></HTML> i want to passing variable var rowindex = el.sectionRowIndex;how to do that passing variable in one file php??because i want to get value of row index from user selected row after that i can echo value of selected row from user by function dbquery($sql).
  3. hi, i'm looking XAMPP for android..... i want to install XAMPP in my samsung tab....any sugestion?? thx
  4. hahaha... :rofl:thx both of you for reply.... i really hopeless yesterday so i get some idea. i change process to get cookie using creating file and put the cookie in the their file.....so i can show the cookie everytime i want..... :rofl:honestly i bit cheating about retrive the cookie....
  5. hi, i so confused with retrieve the cookie when retrieve the cookie in the other file....i have some file....1. login.php -----> this file have a action form to checklogin.php2. checklogin.php -->cookie usrname to be set and the end of code i put header("location: home.php")3. home.php ---> menu of my website after user login. so i really confused when i retrieve the cookie usrname in the file home.php.....how to retrieve the cookie of usrname into home.php....??i has been try this code :echo $_POST["usrname"]; orecho $_COOKIE["usrname"];but both of this code isn't work..... :fool:any sugesstion??
  6. thx for reply me...i mean that jQuery table template for MSSQL not MYSQL....
  7. hi, any sugesstion for me??i need jquery table template but i need for MSSQL not MYSQL..... thx
  8. hi,i want to encrypt and decrypt the content of file. Now just i found the encrypt from http://www.w3schools.com/php/func_string_crypt.asp and that code work for mebut i didn't found the decrypt from w3schools....i found the decrypt tutor from http://www.php.net/manual/en/function.mcrypt-decrypt.phpbut i really don't understand.... anyone can you explain to me....????
  9. yeee....finaly i found it.... ^_^i must put the file php and file.txt or .log into localhost using XAMPP.....
  10. thx for reply me.... this is my first code and this is the same code like w3school tutor...<?phpecho file_get_contents("test.txt");$homepage = file_get_contents("test.txt");echo $homepage;?> this is a second code put your code in the top of my code....<?phperror_reporting(E_ALL);display_error(true);echo file_get_contents("test.txt");$homepage = file_get_contents("test.txt");echo $homepage;?> both of them it's still doesn't work?? :facepalm:the debuging result it's the same result....just blank of page....i want to post the picture result of my code but i don't know how to post it...
  11. hi,i confuse why http://www.w3schools.com/php/func_filesystem_file_get_contents.asp does'nt work for me??i want to create file, read file, write at the end of line, and delete file. i have try this http://www.php.net/manual/en/function.fopen.php....and it's not work too.... :facepalm:when debuging using dreamweaver it is still doesn't work....just the blank of page.
  12. thx for reply me...i really don't understand how MS SQL can still talk with your web host?? one year ago i buying a domain+host and i just using for email and FTP.....@_____@"can you explain how to connect MS SQL to web host??
  13. hi,i have got a problem. i have database MSSQL and i want to migration to MYSQL.anysuggestion for me??because i want to build a Ecommerce site.btw anyone know the risk if we publish a database MSSQL using IP public??i think this is a second option if i can't migration to MYSQL. :Sad:
  14. hmm....any suggestion for me??because i want to change design of mibew contact us when the all operator is offline......thx
  15. hi, can anyone explain to me what it's mean??i have code in the template of mibew... <form name="leaveMessageForm" method="post" action="${webimroot}/leavemessage.php"> why the action form say ${webimroot}/leavemessage.php??what it's mean??
  • Create New...