hi i am doing a attendance sheet appln... i want to know how to get the current indian time,date,month and year..... and i want to store that in mysql database lydia

Member Avatar
Member Avatar
+0 forum 12

i have a form which will display the details in a table,when edit button is clicked all the content in the table should come in a form(ie inside the textboxes)..so that the user can edit and save the content again in the database. [B][U]1st page[/U][/B] $link=mysql_connect($hostname, $username, $password); mysql_select_db($dbid) or die("unable to connect"); $line = $_GET['name']; echo "<table width='50%' border='1'>"; $result=mysql_query("SELECT * FROM hi where name='$line'"); for ($i = 0; $i < 1; ++$i) { $line = mysql_fetch_row($result); print "<tr><td>Name</td><td> $line[0]</td></tr>"; print "<tr><td>age</td><td> $line[1]</td></tr>"; } echo "</table>"; mysql_close($link); ?> <form method="post" action="red11.php"> <input type="submit" name="submit" value="submit"> </form> [B][U]2nd page[/U][/B] echo …

Member Avatar
Member Avatar
+0 forum 3

hi i want to pass variable from php to javascript.i want to pass my group[name please tell me.the current code is not working [CODE]<? session_start(); require_once('common/dblayer.php'); $db=new dblayer(); $id=$employer_id; $empid=$db->getgroupname($id); $groupname=$empid[0]["group1"]; echo $groupname; ?>[/CODE] javascript code [CODE] //Contents for menu 1 var menu1=new Array() menu1[0]='<a href="employercp.php">Job Portal</a>' menu1[1]='<a href="cggroup.php?id=<? echo $groupname; ?>">Groups</a>' [/CODE]

Member Avatar
Member Avatar
+0 forum 12

hi, i want to implement paging concept in php with mysql.i tried lot of code.....the page next,prev links at the bottom which is used to move to and fro is not working please do give a code for paging........

Member Avatar
Member Avatar
+0 forum 2

hi when the user enter the data i tried it storing in the db and its working. the datas are getting stored as &lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using&lt;/p&gt; when i display i want to display in html format

Member Avatar
Member Avatar
+0 forum 8

hi i am using php email function .in from address i am getting my ftp email id eg username:form,my mail id is as [email]form@connect.com[/email] but i want to give my own address...dynamically what i give. [ICODE] $body1="<html><head></head><body>"; $body1.="<table width='850px' border='0' align='center' cellpadding='0' cellspacing='0' style='vertical-align:top;'>"; $body1.="<tr><td><p>If you have net banking facility you can do an online transfer of just Rs.500 to the account "; $body1.="</body></html>"; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=iso-8859-1" . "\r\n"; if (strlen($body2)>998) { $headers .= "Content-Transfer-Encoding: base64;" . "\r\n"; $headers .= 'From: ' . $em . "\r\n" .'X-Mailer: PHP/' . phpversion(); } [/ICODE]

Member Avatar
Member Avatar
+0 forum 2

hi how to combine three tables in a single query.please send a sample code thanks

Member Avatar
Member Avatar
+0 forum 2

hi i want to join four tables.i used left join.thougn value are there in my db all the datas from seekers_qualification, seeker_target tables are getting displayed as Null.but there is no Sql error [code=sql]SELECT seekers.firstname, seekers.middlename, seekers.lastname, seekers.totalexperience, seekers.mobile, seekers_qualification.qualification, seeker_target.jobtitle, seeker_target.ann_salary, seeker_target.state, seeker_target.relocate FROM seekers LEFT JOIN ( SELECT seekers.firstname, seekers.middlename, seekers.lastname, seekers.totalexperience, seekers.mobile, seekers_qualification.qualification, seeker_target.jobtitle, seeker_target.ann_salary, seeker_target.state, seeker_target.relocate FROM seekers LEFT JOIN ( seekers_qualification, seeker_target ) ON ( seekers.seeker_id = seekers_qualification.seeker_id AND seekers_qualification.seeker_id = seeker_target.seeker_id AND seeker_target.seeker_id = seekers.seeker_id ) WHERE seekers.seeker_id = '40' AND seeker_target.seeker_id = '40' OR seekers_qualification.seeker_id = '40' LIMIT 0 , 30 ) ON …

Member Avatar
Member Avatar
+0 forum 3

hi, i written a code for sending html maIL.MAIL FUNCTION IS WORKING BUT THE MAIL I AM GETTING I HAVE DISPLAYED BELOW.please do tell me how to send html mail [ICODE] $headers = "From: [email]cggroup@car.com[/email]"; $toa = "lydia@gmail.com"; $subject1 = "An Agreement has been signed for your Job Order"; $body2="<html><head></head><body>"; $body2.="<table width='850px' border='0' align='center' cellpadding='0' cellspacing='0' style='vertical-align:top;'>"; $body2.="<br /><tr><td valign='top'><table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'><br /><br />"; $body2.="<br /><tr><td colspan='100%' style='width:100%'><br /><br />"; $body2.="<br /> <table style='width:100%;' cellspacing='0' cellpadding='0'><tr><td class='bar' style='width:80%;'>&nbsp;Personal Details</td> Hi $ownername, <br /><br />"; $body2.="<br /><td class='bar' style='width:5%; text-align:right; font-style:italic;'></td><td style='width:1%'>&nbsp;</td></tr><br /><br />"; $body2.="<br /></table></td></tr><tr><td><table width='100%' border='0' …

Member Avatar
Member Avatar
+0 forum 7

hi i am very new to ajax .when a user post comment i want to diaplay immediately ie something like dani web quick reply please tell how do tat in ajax

Member Avatar
Member Avatar
+0 forum 10

hi can u please tell me how to convert html page into word document so tat the user can download the page in html format

Member Avatar
Member Avatar
-1 forum 5

hi, i want to select from more than two table using a single mysql query.please tell me a example query/. thanks in advance

Member Avatar
Member Avatar
+0 forum 2

hi, page navigation is not working.please tell how to pass date [CODE]<? include_once('session_control_emp_sp.php'); ?> <html> <head></head> <body> <? //db connection $page_name="mg_resumep.php"; //$limit=sql_quote($_GET['limit']); // Read the limit value from query string. $limit=$_GET['limit']; //$start=sql_quote($_GET['start']); // To take care global variable if OFF $start=$_GET['start']; $id=$_GET['id']; // echo "\n"; $agent=mysql_query("select * from magic_agent where id='$id'") or die("ERROR:".mysql_error()); while ($magic=mysql_fetch_array($agent)) { $industry=$magic[2]; $industry1=$industry; // $industry1=$industry&$careerlevel1=$careerlevel&$day1=$day $careerlevel=$magic[3]; $careerlevel1=$careerlevel; // echo $careerlevel; // echo "\n"; $chkstate=$magic[4]; $day=$magic[6]; $day1=$day; //echo $day1; echo $industry1; echo $careerlevel1; echo $chkstate; // echo "\n"; } $empi=$_SESSION['employerid']; $ours=mysql_query("SELECT group1 from cggroup where userid='$empi'")or die("ERROR:".mysql_error()); while ($our=mysql_fetch_row($ours)) { echo "ours"; $gnam=$our[0]; $gname1=$gnam; echo $gnam; …

Member Avatar
Member Avatar
+0 forum 1

can u please tell me how to download fckeditor with skin-office 2003 ie.[url]http://www.fckeditor.net/demo/skins?skin=office2003[/url]

Member Avatar
Member Avatar
+0 forum 21

hi, please tell me how to download tinymce editor . i want to download the below tinymce editor [url]http://tinymce.moxiecode.com/example_full.php[/url]

Member Avatar
Member Avatar
+0 forum 15

hi, i have store in db the below output.where the user has entered using editor. <p>This is some <strong>sample text</strong>. You are using</p> i want the other users to view the output as we see in html pge i.e i want to strip the tags

Member Avatar
Member Avatar
+0 forum 1

hi i have a application where the user will post article in textarea.....i want to include some editor instead of text area.plese do tell me how to do tat thnks

Member Avatar
Member Avatar
+0 forum 22

hi i have a search page where it displays the search result in the next page.i have used paging concept to display the result.when the user clicks back link after viewing a record,it should redirect him to the page where i have the results in paging thanks

Member Avatar
+0 forum 0

hi I want to fetch data from four tables using a single query.please tell me how to do that. thanks in advance

Member Avatar
Member Avatar
+0 forum 7

[CODE]<html> <head> </head> <body> <?php $days_array = array(""); for($_GET['days'] as $val2) { $days_array[] = $val2; echo $days_array[0]; } ?> <form name="fors" method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>"> Enter text:<input type="text" name="days"> <input type="submit" name="submit" value="submit"> </form> </body> </html>[/CODE] get the text box value using array and display the value using array.

Member Avatar
Member Avatar
+0 forum 3

hi, how to find the end of file in a word document thanks in advance

Member Avatar
+0 forum 0

[CODE]<html> <head> <SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT"> <!-- function view(ss) { if(ss.options[ss.selectedIndex].value!='') { var a=document.getElementById('IndustryType'); var temp=a.value; var b='<?php echo $id; ?>'; parent.frameright.location = "http://www.web.com/webd.php?var=" + temp + "&vars=" + b; } } --> </script> </head> <body> $id=$_GET('id'); $hostname = "localhost"; $username = "car"; $password = "try"; $dbid = "car"; $link=mysql_connect($hostname, $username, $password); mysql_select_db($dbid) or die("unable to connect"); $result=mysql_query("select * from jop where owns='$id' and chkshare='yes'"); $sel ='<tr><td align="center" bgcolor="#EBEBEB"><select name="IndustryType" language="javascript" onchange="view(this);" size="12" style="width: 300px">'; $i = 0; while ($row = mysql_fetch_row($result)) { if ($i == 0) { $value = 'SELECTED value="' . $row[0] . '"'; } else { $value = …

Member Avatar
Member Avatar
+0 forum 2

[CODE]<html> <head></head> <body> <?php $id=$_GET['id']; $hostname = "localhost"; $username = "jesus"; $password = "jesus"; $dbid = "jesus_jesus"; $link=mysql_connect($hostname, $username, $password); mysql_select_db($dbid) or die("unable to connect"); $result=mysql_query("select * from jobs where owns='$id'"); while($myrow = mysql_fetch_array($result)) { print "<option value='$myrow[0]' selected>$myrow[1]</option>"; } ?> </body> </html>[/CODE] In this code i need first value selected default.i execute this code my last database value selected default.is any database solution to find the first position.so i can use if loof. something like this. [CODE]while($myrow = mysql_fetch_array($result)) { if(myrow[0] == first) print "<option value='$myrow[0]' selected>$myrow[1]</option>"; else print "<option value='$myrow[0]'>$myrow[1]</option>"; }[/CODE]

Member Avatar
Member Avatar
+0 forum 2

when i'm passing value through $_SESSION in frames first time i'm not getting value.when i execute second time i'm getting value.why the values are not passing first time.

Member Avatar
Member Avatar
+0 forum 1

404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.i'm getting this error .on appache server.

Member Avatar
Member Avatar
+0 forum 1

[code=php]print "<script language='javascript' type='text/javascript'>"; print "var a='Invalid User';"; print "document.writeln(a);";[/code]

Member Avatar
Member Avatar
+0 forum 1

[CODE] <?php $hostname = "localhost"; $username = "hi"; $password = "bye"; $dbid = "jesus"; $link=mysql_connect($hostname, $username, $password); mysql_select_db($dbid) or die("unable to connect"); $name1=$_REQUEST['name1']; $result=("SELECT name FROM lydia WHERE nam='$name1'"); while($myrow = mysql_fetch_array($result)) { $first=$myrow[0]; echo $first; } ?> <html> <head> <script type="text/javascript"> function win() { var c='<?php echo $first; ?>'; alert(c); } </script> </head> <body> <form name="form1" method="get" action="<?php echo $PHP_SELF;?>" onSubmit="javascript:win();"> NAME<input name="text" name="name1"> <input type="submit" value="submit"> </form> </body> </html> [/CODE] in this code i want to alert the $first variable.javascript executed before php.is there any solution alert the variable in script.

Member Avatar
Member Avatar
+0 forum 3

when i click login button it's not redirecting to another php page.it's showing error on page. my code is below. [CODE] <html> <head> function win() { var a=document.getElementById('myusername'); var b=document.getElementById('mypassword'); var temp=a.value; var temp1=b.value; window.opener.top.location.href="http://www.careerglitters.com/web_login1.php?vars=" + temp + "&varr=" +temp1; self.close(); } </head> <body> <form> <input type="text" name="myusername" style="width: 10em;"> <input type="password" name="mypassword" style="width:10em;"> <input type="button" name="button" value="Login" onClick="win()"> </form> </body> </html> [/CODE]

Member Avatar
Member Avatar
+0 forum 3

is it possible to alert session variable.is the syntax is correct... [CODE=php]<html> <head> <SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT"> <!-- function login() { alert($_SESSION["un"]); } --> </SCRIPT> </head> <body bgcolor="#f1f3f3"> <form> <?php print "<input type='submit' value='submit' onClick='javascript:login();'>"; ?> </form> </body> </html>[/CODE]

Member Avatar
Member Avatar
+0 forum 4

hi i have upload option where the user will be allowed to upload only txt file..when the admin tries to view the uploded file i want to show him in html format

Member Avatar
Member Avatar
+0 forum 1

The End.