Jump to content

shah_ankitb

Members
  • Posts

    144
  • Joined

  • Last visited

Everything posted by shah_ankitb

  1. I have two files on the Same Server1] xyz.txt2] access_time.php I have two PC named PC1 & PC2. If 'xyz.txt' is changed/ It's content has been chaned by user on PC2.So how can i get the modified access time of 'xyz.txt' on PC1 in my PHP file WITHOUT Refreshing the Page. But I Need Without Refreshing the Page on PC1.If i refresh the page then i will get it easily.May i have to use the concept of AJAX. U can get the Last Modified time through Below Code. <?// Content of access_time.php file$filename = 'xyz.txt';if (file_exists($filename)) { echo "$filename was last modified: " . date("F d Y H:i:s.", filemtime($filename));}?>
  2. First of All Do this.Table MUST have PRIMARY KEY, add 'iRequestId' as INT(50) set it AUTO_INCREMENT.I can't understand ur question. Please Explain What u want in output.EXPLAIN : 'The problem I'm having is that if someone tries to enter a message more than once, it won't let them because it won't allow duplicate names'
  3. Just Follow this Link For the SMTP Script:-http://codewalkers.com/seecode/538.html
  4. Just try this script on your server & check that you are getting the mail or not.If might it give the Result that 'Mail Sent Successfully' & u don't get the mail. Then U have to Go for SMTP Script.This means u'r PHP has send the Mail but there is some problem with SMTP Server.Just check the Settings in php.ini. May be it useful to you.<?$status = mail('admin@hyipcharts.com', 'test', 'test');if($status) echo "Mail sent successfully";else echo "Error in Mail sending";?>
  5. Try to Find Out In the Google as :- 'MySQL Error Nr.2013'or Follow this link.http://www.webhostingtalk.com/archive/inde...p/t-278189.htmlI'm sure that will help u.
  6. 1] First of all pass the Unique Id which will Uniquely Identify that Mail in to Check Box's Value.ex. value = <?=$row['id']?> or value =<?=$_POST['id']?>. 2]In the Starting U r fetching records through look at the 3rd Line of code [if(mysql_num_rows($query) > 0)].But my Friend where Is the Query. If u still not getting Give me all code. I will sorted out my Way.
  7. Here is the code which U Want.I think Also u should also put validation that User Name and Password must be Filled before we go to'Go' button. It is Simple Java Script U can pust easily. <form name="frmname" method="post">UserName<input type="Text" name="name">Password<input type="Text" name="pass"><input type="Submit" name="Go" value="Go"></form><?$con = mysql_connect("localhost","******","******");mysql_select_db("******", $con);if(isset($_POST['Go'])){ $name = $_POST['name']; $pass = $_POST['pass']; $search = mysql_query("SELECT * FROM users where name = '".$name."' and pass = '".$pass."'"); $row = mysql_fetch_array($search); if ($row['name'] == $name && $row['pass'] == $pass) { $query = mysql_query("update users set logged = '1' where name = '".$name."' and pass = '".$pass."'"); } else { $query = mysql_query("update users set logged = '0' where name = '".$name."' and pass = '".$pass."'"); }}?> Create Table As Shown Below :---CREATE TABLE `users` (`iUserId` INT( 10 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,`name` VARCHAR( 255 ) NOT NULL ,`pass` VARCHAR( 255 ) NOT NULL ,`logged` VARCHAR( 5 ) NOT NULL ) ENGINE = MYISAM ;
  8. Hello EveryBody, I want help from u.I made a website. Suppose I visited the page from Example : - 'Home->Products->Product Name->Product Detail'. So i would like to Just Put that type of Link's Code on Every Page as per requirement.I have seen this type of Link Most Of the Site, So that User Can Easily Understand Which Path he/she has travelled through Site. Remember I don't want the File Name's as generated in joomla.I would not like to write all the links on each & every page.I am looking for the Code/ Function/File which i have to include in every page & i got the result.I hope that somebody help me to sort out this problem.
  9. First of all FIX all the Problem's Java Script Which I am getting while running ur Code.
  10. Thanks 'mma_fighter123' for ur reply. I found better solution thanks to you but this does not solve my problem.Try to run this below code, it is displaying Output some what as u give me the code.<?$headers = getallheaders();foreach ($headers as $name => $content) { echo "headers[$name] = $content<br />\n";}?> Actually I would Like To Store This all the Information In Database.I have made one table say 'user_referrer' & i have field's like 'user_ip','location','browser_info','os_info','visit_page_info', etc....I would like to also Store User Visited Page's Link & also how many time he has referred that page. After that i would Like to Make One Listing Page As displayed in link which i have given of 'GeoBytes' Site.U can also Visit http://www.geobytes.com , they r providing useful tools.
  11. Please visit this linkhttp://www.geobytes.com/WhoIsOnNow.htm?Who...;buttonid=27358 I am explaining what i want. I want to know the details of Users who has Visited My Site, On Which Day, From Which IP,From Which Country,From Which Browser/OSl, etc. Which u can see on above Link. They r providing the details of Who has visited this site from where, which page he has seen, from which location, from which browser, etc. So i am looking for that kind of code which is Freely Available Got My Poing?
  12. shah_ankitb

    Drupal

    Hello Everyone, I Need Suggestions Regarding Drupal CMS? I have seen many CMS like joomla,mambo but Drupal is Best of them as i Think.http://drupal.org/ If anybody find Best Amongst Drupal then they can send the link. Ur valuable reply help all of us to Improve & to be Best .
  13. Can any body gives me WebLink or Code of 'Captcha',there r many sites where i have find the Captcha code. But i want the code that will be Small & Easy to Undestand. If u have that type of WebLink which is easy to understand & also minimize my space of code. Then please reply as soon as possible. Thanx in Advance.
  14. I have made One Script. Which having Two Combo's One With having 'Country Name' & Another having it's Related 'State Name'.Suppose i want the Result without Refreshing the Page. So here is the Code Below. I will Sure it will help U in many Cases. Code is As Below....<form name="test"><select name="cmb" onchange="return showdata(this.value);"> <option value="">select</option> <option value="India">India</option> <option value="USA">USA</option> <option value="UK">UK</option></select><div id="gen_combo"></div></form></body></html><script>function showdata(val){ if(val == 'India'){ html = "<select><option>Gujarat</option><option>Delhi</option></select>"; }else if(val == 'USA'){ html = "<select><option>Chicago</option><option>Washington</option></select>"; }else{ html = "<select><option>London</option><option>ABC</option></select>"; } document.getElementById("gen_combo").innerHTML = html;}</script> If any one have Modification in this code to Make It more Userful for our Members then U r most Welcome.I am waiting for u'r valuable suggestions.
  15. I am Using the mail() function of PHP to E-mail. My Problem Is my client getting all the Mails in 'SPAM' not in 'INBOX'.As per I think ,PHP mail function has send the Mail,i got the Result 1 from that. So what is the Solution that i did not get the mail in 'SPAM'. Who will decide that this mail goes in to 'SPAM' or 'INBOX'? Need Help from PHP Technocrats.Minto FreshDimag Ki Batti Jalade
  16. Thank's For U'r Reply. I think U Might be Right. We have to take it in Positive Way. So we can learn out Lot. Thank's for Reply. I am Just Going to Poll It. Let's What Will be Result?
  17. I would like to put this type of Fcility on my site as u can visit below link..http://www.geobytes.com/WhoIsOnNow.htm?whoisonnowBut i want This Page's Code in PHP & It Will be Freely Available.I might be sure that they r using Referrer Object isn't it?
  18. I am bulding a website & i would like to Put Google Search On My Site. & also how can i achieve Highest Page Rank In Google?Minto Fresh..Dimag Ki Batti Jalade!
  19. Please chk below URL This will help u a lothttp://www.w3schools.com/rss/default.asp
  20. Please give me a code also table's Query & Describe More deeply. I am sure want to help u if i got it RIGHT.
  21. I have given PHP Quiz form below URL.http://www.w3schools.com/php/php_quiz.asp In the End I got the Result.Where i can see my Correct Answer as well as Wrong Answer.http://www.w3schools.com/quiztest/result.asp My suggestion is can we saw the Correct Answer's of User's Wrong Answer's. Like It is Saying that if i have given wrong answer. Ans : Wrong Answer. Correct Answer of This Question Is :- ['Right Answer Here'] So that User Can Undestand Where he/she done Mistake while Quiz? This is for the All the Exams on http://www.w3schools.com. I think it will be a nice Idea? Isn't it? In this way we can Imrove Our Website...
  22. shah_ankitb

    PayPal

    1st of all Thank's 4 ur replies.But i think u all r not getting what i want. I am making the website. Which contains the Credit Card Information, Expiry Date, Card Name it's Number I have already validated it through Java Script. Now I want that user can pay their payment through 'Paypal' Site. So i think we have to include the code of 'Paypal' class & as per information ha user filled up then it is automatically go to the 'Paypal' site & perform Function. SO I AM LOOKING FOR THAT 'CODE'. Hope U all GOT it what i want. If u can send me a Web Link for that CODE then it will be more useful for me. Any way thank's again who has read my Topic & try to answer it.Thanks...................
  23. If u want to jump on the same page. Then this is the code will help u.CODE:-<a href="#first">test</a><a name="first"></a>U can also visit this URL:-http://www.htmlgoodies.com/tutorials/getti...cle.php/3479511
  24. <form name="formname">Male: <input type="radio" name="gender" value="Male" >Female: <input type="radio" name="gender" value="Female" /><input type="Submit" value="submit" onclick="get_selected();"></form><script type="text/javascript">function get_selected(){ var radioSelected = false; for (var i=0; i<document.formname.gender.length; i++) { if (document.formname.gender.checked) radioSelected = true; } if (!radioSelected) { for (var i=0; i<document.formname.gender.length; i++) { if (!document.formname.gender[0].checked) { document.formname.gender[0].checked = true document.formname.gender[0].focus(); } } }}</script>I am not gettinf the perfect result as u suggest. U can check while u run above code.If u solve that problem then please reply me.
  25. shah_ankitb

    PayPal

    I would like to know that how can i integrate PayPal / Authorize.net in my project. My Project containts Credit Card Information.
×
×
  • Create New...