545 Posted Topics
On a post,my suggestion was upvoted with comments.But there is no change in reputation point.Is this a bug? [Click Here](http://www.daniweb.com/software-development/java/threads/448687/randon-number#post1939212) | |
Re: hidden fields are not actually hidden.you can see its value in source code.better store it in session variables. | |
Re: this might help http://www.codeproject.com/Articles/28666/Thumbnail-images-in-PHP | |
Re: you can also use session as session is easy to maintain. http://php.net/manual/en/function.session-start.php | |
Re: please show your code.Its will be much clear if you show code and then ask the question so that we can guide you in correct way and also we can know what exactly is the scope,life of that variable you are calling | |
There is another bug with activity point,Upvote,downvote. Whenever any person votes and then undo vote ,it is treated as vote (shows in upvote and downvote of that person) with vote count corrected(i.e.,if it was 0 and person downvoted and then undo downvoted then net vote recied for a post is … | |
Re: End result of both bear are same. Hugging to death bear or poisoning to death beer. | |
Re: yes james is correct. You have to pass instance of Customer class as a paramter.Most likely **Customer class is a DTO(data transfer objects) class** that just contains mainly setter and getter methods.So before calling,first do the required validation for instance of Customer class,if required to set any value,then set it … | |
Re: simply make one javascript method.return the value after each methods above and then add it. For eg:- function CorkageCALC(){ newValue = parseInt(document.formcheck.Corkage.value) * 6500; document.formcheck.CorkageTOTAL.value = newValue; return newValue; } then make a method and add all function SumOfAllValue(){ document.formcheck.SumOfAllValue.value = CorkageCALC()+EventLCALC()+.... } | |
Re: Here you have to first check if session variable is set or not,if yes then check if it is not empty string. If it contains proper value,Perform required task else redirect to error page. Refer [session_start](http://php.net/manual/en/function.session-start.php) and [header](http://php.net/manual/en/function.header.php) <?php session_start(); //start session. ?> <!-- HTML 5 --> <!DOCTYPE html> <html> … | |
Re: I think so error might be because of variable mismatch.Change **url** to **myUrl** <script type="text/javascript"> // URL to open var myUrl = ''; // set URL depending on screen size if (screen.width <= 800) { myUrl = 'mySmallResolutionPage.php';//change url to myUrl } else { myUrl = 'myBigResolutionPage.php';//change url to myUrl … | |
Re: Pass value of radio in the method onChange="MenuChange(this.value)" and then just assign value document.formcheck.Price.value to the passed value. or if you want to get the value you can use like this. alert(document.formcheck.elements['Menu'].value); | |
Re: use css overflow attribute on the container containing the data. overflow:auto// scroll will be visible only if content is greater than fixed page size. or overflow:scroll//will make scroll visible everytime whether text is long or not to make scroll visible | |
Re: while(choice != 1 && choice != 2 && choice != 3); It means repeat above until the value is apart from 1,2 or 3(until the statement is true). | |
![]() | Re: You can use insertAfter() Jquery method $("<div>Hello world!</div>").insertAfter("p"); ![]() |
Re: what exactly do you want to manipulate?Please be more descriptive so that we can help. | |
Re: > The chances are it shall be local host no it won't be localhost for most cases.But if you are able to connect then it will be that only. Check with your hostprovider.They might have send you mail regarding the mysql server connection details. If not then send a mail … | |
Re: are you sure page url is this http://localhost/RustoleumCustomCMS/administrator/input_berita_static.php?id=5 because seeing from url,you must use $_GET['id'] After line 10 echo the value and check. | |
Re: Instead of > $data = mysql_query("SELECT * FROM Products") Use $data = mysql_query("SELECT * FROM Products where name LIKE '%$_GET['query']%'") Here $_GET['query'] is the value passed from the form and on the basis of value passed ,it will search. So it will search in table Products containing **$_GET['query']**. Read [this](http://dev.mysql.com/doc/refman/5.0/en/string-comparison-functions.html) … | |
Re: There are some points which i have asked below. <?php session_start(); if(!isset($_SESSION['username'])) { session_destroy(); header("location:index.php"); } ?> Instead of this why don't you just try | |
Re: You are using somewhere **$_GET['id']** and somewhere** $_POST['id']**. so if (!empty($_GET['id']))//line 15 is always false.So change $_GET to $_POST | |
Re: Get count in seconds as it was earlier. timer = new Timer(1000, tc); then divide it by 60 and show then display remainer as in seconds and quotient as minutes. | |
Re: * boolean removeCounter (int thisPeg) * boolean removeCounter (int thisPeg) * int getNumCounters(int thisPeg) All the three methods must return boolean,boolean and int value respectively.But in first two cases,you are returning value only for else condition and not for if condition.Add return type for if condition.Something like this line 36-38 … | |
Re: There are many ways of doing this.Once you submit a form with GET method then use one of these methods:- * Split the URL by searching for "?" and then take 2nd element of array and then split it by "&".Now you have query parameters.Now split the resultant data by … | |
Re: refer http://docs.joomla.org/Creating_a_basic_Joomla!_template to learn how to create basic template using zoomla | |
Re: I regret for not donating money to needy person because not able to differentiate the mask between the needy and greedy one. | |
Re: > > When you used the include function in PHP you have to used php file not html Are you sure? It is not mandatory to have php extension.You can include html page > When a file is included, parsing drops out of PHP mode and into HTML mode at … | |
Re: This bug is already logged in this thread,refer http://www.daniweb.com/community-center/daniweb-community-feedback/threads/449157/votingactivity-bug | |
Re: Apart from using session you can pass it by serializing or by imploding and passing it to another page. * Either serialize: <?php $postvalue=array("a","b","c"); ?> <input type="hidden" name="result" value="<?php echo serialize($postvalue); ?>"> There are several ways.Apart from on receive: unserialize($_POST['result']) * or implode: <?php $postvalue=array("a","b","c"); ?> <input type="hidden" name="result" value="<?php … | |
Re: See first of all your server must have SMTP support otherwise you can't send mail. First checks that.If it supports SMTP then check mail method of php. [Click Here](http://www.php.net/manual/en/function.mail.php). Syntax is : bool mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] … | |
Re: For php you must only refer [php manual.](http://php.net/manual/en/)Complete guidance of PHP. As for pre-requisite for learing php,you must have understanding on HTML,database,Javascript which are used quite often. | |
Re: @Fiorentino01^ :- As per the error i can see,i think so you have installed wampserver and then installed mySQL.This is creating problem as wamp server has mySQL service in it's installation process.So if you install MySQL seperately,then **the problem is due to wrong credential**. Check which service is activated.You might … | |
Re: deception is 100% correct.But as per my experience if you want to work with system level programming then the best programming language will be C,C++(apart from assembly language). There are many languages which are gaining popularity in terms of increase in there usability like PHP which was earlier meant as … | |
Re: Use **assets.Quantity * stock_names.value as Price** .IN SELECT QUERY.you can use simple arithmetic operators on two number. SELECT DISTINCT assets.SEDOL,assets.Quantity,stock_names.value,stock_names.Fileid,date_header.dateid ,assets.Quantity*stock_names.value as Price FROM assets,stock_names,date_header WHERE assets.Client_ref = '$clientref' AND stock_names.SEDOL = assets.SEDOL AND date_header.fileid = stock_names.fileid | |
Re: the problem is because of wild card character that you have used. ~^[0-9]*?\|[0-9]*?\|.*?\|.*?\..*?\|2\|[0-9]\|.*?$~m here .* is a wild card which allows as many characters. And it is returning true because |2| is there in test string.Remove that and you can see it will return false. Be careful before using wild … | |
Re: You must download javax.mail-1.3.3.01.jar and take a look at [Tranport](http://docs.oracle.com/javaee/6/api/javax/mail/Transport.html) class. | |
Re: @pixelsoul;i think he is refering to change one drop down vaue on the basis of another drop down value. @soapyillusion:- yes it is possible by doing ajax call. Onchange event of first drop down make an ajax call to php page with selected value(using document.getElementById('id').value) and then in that php … | |
Re: instead of using if-else,it will be better to use conditional ternary operator. $item_avai=(isset($_POST['item_avai']) && $_POST['item_avai'] == 1)?"on":"off"; | |
| |
Re: refer [oracle](http://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html) site to understand Arrays. And open src folder in your jdk installatiion path.Copy it into another location and try to understand java.lang package.It will clear most of your doubts. | |
Re: have you included css in this page like other pages. If yes,then check if you have applid css property according to particular id or class. If not then show your css for this. | |
Re: I think so somewhere you are using something like this:- $_SESSION['user_id'] = $_POST['user_id']; As per what i am seeing as i have checked the program and it is working fine. It is showing correct value.$_SESSION['user_id'] = 1 as we have initialised. So problem might be in your view.php. | |
Re: Check this [thread](http://www.daniweb.com/software-development/csharp/threads/49952/how-to-define-global-variable-in-c). static class GlobalClass { private [U]static[/U] string m_globalVar = ""; public static string GlobalVar { get { return m_globalVar; } set { m_globalVar = value; } } } It states Add a new class.cs file to the project and add static class and static variable. Then to … | |
Re: No your random variable is giving correct value.The error is because of line 24 counter=-personleaving;//you are makin the value negative here by taking negative of personleaving I think so you want to subtract personleaving from counter.It should be:- counter-=personleaving; //subtract personleaving from counter. | |
Re: 2rotten69:- A database call is always costlier than a file system.When you store image in file system and just store location of image in DB as whenever you are storing file it will be encoded in binary format(BLOB ->Binary Large Object) and when you retrieve it ,it will be again … | |
There is a browser issue with this fixed footer.Look in both images.The IE one doesn't contain **AD:web based bug tracking - adminTrack.com** .when user is not logged in. **LOG: FB.getLoginStatus() called before calling FB.init().** // is also shown in chrome and mozilla **Object required:http://b.voicefive.com/c2/10378794/rs.js**   Also there … | |
Re: Read http://www.daniweb.com/web-development/php/threads/435023/read-this-before-posting-a-question .It contains quite a few terms used in php and also link to how to overcome that. | |
Re: The server cannot send any more http headers if the HTTP Content has started sending. In PHP code, this means you have ouput something to the page with echo or print etc. PHP will not output any whitespace in between php tags, However, for anything outside php tags, (eg: html) … | |
Re: U can add it to windows task scheduler . Write a batch file to export sql server database and add it to windows task scheduler. |
The End.