- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 5
- Posts with Upvotes
- 4
- Upvoting Members
- 4
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
Sr. Software Engineer
85 Posted Topics
Re: Hi, you can sumply use [code] t2 = "0"+t2; [/code] but if you also want to give a condition that a 0 will be prefixed only for numbers less than 10. then [code] if(t2<10) { t2 = "0"+t2; } [/code] | |
Re: Use following program [code] int a = 100; int prime=2; int i=2; int start; int end; while(i<=a) { bool isprime = true; start=prime; end=prime%10; for(int j=2; j<i; j++) { if((i%j==0)) { isprime = false; break; } } if (isprime) { prime = i; Console.WriteLine(prime.ToString() + " - Prime"); } i++; … | |
Re: hi, Check this. I had provided solution for thumb nails. [url]http://www.daniweb.com/forums/thread133654-2.html[/url] | |
Re: Hi, in this case first run the server page independently with a valid value in querystring. then check if this page displays a valid xml output. | |
Hi All, I have implemented general LZW algorithm, if anyone can help me with motif base lzw algorithm. I will highly appriciate this. | |
Re: hi, The problem was not with AJAX or PHP code, but it was with the xml generation. I have included the modified code. I have added a root element for the XML. [code]<?php // This is a very simple data provider for the cascading dropdown // example. A *real* data … | |
I am using following code to create a authentication cookie, but the problem is user is not getting authenticated. Please let me know if I am missing somthing. [code] HttpCookie authCookie = FormsAuthentication.GetAuthCookie(UserLogin.UserName, true); FormsAuthenticationTicket ticket = FormsAuthentication.Decrypt(authCookie.Value); FormsAuthenticationTicket newTicket = new FormsAuthenticationTicket(ticket.Version, ticket.Name, ticket.IssueDate, ticket.Expiration, ticket.IsPersistent, userDataString); authCookie.Value = … | |
Re: Hi, I am working as a web developer and I am quite good in my work. I work in ASP and learning PHP and ASP.net. I have good knowledge of C++,AJAX, CSS, Javascript, Flash Actionscript. Also, I know, if I have to design something in photoshop, I can do that. … | |
Re: That's fine that courses are in an array, but where are the cost stored. Moreever, if you want to do something on user selection, then either you will need to post your page back to server or you will need to use AJAx. | |
Re: Hi, You are missing double quotes [code] $sql = 'SELECT * FROM cartable'; $finalurl = <a href='$row["carwebsiteurl"]'>$row[carname]</a>; echo $finalurl; [/code] | |
Re: there are 2 ways to do it. 1. Ajax- through which you can make server request without refreshing the page. 2. on page load, store all the values in a string variable as [code] str = "zip,state,country|zip,state,country|zip,state,country" [/code] then when user enters zip code, the using client side script, you … | |
Re: Hi, This can be done directly in stored procedure. | |
Re: Hi, Why is mysql_close(); outside of <??> | |
Re: Hi, Why don't you concatenate values in a string like [code] apple,orange,mango and then store it in cookie. [/code] | |
Re: Hi, You will need to create a clock in javascript that will refresh the time. | |
Hi, Can anybody provide me some examples of using templates in php | |
Re: Hi, There are three ways, which you can use to store the values. 1. Session 2. Hidden variables 3. Querystring. | |
Re: Hi, The easiest way that I can think of is: Create the table dynamically and then when you move up and down, swap the table rows using javascript. | |
Re: Hi, What actually do you want to achieve. Open the word doc or gettting the content of word doc and then displaying them in a webpage. | |
Re: Hi, I think you will need to unserialize the values after retrieving them from db. Vivek ![]() | |
Re: Hi, Will this quiz be purly in javascript or will it be a webbased game. | |
Re: Hi, Modify the following line. [code] <a href="contractor_inbox.php?mail_id=<? echo $row['mail_id'];//session_register("mail_id");//session_register("mail_id");?>"> [/code] with [code] ><a href="contractor_inbox.php?start=$start&limit=$limit&mail_id=<? echo $row['mail_id']; //session_register("mail_id");//session_register("mail_id");?>"> [/code] | |
Re: Hi, You can use split function as follows [code] str = "Romans 3:1,5;Romans 4:1-10" arrstr = split(str,";") [/code] | |
Re: Hi, You will need to call two functions in AJAX. 1. for inserting the comment in database and returning the last inserted id 2. For displaying the comment using the returned id. | |
Re: hi, There change your query with following query: [code] select checktime from checkinout where checktime like '%"&any_dt&"%' [/code] | |
Re: Hi, onchange event of from date textbox, copy the value of from date into todate textbox. | |
Re: Hi, the best solution to provide spamers is including a tricky game, like a mathematical opeartion on two numbers. provide them two random numbers and a mathematical operation and let them provide you solution. then on next page you can first check if you have got the correct answer, then … | |
Re: Hi, Use the following code to get random values [code] <% Option Explicit Dim Tip(6) Tip(1) = "tip 1" Tip(2) = "tip 2" Tip(3) = "tip 3" Tip(4) = "tip 4" Tip(5) = "tip 5" Tip(6) = "tip 6" Function RandomNumber(intHighestNumber) Randomize RandomNumber = Int(intHighestNumber * Rnd) + 1 End … | |
| |
Re: Hi Troy, Its wonderful information. Thanks. | |
Re: Hi, I have done the pagination check it. [code] <?phpsession_start(); include('database.php'); //Information for paging //************************************************************************** $page_name="yourPage.php"; $limit=sql_quote($_GET['limit']); // Read the limit value from query string. $start=sql_quote($_GET['start']); // To take care global variable if OFF if(!($start > 0)) { // This variable is set to zero for the first page $start … | |
Re: Hi, Post your whole script | |
Re: Hi, Can you tell, what is wrong with the delete operation, is it giving an error or what. The syntex is correct. You can print the sql syntex and then run the query in mysql directly. | |
Re: Hi, Schedule you page in window schedular and it will run automatically. | |
| |
Re: Hi, You need to use the following logic: [code] <a href="page.php?alp=a">A</a> <a href="page.php?alp=b">B</a> <a href="page.php?alp=c">C</a> <a href="page.php?alp=d">D</a> <? $char_sel = $_GET['alp']; ?> [/code] Replave page.php with the name of your page. Use this and the code will work | |
Re: Hi, Can you please detail your requirement. | |
Re: Hi Shanti, Check this site. [url]http://www.velocityreviews.com/forums/t159596-rotate-an-image-90-degrees-.html[/url] | |
Re: Hi, can you elobrate your problem, as you there can be different ways depending on requirement Vivek Enjoy coding and keep smiling | |
Re: Hi, I think the problem is in the following statement. [code] $query1="SELECT * FROM autoalto_mail where mail_id='".$_REQUEST['$mailid1']."'" ; [/code] You are using session to get the value and you are using request in qurey. change your query to [code] $query1="SELECT * FROM autoalto_mail where mail_id='".$mailid1."'" ; [/code] | |
Re: Hi, Use the following method. [code] set oConno = Server.CreateObject("ADODB.Connection") set oRsMain = Server.CreateObject("ADODB.Recordset") oConno.ConnectionString = "Provider=SQLOLEDB;Data Source=[servername];Initial Catalog=[database];User Id=[userid];Password=[password]" oConno.Open [/code] | |
Re: Hi, Buddy is right, You should always remember to enclose your javascript code inside <script language=javascript></script> block, in order to let browser know that this is a javascript code ant a sentence. | |
Re: Hi, If you post the script for one slid show, I will create the required script for you. | |
Re: Hi , Can you please explain "but I need to get it to e-mail to an address and thank someone for submitting their information." | |
Re: Hi, I have some questions. 1. If you have that specific email that you want search then you can search that using sql query. like [code] select email from table1,table2 where table1.id = table2.id and (table1.email=email1 or table2.email = email1) [/code] 2. if you don't have emailid's and you want … | |
Re: Hi, You can create a button in ASP and then on its click create a database connection and execute delete query on that table for the value. Hope this will help you out. |
The End.