- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 6
- Posts with Upvotes
- 6
- Upvoting Members
- 1
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
13 Posted Topics
Re: it is also an example same like as muralikalpana [CODE]<?php $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="test_mysql"; // Table name // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); $sql="SELECT * FROM $tbl_name"; … | |
Re: [QUOTE=muralikalpana;1153087]I dont know how to make the function, i would like it so that when the user enters the text it searchs the text on the page and hilites behind the text yellow. So its a bit like a "find" function that hilites behind the word that it is asked … | |
Re: try this [CODE]<?php ob_start(); extract($_REQUEST); extract($_POST); session_start(); $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } $db=mysql_select_db('dbname',$con); ?> <html> <body> <script type="text/javascript"> /*********************************************** * Fading Scroller- © Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive … | |
Re: [CODE]<? $cat=$city; //fetch $city according to ur query. $catrr=explode(",",$cat); //explode. //echo $catrr; ?> <select name="t_city[]" size="5" multiple="multiple" class="normal_text" id="t_class" style="width: 150px;"> <? if(!$_SESSION[user]) { ?> <option selected="selected" value="select">Select Class</option> <? } ?> <? $cat_query=mysql_query("select * from city "); while($cat_data=mysql_fetch_array($cat_query)) { ?> <option value="<?=$cat_data['city'] ?>"<?if(in_array($cat_data['city'],$catrr)) {?> selected="selected" <? } ?>><?=ucfirst($cat_data['city'])?></option> <? … | |
Re: [QUOTE=muralikalpana;1146948] now i have query string is there. how to give like above. now i want to point a div which is in comment.php. where can i give #news [CODE]<a href="comment.php?postid=<?=$Row['auto_id']?>"><b>Reply</b></a>[/CODE][/QUOTE] write like this. [CODE]<a href="comment.php?postid=<?=$Row['auto_id']&#news?>"><b>Reply</b></a>[/CODE] give id=news in particular div which is in comment.php. | |
Re: [QUOTE=muralikalpana;1120789]hello..... i am fetching text from database. i want to restrict 400 characters from that after "readmore". it redirects to total page. i was used substring but i want to total validate what means after 400 characters there is '.' is there then not appear '.........'like this. otherwise appear after … | |
Re: i think you are trying for this. hope this will help you. at the top of the page you connect to your database. [CODE]<? for($i='A';$i<='Z';$i++) { $select1=mysql_query("select * from product where productname like '$i%'"); $count=mysql_num_rows($select1); if($count!=0) { echo $i; echo "<br>"; while($fetch=mysql_fetch_array($select1)) { echo $fetch['productname']; echo "<br>"; } echo "<br>"; … | |
Re: [QUOTE=muralikalpana;1091088]hello.... i want to do text fadein ,fade out using javascript onload page. actually i want to display text which is in database that text will appear in front end with fadein and fadeout effect. anybody plz help..............[/QUOTE] don't worry....i think you are looking for this code only. here i … | |
[CODE] <?php ob_start(); extract($_REQUEST); extract($_POST); session_start(); $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } $db=mysql_select_db('murali',$con); $message = ''; $error = array(); $select=mysql_query("select * from registration where username='$_REQUEST[username]'"); $taken_usernames=mysql_fetch_array($select); // main submit logic if (@$_REQUEST['action'] == 'register') { $resp = check_username($_REQUEST['username']); if ($resp['ok']) { $message = … | |
Re: [CODE]<html> <head> <script language="javascript"> function checkAll() { for (var j = 1; j <= 14; j++) { box = eval("document.checkboxform.C" + j); box.checked = !box.checked; } } </script> </head> <body> <form name=checkboxform> <input type=checkbox name=C1 >C1<br> <input type=checkbox name=C2 >C2<br> <input type=checkbox name=C3 >C3<br> <input type=checkbox name=C4 >C4<br> <input type=checkbox … | |
| |
hello... i am doing shopping cart. in that there is billing address is there and shipping address is there. in there between "copy" link is there. when that page is loading "billing address fields comming and 'copy' link is also comming. but shipping address fields are not comming. after 'copy' … | |
The End.