545 Posted Topics

Member Avatar for pascal.petitlionceau

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)

Member Avatar for IIM
0
96
Member Avatar for Farhad.idrees

Check this :- http://stackoverflow.com/questions/643879/css-to-make-html-page-footer-stay-at-bottom-of-the-page-with-a-minimum-height

Member Avatar for JorgeM
0
142
Member Avatar for wuzere.crewzz

To get sum along with year use following query. $query = "SELECT DISTINCT ( `year`), SUM(quanitity) FROM `tablename` GROUP BY `year`";

Member Avatar for IIM
0
169
Member Avatar for angel06

@angel-do as @James has explained. Either initialize variable tryAgain or add else statement for two if with the values of "tryAgain" in them.

Member Avatar for IIM
0
167
Member Avatar for sofien.fkih
Member Avatar for izzywizzy

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

Member Avatar for IIM
0
186
Member Avatar for dinhunzvi

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]; …

Member Avatar for broj1
0
1K
Member Avatar for peymankop

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 …

Member Avatar for IIM
0
98
Member Avatar for matildacheng

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 …

Member Avatar for matildacheng
0
573
Member Avatar for vssp

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)

Member Avatar for IIM
0
544
Member Avatar for Samyx

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 …

Member Avatar for IIM
0
645
Member Avatar for lewashby

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/)

Member Avatar for domainflipper
0
100
Member Avatar for vivekreddypassya

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.

Member Avatar for JorgeM
0
94
Member Avatar for Aditya_4
Re: java

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 …

Member Avatar for IIM
0
268
Member Avatar for newbie1234

It is called URL rewriting using Apache server htaccess configuration.

Member Avatar for IIM
0
159
Member Avatar for Khav

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 …

Member Avatar for Khav
0
671
Member Avatar for warpstar

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...

Member Avatar for warpstar
0
146
Member Avatar for eoop.org

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)

Member Avatar for tyson567
0
209
Member Avatar for azareth

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.

Member Avatar for TrustyTony
0
280
Member Avatar for pinky khan

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

Member Avatar for Sadun89
0
268
Member Avatar for tymaut

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.

Member Avatar for IIM
0
321
Member Avatar for anand01

As per my experience with Spring and Structs,it will be better you go for Spring.

Member Avatar for anand01
0
112
Member Avatar for arifsuhail1

> 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)

Member Avatar for IIM
0
2K
Member Avatar for Octet

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.

Member Avatar for nielsep
0
227
Member Avatar for Shougat

There is no error in ur code... Check if the table is returning any value or not(any data correspnding to ur query).....

Member Avatar for broj1
0
462
Member Avatar for johndohmen1963
Member Avatar for Andy90

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.

Member Avatar for Andy90
0
161
Member Avatar for ak47carbon

> 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 …

Member Avatar for vibhaJ
0
225
Member Avatar for Xephis

> 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 …

Member Avatar for Xephis
0
169
Member Avatar for IIM

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 …

Member Avatar for IIM
0
92
Member Avatar for JGlen

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)

Member Avatar for JGlen
0
252
Member Avatar for koricha

> 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 …

Member Avatar for IIM
0
2K
Member Avatar for Mko_
Member Avatar for fobos
0
132
Member Avatar for wolwayne

Wow you gave your server database username and password.Just replace it with "*" otherwise someone can hijack ur server.

Member Avatar for IIM
0
419
Member Avatar for William Ng

> 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.

Member Avatar for IIM
0
313
Member Avatar for <HHH>

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 …

Member Avatar for joankim
0
351
Member Avatar for shafeequeom
Member Avatar for ashiiiish

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'); …

Member Avatar for IIM
0
216
Member Avatar for heshanm

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 …

Member Avatar for IIM
0
254
Member Avatar for bflack

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

Member Avatar for scaiferw
0
131
Member Avatar for leechang.kevin

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 …

Member Avatar for IIM
0
119
Member Avatar for trektrak

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]

Member Avatar for trektrak
0
145
Member Avatar for gikonyo

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....

Member Avatar for gikonyo
0
323
Member Avatar for IIM

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 …

Member Avatar for peter_budo
0
94
Member Avatar for gotboots

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 …

Member Avatar for gotboots
0
188
Member Avatar for cliffcc

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

Member Avatar for cliffcc
0
399
Member Avatar for heshanm

[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.

Member Avatar for Anuradha Mandal
0
166
Member Avatar for mamdouh ramadan

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...

Member Avatar for mamdouh ramadan
0
113
Member Avatar for mrhankey

You can use this:- [CODE] header("location:members_Detail.php?MemberID='"+$row_WADAmembers['MemberID']+"') [/CODE]

Member Avatar for Rhamises
0
137
Member Avatar for Daniel Liwonde

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.

Member Avatar for IIM
0
196

The End.