619 Posted Topics
Re: You can use Ajax. Once page is loaded at user side and then you want any php operation without page load you can use ajax. Below is sample code. You need to include jQuery file to run it. By default show only one pic. When user click on button call … | |
Re: Make sure you have proper src to show image in browser. Your src can be relative or absolute. 1) http://localhost/nseries/A2-1C1-1B.png OR 2) nseries/A2-1C1-1B.png (considering php page running this code is placed beside nseries folder.) | |
Re: I think you should add `$_SESSION['timeout'] = time(); ` inside ` if(isset($_SESSION['timeout'])) { `condition. Once your session expires and you are redirected back to index.php again you will have $_SESSION['timeout'] set with time(); So you can redirect back anywhere. | |
Re: post your code.nobody can assist you without looking in your code. | |
Re: Learn from this link and then post if you have issue. [http://remysharp.com/2007/01/20/auto-populating-select-boxes-using-jquery-ajax/](http://remysharp.com/2007/01/20/auto-populating-select-boxes-using-jquery-ajax/) | |
Re: You can also have one single ajax function and pass both user and sex parameter on ajax request. [CODE] <html> <head> <script type="text/javascript"> function showUser() { var users = document.getElementById('users').value; var sex = document.getElementById('sex').value; if (users=="" && sex=="") { document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, … | |
Re: What do you mean by **corrupt**?? Are you uploading image file, how do you know file is corrupted? Also check both file's size. | |
Re: http://php-login-script.com/ http://www.webdesign.org/web-programming/php/register-login-script.8721.html | |
Re: Make sure you don't sent anything on browser before you use session_start. Is there any blank space before code start? | |
Re: Are you displaying this category values from database? **If yes,** then when numeric values are posted after form submission, you need to fetch value of category from database using posted numeric id. **If no,** you can directly use text as a value. > Making the value equal to the text … | |
Re: what is error line number? Also for testing remove all comments once and then try. | |
Re: Yes. You need to create new .htaccess file and place it at root of your project. There are many sites which can create code for htaccess. Personally i like this site: [http://www.generateit.net/mod-rewrite/](http://www.generateit.net/mod-rewrite/) | |
Re: On login page you need to check session. If it is set then you need to redirect user to home page as shown below. if(!isset($_SESSION['Memberid'])){ header("Location: home.php"); } Also make sure session_start() should be in top of page.You can add session_start() in database_connection.php file. | |
Re: I am not sure if you can access via this. But can you have access of image storage of other machine? If yes you can save image in wamp folder. | |
Re: Replace <<div class="textrightblog"> With <div class="textrightblog"> | |
Re: You can use below function for filtering data before inserting in database. function filter($data) { $data = trim(htmlentities(strip_tags($data))); if (get_magic_quotes_gpc()) $data = stripslashes($data); $data = mysql_real_escape_string($data); return $data; } $filename = filter($filename); | |
Re: Use session_start on top of page. There should be no other HTML codes, html comments or any white space. | |
Re: post your code. | |
Hi Friends, I want to develop a website like file manager. Where user register and will get fix disk space lets say 20MB. Now user can upload their pdf, doc, txt, jpeg etc files upto their disk limit. I can develop upto this using PHP. Now my issue is if … | |
Re: You have to use . (dot) for concatenation and not +. So this: echo ('result es ' + $result); Should be echo ('result es '. $result); | |
Re: Wherever you are using `$_GET'tm'] ` use ` isset($_GET['tm']) `before it as shown below `if(isset($_GET['tm']) && $_GET['tm']...something..)` | |
Re: You want to redirect to xml page, what is goback.php? If you want to redirect to xml file i.e. myfile.xml then, `header("location:myfile.xml");` | |
Re: You mean your search is working fine, but you just need to arrange search result list.. Is it right?? | |
Re: What is datatype of *image* field in mysql table? | |
Re: id is missing in query. ` $query = "SELECT id, type, name, location, landmark FROM table1";` It seems strings are not concatinated properly. Try this: <? $output = ""; while($arr = mysql_fetch_array($result, MYSQL_ASSOC)) { $output.='<li> <a><a href="posts.php?ID='.$arr['id'].'&type='.$arr['type'].'&name='.$arr['name'].'">'.$arr['name'].' '.$arr['location'].'</a> <br /><p>Name: '.$arr['name'].'</p> <br /><p>Type: '.$arr['type'].'</p> <br /><p>Location: '.$arr['location'].'</p> </li>'; } echo … | |
Re: <? $mtn = array('08034', '08035', '08036','08037'); $rand_key = array_rand($mtn,1); echo $mtn[$rand_key]; ?> | |
Re: You have blank space in host name. Also add `$mail->SMTPDebug = 2; ` in your code for debugging. $mail->SMTPDebug = 2; // enables SMTP debug information (for testing) // 1 = errors and messages // 2 = messages only $mail->SMTPAuth = true; // enable SMTP authentication $mail->SMTPSecure = "ssl"; // … | |
Re: Are you checking in local system? You won't receive email without SMTP. Once you upload this to LIVE you will get emails. ![]() | |
Re: Which PHPMailer version you are using?? It seems old. Try to download latest package from [http://phpmailer.worxware.com/](http://phpmailer.worxware.com/) | |
Re: You can not use session during forget password. Also you can only use email for checking: <? $email = $_POST['email']; $queryget = mysql_query("SELECT username FROM user WHERE email = '$email'") or die("query didnt work"); $num_rows = mysql_num_rows($queryget); if($num_rows > 0) { $row = mysql_fetch_assoc($queryget); $username = $row['username']; // Send email … |
The End.