545 Posted Topics
Re: You mean you want to want to prepare a masterpage that will be your template. A common menu can be prepared by making a php page and including that menu page in each page. CLick here to [include](http://www.google.co.in/url?sa=t&rct=j&q=include%20php&source=web&cd=1&cad=rja&ved=0CDEQFjAA&url=http%3A%2F%2Fphp.net%2Fmanual%2Fen%2Ffunction.include.php&ei=TzYmUZmsFI3PrQfErYGwCQ&usg=AFQjCNEMAcBEcg6yZpDGUVfK8YVryOJC8g&bvm=bv.42661473,d.bmk) | |
Re: Check this :- http://stackoverflow.com/questions/643879/css-to-make-html-page-footer-stay-at-bottom-of-the-page-with-a-minimum-height | |
Re: To get sum along with year use following query. $query = "SELECT DISTINCT ( `year`), SUM(quanitity) FROM `tablename` GROUP BY `year`"; | |
Re: @angel-do as @James has explained. Either initialize variable tryAgain or add else statement for two if with the values of "tryAgain" in them. | |
| |
Re: You can insert more than 6 values.Can you please tell the table structure and error that you are getting on inserting more than 6 values | |
Re: A little modification in boj1 post. As there may be a case when user has given only first name . if(nameAndLastnameArray.length > 1) { // insert name into appropriate box document.getElementById("displayDiv1").value=nameAndLastnameArray[0]; // insert lastame into appropriate box document.getElementById("displayDiv2").value=nameAndLastnameArray[1]; } elseif(nameAndLastnameArray.length == 1) { // insert empty string into boxes document.getElementById("displayDiv1").value=nameAndLastnameArray[0]; … | |
Re: for(int i=1;i<=number;i++) { i=1/i;// error is here //you are using i variable to increment and again assinging value to the same variable sum=sum+i; } The line marked as error line is shown above. Here you are reassigning variable i value. So first time when it comes in loop, value of … | |
Re: This problem is not because of extension. As discussed above use "Inspect element" of google chrome to see problem. Also you can use debug mode of IE i.e.,by opening it in IE and press "F12" and then you can see if there is any javascript error.Select Script tag there and … | |
Re: Make change in this in php.ini sendmail_path = "/usr/sbin/sendmail -t -i -f fromMe@blah.com" Or you can set $mail_ini=ini_set("sendmail_path","/usr/sbin/sendmail -t -i -f fromMe@blah.com"); Hopefully this will solve your issue. For more info visit [php.net](http://de3.php.net/manual/en/mail.configuration.php#ini.sendmail-path) | |
Re: See as for what i can see...you are doing it in a wrong way. First of all if you want date range than latter date must be greater than start date.So for that you must do ajax call and depending on your selected value in start date,it must display end … | |
Re: The best way to understand the css or html code for a site is to use chrome inpect element or "firebug" of mozilla and check "CSS" ,HTML n script for it To view example of liquid layout,click [here](http://www.dynamicdrive.com/style/layouts/category/C13/) | |
Re: it is the issue wid ur display.Just get it changed otherwise after somedays the screen will stop displaying anything .The same issue i have experienced some 4-5 yrs back. | |
Re: package com.file.create; import java.io.File; public class displaymain { public static void main(String[] args) { display d = new display(); d.list("D:/");// error System.out.println("No. of directories = "+d.directory); System.out.println("No. of files = "+d.file); } } class display { int file=0, directory=0; void list(String path) { File root = new File(path); File[] f1 … | |
Re: It is called URL rewriting using Apache server htaccess configuration. | |
Re: you can use explode function and take a particular charatcer,symbol or word as delimiter and then based on that get array of URL's.... Then use for each loop of php and use the file_get_contents() to get the file from remote. Hope it will suffice ur requirement. For info about explode … | |
Re: SKy is right,next is not a method or operator,it is just a member variable.Can you provide the complete code so as more information can be provided on it's working... | |
Re: if (mysql_result(mysql_query("SELECT COUNT (`user_id`) FROM `users` WHERE `email` = '$email' AND `email_code` = '$email_code' AND `active` = 0"), 0)==1) { Error in this line.... mysql_result reference read this.....[Click Here](http://php.net/manual/en/function.mysql-result.php) Return type is String and u are compairing it with 1..... Instead of this use....."mysql_num_rows" For Reference read[ this](http://www.php.net/manual/en/function.mysql-num-rows.php) | |
Re: the problem is not only on 9 numeric.Problem is also if you give any number such as "9:08".Check if you are doing correct calculation.Will look into your logic once my work is done. | |
Re: 1) See the startup programs...Close all the startup programs.. Type msconfig ...go to Start Up tab and there close all the unwanted services... 2) Imcrease ur RAM | |
Re: In that case you have to use AJAX call to a php page and then in that PHP page u can do whatever u want to do i.e.,either storing result or any calcualtion. | |
Re: As per my experience with Spring and Structs,it will be better you go for Spring. | |
Re: > mysql_selected_db() Actually "mysql_selected_db()" method doesn't exist.It must be **"mysql_select_db()"**. Replace it with mysql_selected_db(). For more details,Click [here](http://php.net/manual/en/function.mysql-select-db.php) | |
Re: 1)You can use captcha to stop bots from posting data into your thread..... 2)Use session for session if user is registered and once user post it,just set a session value to "some value" and before posting check the value of this session variable. | |
Re: There is no error in ur code... Check if the table is returning any value or not(any data correspnding to ur query)..... | |
Re: Can you please mark thread as solved if it is solved | |
Re: For that you have to establish http connection with a site and when you send a request to that site it will return response and by reading the response header you can get the http header of any site you want. | |
Re: > s been awarded a prestigious Mark Weiser Award for the best paper at IEEE International Conference on Pervasive Computing and Communications (PerCom) 2012. The annual award is named after Dr. Mark D. Weiser, the father of Ubiquitous computing, and is recognised as one of the highest honours in this … | |
Re: > Basically the table displays the name, the score you gave them, and their average score. Here is my code below (example, names modified. Just the average of a single player done to test it shows the average) and any assistance would be appreciated. can you elaborate what result/error you … | |
Anyone have idea about how can we use webcam to take pictures in java. Is there any specific port or something to enable webcam? Wondering how to do this. I don't want to use API like JMF or something.I just want to know how can we establish connection and get … | |
Re: Check this thread...it contains one easy pagination by tmato.pgn. Click [here](http://www.daniweb.com/web-development/php/code/351142/simple-but-powerful-paging-function) | |
Re: > if(request.getParameter("number")==isum) Problem is in this line(line 20) Replace it by this if(request.getParameter("number")!=null && Integer.parseInt(request.getParameter("number"))==isum) Also make the following change in the body tag <body> <input type="button" value="go" onclick="doTheGObutton();"> <form action="index.jsp" method="post"> <%=fib1%> + <%=fib2%> = <input type="text" name="number"> <input type="submit" value="continue" name="submit"> </form> </body> This is required as the … | |
Re: Use method of "POST" type and mark the thread as solved if ur problem is solved. | |
Re: Wow you gave your server database username and password.Just replace it with "*" otherwise someone can hijack ur server. | |
Re: > cmbProgram.SelectedValue.ToString is the return type of above method contains numeric values?if yes then syntax is correct,otherwise you have to check for the condition that if it is numeric then call Integer.parse() else return error. | |
Re: import java.io.BufferedReader; import java.io.FileReader; import java.io.FileWriter; import java.util.StringTokenizer; public class ParseCSVFileExample { public static void main(String[] args) { try { //csv file containing data String strFile = "C:/FileIO/example.csv"; //create BufferedReader to read csv file BufferedReader br = new BufferedReader( new FileReader(strFile)); String strLine = ""; StringTokenizer st = null; int … ![]() | |
Re: click on this to google http://en.lmgtfy.com/?q=image+upload+in+php | |
Re: Print the session variable and see,i think so $username is empty,that's why it is behaving like this. Do one thing:- echo $username; and after setting into session,i.e., $_SESSION['username'] = $username; echo $_SESSION['username']; If this is also showing correct ,then the probleem is this:- <?php **session_start();** if (!isset($_SESSION['username'])) { header('Location: index.html'); … | |
Re: Check for unique constraint in your database and do as per vibha's post.... As per the error is concerned you are entering data into database even if the same admission_no is present which should be avoided as it is a unique field. So,if record is already(That can be calculated if … | |
Re: yes broj1...you are right...the problem is because of variable value....because of using same variable name $column..... Just change this:- [CODE] if($column=mysql_fetch_assoc($result)) [/CODE] to [CODE] if($row=mysql_fetch_assoc($result)) [/CODE] and [CODE] $value=$column[$column]; [/CODE] to [CODE] $value=$row[$column]; [/CODE] as directed by broj1 | |
Re: yes you can show database value in textbox....First take a look at this example.... To show value from database into database do the following:- [CODE] <?php <html> <head><title>Textbox manipulation</title> </head> <?php $con = mysql_connect("localhost","root","password") or die('Could not connect: ' . mysql_error()); mysql_select_db("db_name", $con); $result = mysql_query("SELECT * FROM Persons"); while($row … | |
Re: Use pattern matching for it....Use can see how to do this from the examples in [URL="http://php.net/manual/en/function.preg-match.php"]this[/URL] link [CODE] <?php preg_match('/^\d+$/', $price[1]); ?> [/CODE] | |
Re: I think so you are expecting something like this:- URL:-"HTTP://www.daniweb.com?thread=34" So to read this URL you have touse it in this way:- [CODE]<? echo $_GET['thread']?>[/CODE] Hope this is clear.... | |
Can anyone tell me how can we perform code analyze using PMD or Checkstyle during develop time.... I want to know it so as instead of checking at the last for bugs,i can correct them as soon as i find it. I searched in google and there i found a … | |
Re: Just run the query in phpmyadin and check whether it is working or not:- and enter the values inplace of variables.. And if it is working ,then just echo the value of $personID because i can't see it any where ,where any value is assigned to it..... You have not … | |
Re: Visit [URL="http://www.w3schools.com/php/func_string_implode.asp"]http://www.w3schools.com/php/func_string_implode.asp[/URL] or [URL="http://php.net/manual/en/function.implode.php"]http://php.net/manual/en/function.implode.php[/URL] to learn more about implode and it's working | |
Re: [CODE]$query ="SELECT ad.nic,ad.full_name,ad.phone_number,ad.address,ad.gender,ad.date_of_birth,a.name_with_initials,a.account_type,a.fd_period FROM account_details ad,account a WHERE ad.account_number=a.account_number";[/CODE] In this code i have made alias of table account_details as "ad" and for account as "a". And your error was that you have to write the name of fields along with table from which they are coming. | |
Re: Might be you are not handling the SESSIONS properly or you are not authenticating user in the correct way.... We can only help if you showup your code... | |
Re: You can use this:- [CODE] header("location:members_Detail.php?MemberID='"+$row_WADAmembers['MemberID']+"') [/CODE] | |
Re: Check [URL="http://www.timlinden.com/blog/website-development/php-cron-jobs-with-cpanel/"]this[/URL]..It might help you.... [URL="http://net.tutsplus.com/tutorials/php/managing-cron-jobs-with-php-2/"]This[/URL] might be another alternative for cron job. |
The End.