841 Posted Topics
Re: Most of some one creates account first time(for single problem) and post his thread and after got solved it, they leave from here. Most of every one seeks help for one or two times, but most of some are regularly visiting the site. | |
Re: try this: Lets assume [ICODE]$myvar[/ICODE] variable is having values like: [CODE]$myvar='8','9','10';[/CODE] and in your java script: [CODE] jsvar =new Array(<?php echo $myvar;?>); [/CODE] then you can run a loop through java script variable like" [CODE]for(var k=0;k<jsvar.length;k++) { alert(jsvar[k]); } [/CODE] | |
Hello daniweb, I think daniweb recently changed to new urls (forum name instead of forum number). But in my working area web development key word hanged by firewall and will not allow me to access the page. Every thing else is fine for me. This happened for me since yesterday. … | |
Re: if condition always takes == for comparison[QUOTE]if($answer == "")[/QUOTE] | |
Re: you will surely get solution for your thread by referencing this url: [url]http://www.daniweb.com/forums/thread133380.html[/url] | |
Re: try this piece of code: [CODE]echo "<table border=1>"; $i=1;echo "<tr>"; while($row=mysql_fetch_array($result2)) { $image=$row['fname']; echo "<td>$image</td>"; if($i%3==0) echo "</tr><tr>"; $i++; } echo "</tr>"; echo "<table>"; [/CODE] | |
Re: AJAX is the best solution for your task. check these tutorials: [url]http://www.ajaxlines.com/ajax/stuff/article/ajax_autocomplete_tutorial.php[/url] [url]http://www.w3schools.com/Ajax/ajax_aspphp.asp[/url] | |
Re: check this link: [url]http://www.php.net/manual/en/function.session-name.php#42747[/url] | |
Re: check this link: [url]http://javascript.internet.com/forms/country-state-city-drop-down-list.html[/url] | |
Re: when you are submitting your form then redirect it to one page called insert.php, then redirect to https://www.alertpay.com/checkout". just like this: [CODE]<form id="feedbackform" method="post" action="insert.php" > [/CODE] in insert.php [CODE] // getting form values //inserting code // form <script> document.feedbackform.submit(); </script> <form id="feedbackform" method="post" action="https://www.alertpay.com/checkout" > // put required fields … | |
Re: or simply pass this [ICODE]document.signup.elements[/ICODE]object to second method. for clearance chec out the following: [CODE]<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script type="text/javascript"> function first_method() { alert(document.test.elements); second_method(document.test.elements); } function second_method(list) { alert(list.length); for(i=0;i<list.length;i++) { alert(list[i].name+":"+list[i].value); } } </script> </head> <body> <form name="test" method="post" action=""> <select name="htmlcombo" … | |
Re: try like this: [CODE]$link.="<a href=\"test.php/verify_email/$vcode\" target=_blank>Verify email address</a>";[/CODE] | |
Re: check this is working: [CODE]document.writeln("<tr><td style=\"background-color:#FFFF00;\">" + "test" + "</td></tr>"); [/CODE] ![]() | |
Re: check this: [CODE],'$message')";[/CODE] for varchar field you need to send string in between single quotes. ![]() | |
Re: Use encryption methods before saving the credit card information in your database. or Use third party payment gateway , the will take care of all these. then you need not to save credit card information in your database. | |
Re: [QUOTE]$query = "select student.Rollno, departments.Dept_name, student.Name, student.PercentsgeSoFar from student inner join(departments inner join studentdept on studentdept.Dept_id = departments.Dept_id)on student.Rollno = studentdept.Rollno ";[/QUOTE] in the above query use alias names like as shown below: [CODE]$query = "select student.Rollno rollno, departments.Dept_name deptname, student.Name sname, student.PercentsgeSoFar percent from student inner join(departments inner join … | |
Re: check this: [CODE]<?php $dblink="test1.php"; if($_POST['link']=="old") echo $_POST['finalLink']; else echo $_POST['finalLink']; ?> <head> <script type="text/javascript"> function clickRadio() { if(newForm.link[0].checked==true) { newForm.newLink.value=""; newForm.newLink.disabled =true; } else if(newForm.link[1].checked==true) { newForm.newLink.disabled =false; newForm.newLink.focus(); } } function validate() { if(newForm.link[0].checked==true) newForm.finalLink.value=newForm.oldLink.value; else if(newForm.link[1].checked==true) newForm.finalLink.value=newForm.newLink.value; alert(newForm.finalLink.value); } </script> </head> <BODY > <br> <br> <form name='newForm' method='post' … | |
Re: Yes, it is a better idea that you can do this by url rewriting . for this you need to do some steps. check these links for clear information step by step: [url]http://phpcreating.blogspot.com/2010/07/create-dynamic-subdomain-using-mod.html[/url] [url]http://www.reconn.us/content/view/46/67/[/url] | |
Re: Some where else you have written select query ,check once again in included pages also. Your update query is quietly perfect. This error is because you don't have privileges to use select command or you are not logged in to database as administrator. | |
Re: some thing like this: [CODE]<script type="text/javascript"> function revalidate() { alert("test"); test1=document.getElementById("test1").value; test2=document.getElementById("test2").value; window.location="revalidate.php?test1="+test1+"&test2="+test2; } </script> <form name="pass" action="validate.php" method="post"> <input type="text" name="test1" id="test1"> <input type="text" name="test2" id="test2"> <a href="javascript:revalidate();">revalidate</a> <input type="Submit"> </form>[/CODE] | |
Re: first , i need some clarification, what is the topic feature if that topic is locked???? and set "is_lock" flag in your topics table in database, then set it to 1 if it is locked, default is 0 means it is not locked. | |
Re: whenever your are going to generate a bill then use this function to get current date: [CODE] echo Date('M/Y/d');[/CODE] and save this in your database. | |
Re: place the error checking code in same page in which the form code is. ![]() | |
Re: try to print the query string [ICODE]$_REQUEST['case']; [/ICODE] and print this query and execute that query in phpmyadmin: [ICODE]echo "SELECT * FROM query WHERE case_no = '$case'";[/ICODE] and also try to change the code like: [CODE]$result_id1 = mysql_query("SELECT * FROM query order by case_id"); while($row1=mysql_fetch_array($result_id1)) { $cno=$row1[case_no]; //case_no is a … | |
Re: or try this: [CODE] [B][COLOR="Red"] if ($name!="")[/COLOR][/B] { //start upload $location = "avatars/$name"; move_uploaded_file($tmp_name,$location); $query = mysql_query("UPDATE Persons SET imagelocation='$location' WHERE Id ='$Id'"); die("Your Profile Picture has been uploaded! <a href='member.php'>Back to Profile</a>"); } else die("Please Select a File!");[/CODE] | |
Re: check this once: [CODE] $("input#owner_dropdownname.option:selected").val($("input#subject_dropdownname.option:selected").val()); [/CODE] check the link for reference: [url]http://api.jquery.com/val/[/url] | |
Re: you want something like this: [CODE] $i=1; while($i<10) { if($i==1) { print "id : "+$i; echo "<br>"; } else { echo "id : "+$i+" , "; echo "boxid : "+($i-1); echo "<br>"; } $i++; }[/CODE] ![]() | |
Re: use this line after your alert. [CODE] alert("Error:Enter Valid Date"); document.getElementById("num").focus(); return false; [/CODE] "num" should be your next input filed id. | |
![]() | Re: [url]http://www.redips.net/javascript/ajax-progress-bar/[/url] |
Re: you can show the page content based on your query string like: lets say if page url is like: [ICODE]mypage.php?show=form[/ICODE] then: [CODE] if($_GET['page']=="form") { // showing form } [/CODE] if page url is like: [ICODE]mypage.php?show=edit[/ICODE] then: [CODE] if($_GET['page']=="form") { // showing form data } else if($_GET['page']=="edit") { // showing edit … | |
Re: and also check this: [url]http://www.openwebware.com/wysiwyg/demo.shtml[/url] ![]() | |
Re: try this: and change according to your requirement. [CODE]<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script type="text/javascript"> function changeValue(x) { var divEls = document.getElementsByTagName("div"); var i = 0; for(i=0;i<divEls.length;i++) { divID=divEls[i].id; //alert(divID); //alert(x); if(divID == x) document.getElementById(divID).style.visibility = "visible"; else document.getElementById(divID).style.visibility = "hidden"; } } </script> </head> … | |
Re: and also check this link: [url]http://www.programmingfacts.com/solved-warning-session_start-function-session-start-cannot-send-session-cache-limiter-headers-already-sent/[/url] ![]() | |
Re: correct this line like: [CODE]tbl_sql="INSERT INTO tbl_user_post_requirement(user_id,verb_id,item_code,post_description,posted_on)VALUES('".$user_id."','".$vrb_id['verb_id']."','".$itm_code['item_code']."','".$post_description."','".$posted_on."')";[/CODE] | |
Re: once check your database table column data type once for these two fields : verb_category,added_on. | |
Re: check these links: [url]http://www.java-samples.com/showtutorial.php?tutorialid=22[/url] [url]http://www.servletsuite.com/servlets/smstag.htm[/url] [url]http://code.google.com/p/jsmpp/[/url] | |
Re: try with this: [CODE]<?php $mosttracks = mysql_query ("SELECT *, member_id as mem_id, name as n, COUNT(name) as cn, MIN(date_added) FROM tracks GROUP BY name ORDER BY COUNT(name) DESC, date_added asc LIMIT 3"); $number=1; while($row = mysql_fetch_array($mosttracks)) { echo "<tr>"; echo "<td align=left><a href=\"generic profile.php\" onclick=\"createcookie(" . $row['n'] . " )\">" … | |
Re: just change your code like this: [CODE]<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> </script> <script type="text/javascript"> function addRow(tableid) { $(document).ready(function(){ $("button").click(function(){ var clonedRow = $("#" + tableid + " tr:last").clone(); //this will grab the lasttable row. $("#" + tableid + " tr:last").append(clonedRow); //add the row back to the table }); }); } </script> </head> … | |
Re: [code] echo $sql="INSERT INTO `transaction` (ProfileID, ProgramID, ProgramName, ModuleID, ModuleName, EnrollmentID, ProgramFee, OJTFee, WorkshopFee, NCAssessment, OtherFees, TotalAmount, Date, From, To) Values ('$assessprofileid','$assessprogramid', '$assessprogram',$assessmoduleid, '$assessmodule', $assessenrollmentid, $programfee, $ojtfee, $workshopfee, $ncfee, $otherfees, $total, curdate(), '$formatted_from', '$formatted_to')"; [/code] post echoed query. and post your table structure. | |
Re: check these urls: [url]http://www.johntp.com/2006/07/26/how-to-increase-your-sites-link-popularity/[/url] [url]http://www.addme.com/newsletters/issue298.htm[/url] | |
Re: mark a thread if it gets solved. don't start multiple threads for one question. choose appropriate forum to start a new thread. search forum before start a thread. use code tags to post your code in a thread. don't do spamming. don't post website links for ranking. all the best. | |
Re: and also about regular expression, image uploads,creating thumbnails,php encrytion functions,php crons,PHP filters etc.. . What is the use of sprintf() function? . What is difference between mysql_connect and mysql_pconnect? . Notify URL and Return URL | |
Re: check this: [CODE]while ($row = mysql_fetch_assoc($query)) { echo "<div style='border:solid 1px #cccccc; float:left; width:700px; height:150px; margin:10px;'> <table cellpadding='0' cellspacing='0' border='0'> <tr> <td width='200px'> <div> <a href='cars/$row[image1]' rel='lightbox' title='$row[make] $row[model]' ><img src='cars/{$row['image1']}' width='200px' height='150px'; border='0'/></a> </div> </td> <td valign='top' style='padding:0px 5px 0px 0px; font-size:12px; width:280px; background-color:#ffffff;'> <div style='text-align:left; padding:5px;'> <div style='text-decoration:underline; … | |
Re: check this link: [url]http://stackoverflow.com/questions/3755752/multiple-image-selection-using-ctrlclick-and-uploading-using-php[/url] [url]http://developer.yahoo.com/yui/uploader/[/url] or you can do like this: [CODE]<input type="file" multiple="true" /> [/CODE] | |
Re: servlet is a Java class implementing the javax.servlet.Servlet interface that runs within a Web or application server's servlet engine, servicing client requests forwarded to it through the server. A Java Server Page is a slightly more complicated beast. JSP pages contain a mixture of HTML, Java scripts (not to be … | |
Re: in this piece of code [CODE] $query = "SELECT [COLOR="Red"]types_id,[/COLOR]gender FROM types "; $result = mysqli_query ($dbc, $query); while ($row = mysqli_fetch_array ($result, MYSQLI_ASSOC)) { echo "<option value=\"{$row ['types_id']}\">{$row['gender']}</option>\n";[/CODE] try to retrieve types_id in select query. | |
Re: [QUOTE]I'm getting too many values in the $_POST['access'] even if I only put just one value. Its seems I'm getting all the values in the access field in my database.[/QUOTE] yes, because you have written your combo box code in while loop, that's why you are getting all the values … |
The End.