545 Posted Topics

Member Avatar for IIM

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)

Member Avatar for pritaeas
0
571
Member Avatar for ngonix

hidden fields are not actually hidden.you can see its value in source code.better store it in session variables.

Member Avatar for ngonix
0
323
Member Avatar for davy_yg

this might help http://www.codeproject.com/Articles/28666/Thumbnail-images-in-PHP

Member Avatar for davy_yg
0
219
Member Avatar for riahc3

you can also use session as session is easy to maintain. http://php.net/manual/en/function.session-start.php

Member Avatar for pritaeas
0
17K
Member Avatar for l.worboyz

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

Member Avatar for l.worboyz
0
267
Member Avatar for IIM

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 …

Member Avatar for IIM
0
489
Member Avatar for rsewak

End result of both bear are same. Hugging to death bear or poisoning to death beer.

Member Avatar for TonyG_cyprus
0
740
Member Avatar for officallysabbir

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 …

Member Avatar for JamesCherrill
0
480
Member Avatar for Shodow

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()+.... }

Member Avatar for Shodow
0
188
Member Avatar for George_91

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

Member Avatar for Webville312
1
23K
Member Avatar for dados

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 …

Member Avatar for IIM
0
897
Member Avatar for Shodow

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

Member Avatar for Shodow
0
2K
Member Avatar for janskey15
Member Avatar for janskey15
0
120
Member Avatar for ggeoff

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

Member Avatar for ggeoff
0
468
Member Avatar for blackrainbowhu

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

Member Avatar for blackrainbowhu
0
216
Member Avatar for ziyaddinsadigov

You can use insertAfter() Jquery method $("<div>Hello world!</div>").insertAfter("p");

Member Avatar for ziyaddinsadigov
0
310
Member Avatar for mjsmitten

what exactly do you want to manipulate?Please be more descriptive so that we can help.

Member Avatar for mjsmitten
0
141
Member Avatar for davy_yg

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

Member Avatar for IIM
0
162
Member Avatar for davy_yg

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.

Member Avatar for broj1
0
177
Member Avatar for spluskhan

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

Member Avatar for spluskhan
0
346
Member Avatar for davy_yg

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

Member Avatar for davy_yg
0
192
Member Avatar for davy_yg

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

Member Avatar for IIM
0
174
Member Avatar for yunniesshi

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.

Member Avatar for IIM
0
2K
Member Avatar for l.worboyz

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

Member Avatar for valdez25
0
308
Member Avatar for spherecraft

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 …

Member Avatar for IIM
0
412
Member Avatar for AARTI SHRIVAS

refer http://docs.joomla.org/Creating_a_basic_Joomla!_template to learn how to create basic template using zoomla

Member Avatar for IIM
0
201
Member Avatar for <M/>

I regret for not donating money to needy person because not able to differentiate the mask between the needy and greedy one.

Member Avatar for <M/>
0
432
Member Avatar for Reliable

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

Member Avatar for Reliable
0
236
Member Avatar for tux4life

This bug is already logged in this thread,refer http://www.daniweb.com/community-center/daniweb-community-feedback/threads/449157/votingactivity-bug

Member Avatar for stultuske
0
239
Member Avatar for asaidi

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 …

Member Avatar for asaidi
0
7K
Member Avatar for pol.bala

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

Member Avatar for Webville312
0
748
Member Avatar for thrillride01

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.

Member Avatar for pritaeas
0
271
Member Avatar for Fiorentino01^

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

Member Avatar for Fiorentino01^
0
378
Member Avatar for aj.jaswanth

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 …

Member Avatar for IIM
0
229
Member Avatar for ebc3142

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

Member Avatar for AleMonteiro
0
240
Member Avatar for t1suka

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 …

Member Avatar for IIM
0
163
Member Avatar for shibu2all

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.

Member Avatar for stultuske
0
154
Member Avatar for soapyillusion

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

Member Avatar for IIM
0
205
Member Avatar for icehiro

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";

Member Avatar for IIM
0
145
Member Avatar for luis.torrente.10
Member Avatar for uknown2

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.

Member Avatar for JamesCherrill
0
177
Member Avatar for NardCake

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.

Member Avatar for pixelsoul
0
102
Member Avatar for thuogt

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.

Member Avatar for pixelsoul
0
288
Member Avatar for pwolf

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 …

Member Avatar for ddanbe
0
346
Member Avatar for RawrInYoMouth

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.

Member Avatar for IIM
0
186
Member Avatar for kamil.metkowski

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 …

Member Avatar for EvolutionFallen
0
614
Member Avatar for IIM

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** ![daniAd2](/attachments/large/3/daniAd2.png "daniAd2") ![daniAdMozilla1](/attachments/large/3/daniAdMozilla1.png "daniAdMozilla1") Also there …

Member Avatar for IIM
0
454
Member Avatar for jLamp

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.

Member Avatar for pritaeas
0
103
Member Avatar for bLuEmEzzy

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

Member Avatar for Webville312
0
273
Member Avatar for HibaPro

U can add it to windows task scheduler . Write a batch file to export sql server database and add it to windows task scheduler.

Member Avatar for cyberdaemon
-1
137

The End.