- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 13
- Posts with Upvotes
- 12
- Upvoting Members
- 10
- Downvotes Received
- 13
- Posts with Downvotes
- 13
- Downvoting Members
- 6
103 Posted Topics
Re: can you explain your problem clearly . i am not getting you. | |
Re: [QUOTE=hno;1069905]HI I want to a make an entertainment web site . What kind of it is more popular now ? how about a game web site ? In my country there isn’t any online game web site and I want to make a online game web site . Can anyone … | |
hi all, i want to send sms to mobile phones from web site . is there any solution for this ....... give me idea!!!!!!!!....... | |
Re: see [URL="http://www.daniweb.com/code/snippet236476.html"]this[/URL] thread. it will help you. | |
Re: [QUOTE=digital-ether;1053326]This it the embed code for that particular page: [CODE]<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/NMAYr709-9Y&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/NMAYr709-9Y&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>[/CODE] Notice the only unique thing is: NMAYr709-9Y hi, i tried above 2nd one but i am failed to get video. [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML … | |
Re: [QUOTE=rajeesh_rsn;828226]Hi i have created a website for my client using PHP and mysql . The client need to backup a table in database as excel file every day. Well he had no idea about coding and all ... He need to backup using a simple way. Please anyone let me … | |
Re: first check current password using select query. if match current password with db value update that particular password with new password using update query in mysql. | |
Re: by using ajax we can update date with out refreshing the page . see w3shools ajax tutorials. | |
Re: [QUOTE=super_noobie;1064389]hey all I have a standard php form and I want a to add paypal purchasing action to it as well. is there an easy way to do this? thanks in advance[/QUOTE] post your code first. if is it has any modification , let me see your code. | |
Re: [QUOTE=ardav;915041]I've used one recently called Help Desk 1.0 by Linux Web Shop. The live chat module is awesome (for free). It also has a ticket system and a knowledge base builder (a complete support package). Unfortunately I can't remember from where I downloaded it (I think it was sourceforge, but … ![]() | |
hi all, i am new to php. i want know about how to import contacts from yahoomail,gmail, orkut, facebook, xing,..........like. if anybody know about these. help me. share with me. ........ | |
Re: [CODE]<td><table width='900' border='1'> <tr> <td><div align='center'><strong>No.</strong></div></td> <td><div align='center'><strong>Question</strong></div></td> <td><div align='center'><strong>Rating</strong></div></td> <td><div align='center'><strong>Amount</strong></div></td> <td><div align='center'><strong>Remark</strong></div></td> </tr> <?php while($row = mysql_fetch_array($result)) { <td width="350" align="center" width="20"><?php echo $i;?></td> <td width="350"><?php echo $row[question];?></td> <td align="center" width="500"> <input type="radio" name="rating<?=$i?>" value="1"/>1 <input type="radio" name="rating<?=$i?>" value="2"/>2 <input type="radio" name="rating<?=$i?>" value="3"/>3 <input type="radio" name="rating<?=$i?>" value="4"/>4 <input … | |
Re: have a look at [URL="http://www.daniweb.com/forums/thread182333.html"]this [/URL] it will help you | |
Re: [CODE]//connect //ordering the latitude $query="SELECT * FROM Position ORDER BY Latitude ASC"; $result=mysql_query($query); if (!$result) { echo 'Could not run query: ' . mysql_error(); exit; } while($row = mysql_fetch_row($result)) { echo $row['P_ID ']."<br>"; echo $row['Latitude ']."<br>"; echo $row['Longitude']; } //echo $row[1]; //echo $row[2];[/CODE] try like this | |
Re: use implode to store multiple values [CODE]if($_POST['coursecode_1']) { $store=implode(",",$_POST['coursecode_1']); }[/CODE] use explode to split the string. [CODE]$s=explode(",",$store); for($=0;$i<count($s);$i++) { echo $s[$i]; }[/CODE] | |
Re: see this links [URL="http://in.search.yahoo.com/search;_ylt=A3llmkTSj49LY2kAqb67HAx.?p=.htaccess+url+rewrite&fr2=sb-top&fr=yfp-t-704&rd=r1&sao=1"]link[/URL] [URL="http://www.iwebtool.com/htaccess_url_rewrite"]link1[/URL] [URL="http://in.search.yahoo.com/search;_ylt=A3llmkTSj49LY2kAqb67HAx.?p=.htaccess+url+rewrite&fr2=sb-top&fr=yfp-t-704&rd=r1&sao=1"]link2[/URL] | |
Re: explode your date and print as per your need. | |
Re: hi , first store the cities in database separeted with cammas(","); and check the multiful values are stored in database or not. [CODE]<?php $con=mysql_connect("localhost","root",""); $db=mysql_select_db('state'); $name=$_POST['name']; //$city=$_POST['city']; $abc=$_POST['city']; for ($i=0; $i<count($abc); $i++) { $city = $city.",".$abc[$i]; } $submit=$_POST['submit']; if(!empty($submit)) { $query=mysql_query("insert into city(name,city) values('$name','$city')"); } ?>[/CODE] and explode the cities … | |
Re: [CODE]<? ob_start(); extract($_POST); extract($_REQUEST); session_start(); $con=mysql_connect('localhost','root',''); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("databasename", $con); if($_POST['username']!='' && $_POST['password']!='') { //echo $url;exit; $select=mysql_query("select * from user_registration where username='$username' and password='$password'"); $count=mysql_num_rows($select); if($count>0) { $fetch=mysql_fetch_array($select); $_SESSION['user_id']=$fetch['auto_id']; header("location:my_account.php"); } else { $exists=1; } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML … | |
Re: [CODE]$num=mysql_num_rows($sql); if($num>0) { while($row=mysql_fetch_array($sql)) { echo"<table>"; } } else { echo "<table>"."no records here"; }[/CODE] try like this. i am not sure this is working or not. | |
Re: try this [CODE]<!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> <title> PHP Hardcoded Login Script! </title> <script language="javascript"> function checkvalid() { var name=document.formx.postUser.value; var pass=document.formx.postPass.value; if(name=="") { alert("enter user name"); document.formx.postUser.focus(); return false; } if(pass=="") { alert("enter user name"); document.formx.postPass.focus(); return false; } if((name=="admin")&&(pass=="pass")) { var st=document.getElementById('loginStatus'); … | |
Re: if and else are not matching .may i see your fullpage code. | |
Re: [CODE] if($_SESSION['user_id']==1) { //put user links here. } if($_SESSION['user_id']==1) { //put admin links here. } [/CODE] | |
Re: do like this. [CODE]<?php $start = new DateTime('08-06-1995 Europe/Copenhagen'); // DD-MM-YYYY $end = new DateTime('22-11-1968 Europe/Amsterdam'); if ($start < $end) { echo "Correct order"; } else { echo "Incorrect order, end date is before the starting date"; } ?>[/CODE] for refrence see this [URL="http://in2.php.net/manual/en/function.date-diff.php"]link[/URL] hope it will helps you. | |
Re: replace $start=$_GET['start']; with [CODE]$start=$_REQUEST['start'];[/CODE] put echo before $COND [CODE] echo $eu,$limit; $COND .= " hotel_id <> 0 AND is_futured='Y' AND status=1 order by hotel_name limit $eu,$limit";[/CODE] see the start & limit value you will find error. i hope it helps you. | |
Re: [CODE] <?php $email = $_REQUEST['email'] ; $name = $_REQUEST['name'] ; mail( "Saamon@live.com", "Website Opt In Form Results", $message, "From: $email" ); echo"<script language='javascript'>newwindow('index.html');</script>"; ?>[/CODE] and javascript code in header of page [CODE]<script language="javascript"> function newwindow(url) { var url = url; window.open(url,'MyWin','resizable=yes,scrollbars=yes,width=200,height=200,left=400,top=250'); } </script>[/CODE] try like this | |
Re: [QUOTE=tryphy;1132719]Hi I have this login page where user enters in and goes to main page, it has a button called enter form >> which on clicks go to a form submission page . The user enters the form and click submit, once he click submit the form is submitted and … | |
Re: hi, your javascript is not working. i mode some modification. replace your dropdown code with [CODE]<?php $result = mysql_query("SELECT id, book_name FROM iin_books"); ?> <select name="category" id="category" onchange="ajaxGetInfo(this.value);"> <option >Select a book title...</option> <?php if(mysql_num_rows($result)!=0){ ?> <?php while($nt=mysql_fetch_array($result)){ ?> <option value="<?=$nt['id']?>" > <?=$nt['book_name']?> </option> <?php } } ?> </select>[/CODE] and … | |
Re: [CODE]<?php // Create a link to MSSQL $link = mssql_connect('servername', 'username', 'password'); // Select the database 'php' mssql_select_db('databasename', $link); ?> [/CODE] i think connect to sql server use above code. see this [URL="http://in2.php.net/manual/en/function.mssql-select-db.php"]link[/URL] for more information about microsoft sql server in php. hope this will helpful to you. | |
Re: by usng now we can get the current date. compare this date with already stored date to expire the date or not [CODE]now();[/CODE] | |
Re: ok great and congracts, mark this as solved. | |
Re: [QUOTE=sandipan.rcciit;1133077]hello frnd, i want to integrate my web page with paypal service for shopping cart. for that purpose i use IPN (paypal notification service). i create a page name ipn.php to catch the paypal post and another page paypal.inc.php to describe all the variable and action to be done with … | |
Re: using arrays we can store multiple values. for array see w3school .com tutorial | |
Re: in the database table set one field as primary key and set extra(this is coloumn in table ) field as auto_increment. | |
Re: try below code [CODE]<script language="javascript"> function functionname() { var emailFormat = /^\w(\.?[\w-])*@\w(\.?[\w-])*\.[a-zA-Z]{2,6}(\.[a-zA-Z]{2})?$/i; var email=document.formname.emailfieldname.value; if(email=="") { alert("Please Enter The Email Id"); document.formname.emailfieldname.focus(); return false; } if(email!= "") { var eres=email.search(emailFormat); if(eres == -1) { alert("Please Enter Valid Email Id "); window.document.formname.emailfieldname.focus(); return false; } } else { return true; } … | |
Re: use confirm()in java script. if you click ,submit the form and write insert query to insert the data into db , if you click cancel it will not do any thing ![]() | |
Re: try like this [CODE]<!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=iso-8859-1" /> <title>Untitled Document</title> <script language="javascript"> function createsize() { s_count=document.getElementById('si_count').value; sz_count=document.getElementById('size_count').value; var tbl = document.getElementById('table2'); sz_count1=sz_count; if(s_count!=1) { //alert(sz_count); sz_count=parseInt(sz_count)+ parseInt(s_count)-1; //alert(sz_count); } var lastRow = tbl.rows.length; for(i=lastRow;i>s_count+1;i--) { tbl.deleteRow(i); } for(i=sz_count1;i<=sz_count;i++) { … | |
Re: [CODE]$Qselect= mysql_query("select * from tablename where tittle='$title(your titlename)' or title like '$title(your titlename)' "); $fetch=mysql_fetch_array($Qselect); echo $fetch['no of posts'];[/CODE] try like this. | |
Re: use this [URL="http://www.w3schools.com/PHP/php_cookies.asp"]tutorial[/URL] it will helps you. | |
Re: [CODE] $login_successful="1"; if ("$login_successful" == "1") { echo"<a href='http://www.icselect.com/login.php?logout=1'> Logout</a>" ; } else { echo"<a href='http://www.icselect.com/login.php'> Login</a>" ; } [/CODE] i tried like above i got correctly in my localhost. it prints 1 for logout o for login. | |
hai all, i am working shopingcart project . i got one error[CODE]HTTP/1.1 200 OK Date: Fri, 12 Feb 2010 12:01:22 GMT Server: Apache/2.0.55 (Win32) PHP/5.1.4 X-Powered-By: PHP/5.1.4 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Keep-Alive: timeout=15, max=88 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: … | |
Re: in php get values from url using REQUEST[]. [CODE]$id=$_REQUEST['id']; $postid=$_REQUEST['posid'];[/CODE] | |
Re: [CODE]ob_start(); $con = mysql_connect("localhost","username","password"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("dbname", $con);[/CODE] try this one | |
Re: at the top fix ob_start(); or contact your server adminstrator. | |
Re: for first page start variable $s=0 ; from the second page onwords Get the start variable from URL[CODE] $s = $_GET['s'] ;[/CODE] |
The End.