841 Posted Topics
Re: Dear Friend, things are actually easy to prevent this: In Function get_temp_urls located in spider.php a sql gets executed. The results of this sql get stored in an Array named $tmp_urls. Limit the SQL results to say 0,100 and your spider will work fine as the Array is kept small. … | |
Re: You have to create database fields with checkbox names..and update that field with 1,if the check box is checked... | |
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... Please check out this url: [url]http://mig.sourceforge.net/gallery/index.php?currDir=[/url]. And i want to implement my galley in this way.. Please post me any … | |
Re: You just write the piece of code in the starting of page: [code=php] session_start(); [/code] And write the below code where ever you want to store your session variable: [code=php] session_unregister('mysesvar'); session_register('mysesvar'); $_session['mysesvar']=your value; [/code] And retrieve your session variable where ever you want by using this: [code=php] $_session['mysesvar']. [/code] | |
Re: Could you please clean cookie and try again? It may be caused by passport upgrade while your broweser still keep history data in cookie. Thanks, Shanti. | |
Re: Clearly post your thread... Means you want to store the details in database,,and you want to retrieve that.tel me clearly.... | |
Re: A complete portal with shopping,forums,blogs,date,grooming,newsletters,subscriptions,movie galleries etc This is the best... | |
Re: Yes,we can write our script code in head tags... And database connection is like this: [code=php] <? global $link; $link = mysql_connect('localhost', 'root', '1234') ; // Connection mysql_select_db("mydb") or die(mysql_error()); // Selection of database //for closing <? if(isset($link)) { mysql_close($link); } ?> ?> [/code] We can write database connection in … | |
Re: The line you have write is wrong: [code=php]<input type="Checkbox" name="contype" value="B"> <?echo $row['servicet']; //change this line to this: <input type="Checkbox" name="contype" value="<?echo $row['servicet'];"> [/code] | |
Re: Conversion of asp to php is not possible... We just use the logic and implement it in our implementation language... | |
I heard that sql injections are causing to our databases by spammers... Can anyone please tel me how it is possible ? And very importantly how to escape from sql injections... I expect more answers from you...And Thanks for those .... | |
Re: hey, when registration is completed,then put a back button with an id of corresponding userid or name...By using that you can retrieve the information form the database... Its simple... Try it... | |
Re: [code=php] Use this script in your php page: <script> function comparision(){ d=document.form1; var total=""; if(!d.c.length){ if(d.c.checked) { d.check_compare.value=d.check_compare.value+d.c.value+','; return true; } else { alert("Please select check Box"); return false; } } for(var i=0; i < d.c.length; i++){ if(d.c[i].checked) { total +=d.c[i].value + "\n"; d.check_compare.value=d.check_compare.value+d.c[i].value+','; } } if(d.check_compare.value=="") { alert("Please select … | |
I have printed questions on faq.php... when click on that question it will go to faqview.php In that faqview.php , i want to print my previous viewd question... Can any one help me out... Help is urgent... Thanks.. | |
Re: First you have contact with paypal payment gate way.. Then they will provide with some variables.. Then nothing to do: We just send them(to paypal) with user card number and amount and some vars if required.. Then they will send back our request with info.. then you will indicate that … | |
Re: Yes,Nav's answer is damn right... Better to provide many accounts from one computer... And try sessions also,if you want to store more user data like nick name etc... Thnks.. | |
Re: Hey... I tried this ,its working fine... I think you have mistaken at last line ,means you have write the column name with out $. [code=php] function q($a) { return mysql_query($a); } function a($b) { return mysql_fetch_assoc($b); } $abc="select * from user"; $bcd = q($abc); $cde = a($bcd); echo $cde['uname']; … | |
Re: In php,it will be done by using mail function and retrieve the values by $_POST. | |
Re: The Code above is not in the correct meaning: Means: The php script will execute first... So if($_POST['category'] == "services") ,this line is selected by user, so u will get this error: Notice: Undefined variable: result in E:\web\forumsnetwork\frontend\saneg.php on line 7 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL … | |
Re: Then first insert into table which fields you want...and then use update query to insert other fields by using any one id which we previously inserted.. provide your table with default entry(if int with 0,if varchar with no,if text dont specify any).. Then you will get the task what you … | |
Re: Try this: [code=php] for(var i=0; i < d.c.length; i++){ if(d.c[i].checked) { total +=d.c[i].value + "\n"; d.check_compare.value=d.check_compare.value+d.c[i].value+','; } } if(d.check_compare.value=="") { alert("Please select atleast one check Box"); return false; } [/code] K... | |
Re: Hello kavitha try this... [code] <? /...database connections... if(!empty($_GET['delid'])){ mysql_query("delete from category WHERE id='".$_GET['delid']."'"); if(!empty($_GET['start'])) { header("location:add_subcategory.php?msg=del&start=".$_GET['start'].""); }else{ header("location:samepage.php?msg=del"); } } ?> //This is in your designing table... <td height="22" align="center" ><a href="javascript:del('<? echo $frow['id'];?>')">Delete</a> </td> //and this can be anyware in your page <script language="javascript"> var d = document.frmmngmall; … | |
Re: Yes..virtual communities have their own best benifits... But frequent Updation is needed...Then u will get more members ,more traffic...But mind hardwork and patiency are which we should have too....... | |
Re: Hello.. you just delete the below line...which is before your while loop.. $row = mysql_fetch_row($result); Then it will work fine... | |
Re: I think so... You make onSubmit() in your submit button... or You can use an onclick and use the form.submit() function though. This is for checking submit button is working or not.. if(@$_POST['Submit']) { or or try using header("location:abc.php?username=xyz"); You have to make your header() calls before your script outputs … | |
Re: k.. I think u hav to use the seesion registrstion in your first page means in register.php .Then you can retrieve those session variables in the page where ever u want.. Thanks. | |
Re: I think you have to restrict the select condition by using where clause based on your service_category.. try this: [code] <html> <head><title>auto alto system</title></head> <body> <table> <tr> <td> category</td> <td><select name="category"> <option value="sercategory">service category</option> <option value="servicetype">service type</option> <option value="services">services</option> </select></td> </tr> </table> <?php include 'database.php'; $result = mysql_query("SELECT * FROM … | |
Re: So many tips are there and so much hard work has to do... Then only we will achieve it.. Some tips are: 1.Make your site to look gud and better.. 2.Try to sit end user in your site for some time by adding some interesting messages with good desiging.. 3.include … | |
Re: The way is: You have to design the login page with two text boxes and then retrieve them and compare them with select statement with your database.. Then if it is ok ,navigate to another page like welcome.php... Its very simple ,try.... | |
Re: phpbb.com is the best try to implement your self,its not very difficult.. Im on the way same... | |
Re: your question is not clear... In my view, you have to use iframe to add message board... | |
Re: Try this code, it will work better... But we can insert image into a folder and That path will be saved into database table.. check it once.. <? include('connection.php'); if($_SERVER=='POST') { $dupcnt=getdata("products","count(*)","prcode='".$_POST."'"); $dupcnt2=getdata("products","count(*)","prname='".$_POST."' && catid='".$_POST."'"); if($dupcnt>0 && $dupcnt2>0){ $err="Product With this Name and code already existed."; } else if($dupcnt>0){ $err="Product … | |
Re: You should reffer [url]www.dynamicdrives.com[/url] . Its very clear there.. | |
Re: core php means the foundamentals of php ,means that the first implementation of php,...now the new versions are coming like php5...So the first implementation becomes core php... k..... | |
Re: I have put it in <> where the error is: in the last line ' is not needed.check it. $message = 'Cape Town Alive - Cape Xtreme Booking Request' . 'Name:' . cleanPosUrl($_POST['posName']); . 'Email:' . cleanPosUrl($_POST['posEmail']); . 'Staying:' . cleanPosUrl($_POST['posStaying']); . 'Country:' . cleanPosUrl($_POST['posCountry']); . 'Contact:' . cleanPosUrl($_POST['posContact']); . … | |
I want to expire login details after some days.. Can any one help me any short code to this thread in php... I have the registered date of particular member in my database.. Thanks. | |
Re: Helloo.. Put echo to your insert query and then copy and paste the output query into your databse,then you will find where will be your error placed.. I think its very small to recover.. Hope got.. | |
Hello all.. Plz look at my thread... I have a date field in my data base table.. And i want to increment that date coming from database table.. Can any one help me please... Thanks... Shanti. | |
Re: Hello.. Use this code in your page with your database names... you will get what you want.. <? session_start(); include('functions.php'); if($_SERVER=="POST"){ $qer="select * from admin where username='".$_POST."' and password='".$_POST."'"; $res=mysql_query($qer); $num=mysql_num_rows($res); if($num==0) { $msg=1; } else if($num==1) { session_unregister("user_name"); session_register("user_name"); $_SESSION=$_POST; session_unregister("adminid"); session_register("adminid"); $_SESSION=getdata("admin","id","username='".$_POST."' and password='".$_POST."'"); echo'<script language="javascript">window.location.href="welcome.php";</script>'; } } … | |
Re: Hello.. When ever you click on the addtocart button,the product id will redirect to the addtocart.php page.. And there, we are creating a temp_ses var with random number and ref_id with (our code like BNB and one increment value like 1212) ,then we are going to insert the whole variables … |
The End.