841 Posted Topics
Re: Its better to do like,set your questions in your dropdown from database is good... check this thread ,here you can found attachments,that will get you clear answer.... [url]http://www.daniweb.com/forums/thread132703.html[/url] | |
Re: see this thread will get you the answer... [url]http://www.daniweb.com/forums/thread134714.html[/url] | |
Re: See this thread: [url]http://www.daniweb.com/forums/thread133380.html[/url] [url]http://www.daniweb.com/forums/thread126462.html[/url] [url]http://www.daniweb.com/forums/thread134147.html[/url] | |
Re: See this thread: [url]http://www.daniweb.com/forums/thread133380.html[/url] [url]http://www.daniweb.com/forums/thread126462.html[/url] [url]http://www.daniweb.com/forums/thread134147.html[/url] | |
Re: this is one type: [code=php] <script> function Add() { </script> <td width="300" ><input type="text" name="txt_prodid[]" class="border" size="25" /></td> <td width="200" colspan="2"><input name="txt_proddescription[]" type="text" class="border" size="36" /></td> <td width="200"><input type="text" name="txt_prodquantity[]" size="20" class="border" /></td> <script> } </script> <form name="pr_form" action="pr_add.php" method="post" onSubmit="return validateForm();"> <tr width="508" align="center"> <td colspan="2" align="right"><input name="Product" type="submit" … | |
Re: See this url will hep you: [url]http://www.openjs.com/scripts/examples/addfield.php[/url] | |
Re: You just write small logic in one page called login_check.php... and you must include that file in every page where ever you want security to your page: like: [code=php] <? include("login_check.php"); ?> [/code] In login_check.php: [code=php] <? session_start(); if(empty($_SESSION['user_name'])) { header('location:index.php'); } ?> [/code] | |
Re: [code=javascript] var1=document.getelementbyid('txt1').value var2=document.getelementbyid('txt2').value var3=Number(var1)+Number(var2) [/code] or concentrate on eval() function in javascript by googling.... | |
Re: [code=php] <?php $data2 = file_get_contents("data2.txt") + "1"; $fp = fopen("data2.txt", "w"); fwrite($fp, $data2); fclose($fp); ?> [/code] | |
Re: Generally with all server side scriptings like php,jsp our request is going to server and come back with response...For some point of views there no need to go to server,like in the example situation validations...So we are going to use client side scripting which dont waste the time.... Now the … | |
Re: see this attachment, and change that according to your desire... | |
Re: Refer this for playing video... [url]http://rainbow.arch.scriptmania.com/scripts/music/video.html[/url] | |
Re: Echo your insert query and tel me where the error was placed.. give me your table also... | |
Re: This is the code: [code=php] To functions to convert integers to roman figurs and back <?php // Function that calculates the roman string to the given number: function dec2roman($f) { // Return false if either $f is not a real number, $f is bigger than 3999 or $f is lower … | |
Re: See this: [code] <?php echo substr("Hello world!",6); ?> [/code] The output of the code above will be: world! and [code]<?php echo substr("Hello world!",6,5); ?>[/code] The output of the code above will be: world ------------------------ You can see more string functions by googling... | |
Re: Basically searching with database means restrict our tables with our requirement... In my examples which i have attached here, you can fine different types of searchings here... For that in phonefinder page i put a hidden variable like: [code] <input type="hidden" name="phonefinder" value="ok">[/code] And in search_box1 page, i have registered … | |
| |
Re: Check this code: [code=javascript] <script> function comparision(){ d=document.form2; var total=""; if(!d.contype.length){ if(d.contype.checked) { d.check_compare.value=d.check_compare.value+d.contype.value+','; return true; } else { alert("Please select check Box"); return false; } } for(var i=0; i < d.contype.length; i++){ if(d.contype[i].checked) { # total +=d.contype[i].value + "\n"; d.check_compare.value=d.check_compare.value+d.contype[i].value+','; } } if(d.check_compare.value=="") { alert("Please select atleast one check … | |
Re: can clearly post your thread in detail???? | |
Re: [code=javascript] if (Date.parse(fromDate) > Date.parse(toDate)) { alert("Invalid Date Range!\nStart Date cannot be after End Date!") return false; [/code] } or [code=php] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="Content-Script-Type" content="text/javascript"> <meta name="Content-Style-Type" content="text/css"> <title>Example</title> <script type="text/javascript"> <!-- function check (f) { var … | |
Re: Very Important Factors 1.) Use keywords in the file name of the image, such as red-widget.jpg. 2.) Make sure the image has a caption, preferably in bold, immediately above or below the image, with the keyword(s) you’re targeting. 3.) Also use the keyword(s) immediately before or after the image in … | |
Re: Check this url: [url]http://www.case.edu/projects/erp/projectdetails.html[/url] | |
Re: Your update query should be like this: [code=php] $qur= "update tbl_circular set `date`='".$date."', `headline`='".$headline."', `description`='".$des."' where headline like '%".$head."%'"; $update1=mysql_query($update) or die("Could not Update"); [/code] Post if error occures... | |
Re: You just try to implement the inbox hyperlink and then show all messages with subject and date from the database by using while loop... Its so simple to develop... ALL THE BEST. | |
Re: Find this url and right side they mentioned free services: [url]http://www.mypagerank.net/service_sn_index[/url] | |
Re: Try like this: [code=javascript] <script language="JavaScript" type="text/javascript"> var d = document.form1; function del(x) { if(confirm("You want to delete this record")) { d.submit(); } return; } </script> [/code] | |
Re: May this will help you: [url]http://us.php.net/mysqli_multi_query[/url] | |
Re: What is done in login page is: You just compare your typed name and password with database name and password, if they are correct ,then you just put them in sessions like: [code] session_unregister(user_name); session_register(user_name); $_SESSION['user_name']; [/code] Then you can use them where ever you want... please reffer some session … | |
Re: [code=php] //your database connections... <select name="state" class="input_form" style="width:150" > <option value="" selected>Select State</option> <? $query1=mysql_query("SELECT * FROM onetable "); $cnt=mysql_num_rows($query1); if($cnt>0) { while($list1=mysql_fetch_array($query1)) { echo "<option value='$list1[id]' >$list1[name]</option>"; } } ?> </select> [/code] | |
Re: online shopping forums blogs online ticketing student maintenece shopping cart portal library system | |
Re: Its working fine what you have posted... Check your database queries once. The syntax is also correct... | |
Re: you just create a table like messages in your database, and create a sent form , insert customer quotes in database including customer id which is in session,, And at service provider side,you just retrieve them to his box means: [code=php] function getdata($tble,$field,$whr) { $q="SELECT $field FROM $tble where $whr"; … | |
| |
Re: See this: [code=php] function get_all_listings() { $query = "SELECT * FROM `metlistings`"; $result = mysql_query($query) or die(mysql_error()); //Count the rows retrieved $count = mysql_num_rows($result); for ($i = 0; $i <= $count; $i++) { while($row = mysql_fetch_array($result)) { $title = stripslashes($row['metName']); $link = $row['metId']; $arr = array("listings" => array("total" => $count, … | |
Re: May this help you: [url]http://in2.php.net/manual-lookup.php?pattern=array_keys%255Darray_keys%28%29&lang=en[/url] | |
Re: I attach the code for pagination here.. check and implement for your application.. | |
Re: You have to insert all variables like what his order number,items form products table,amount,date into one table like order_user_details before mailing them to customer.At the admin side you can see who ordered for what,and also the status of order.... | |
hello... Can any one please help me out? I want an image gallery script, where the images are displayed as thumbnails from many subfolders created dynamically and not from database... Thanks in Advance... | |
Re: First you have to gain clear idea about blogs... Means what are the categories they are using, any sub categories are there, and what is going on when they post blog, Know can we place 2 or more blogs, Know how one blog is different from another blog. Browse different … | |
Re: I think you % symbol is giving you that error.. | |
Re: Hi Naveen... I have done a code with your reference.. But i got error in mysql: Error SQL query: "SELECT fname,date,curdate(),(YEAR(curdate())-YEAR(date))-(RIGHT(curdate(),5)<RIGHT(date,5)) AS age FROM date_profiles ORDER BY fname"; MySQL said: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version … | |
| |
Re: Hello ... Try this code.. [code=php] <?php 2. $fileatt = ""; // Path to the file 3. $fileatt_type = "application/octet-stream"; // File Type 4. $fileatt_name = ""; // Filename that will be used for the file as the attachment 5. 6. $email_from = ""; // Who the email is from … | |
Re: [code=php] if($_GET['stat']==1){$p=1;$m=5;} else{$p=0;$m=6;} $q="update yourtable set status='".$p."' where id='".$_GET['id']."' "; mysql_query($q); [/code] this is to display status: [code=php] if($row['status']==0) { $i="In-Active"; $j=1; } else { $i="Active"; $j=2; } [/code] This is where your status link in your page: [code=php] <td align="center"class="style13" ><a href="managepage.php?id=<?=$row['id']?>&stat=<? echo $j?>" > <? echo $i?></a> </td> … | |
Re: Helloo.. k.Thats fine... Tel, how did you get your record from database means by using one id,you was getting the records from db to update now,by using that id ,you can update your record now... Using where clause in update query... ANy doubt tel me... |
The End.