Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
91% Quality Score
Upvotes Received
33
Posts with Upvotes
31
Upvoting Members
26
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
4 Commented Posts
2 Endorsements
Ranked #630
Ranked #435
~66.3K People Reached
About Me

Software Engineer99X Technology www.99XTechnology.com Sri Lanka

Interests
Music & Movies
PC Specs
Ubuntu
Favorite Tags
Member Avatar for niranga

Hi All, I have a PHP code which do some changes to the POST variables it receives and redirect the page to some other page. This PHP code was initially designed to work without Ajax. So there wasn't any problem with the redirect function and it perfectly handles the POSt …

Member Avatar for Mukul_2
0
13K
Member Avatar for Raakesh399
Member Avatar for sirlink99

Hello Everyone, I am experiencing errors when trying to compile a project in Java 8. The errors are caused by swing components. The code I am using is the following: import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; public class Main2 { public Main2(){ JFrame f = new JFrame (); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setSize(100, …

Member Avatar for JamesCherrill
0
1K
Member Avatar for erickajan.cajucom

<?php include ("connect.php"); $_SESSION['username']="kai"; $username=$_SESSION['username']; echo "Welcome,".$username."!<p>"; $query= mysql_query("Select * from avatar where name = 'username'"); if(mysql_num_rows($query)==0) die("User not found"); else { $row = mysql_fetch_assoc($query); $location = $row['imagelocation']; echo "<img src='$location' width='200' height ='200'>.</p>"; } ?> <p/> Upload New Avatar <form method="post" enctype='multipart/form-data' action='view.php'> File: <input type='file' name='myfile'> <input type='submit' …

Member Avatar for niranga
0
210
Member Avatar for AliGulSoomro1
Member Avatar for Reverend Jim
0
142
Member Avatar for Mike_H

I am trying to update the field id_key which is an unique value using uniqid() function. When I print to the screen the value for uniqid() [$id] is different for each record. Which is correct and is what I want. However when I go inspect the table all the values …

Member Avatar for Mike_H
0
192
Member Avatar for bolfescu

Hy how can insert in this echo function, return confirm ? echo "<input type='submit' name='submit' id='submit' class='btn btn-primary' value=Cancella onclick=window.location='delete_article.php?id=".$row['id']."'; /></p>"; i've already have onclick....

Member Avatar for mattster
0
782
Member Avatar for DawnofanewEra

Hello, I've been trying to read txt from a file, and breaking each line into words and storing them in Array. Example. txt file C001 John Smith 999999 C002 Mary Agnes 888888 Here is my code. public class Customer implements iCommand{ static List<Customer> cust = new ArrayList<Customer>(); static private String …

Member Avatar for niranga
0
2K
Member Avatar for SharkBait

New to VB.NET :( I have a MDI form that has a menu item that can change the environment the application is running in (e.g. Prod, Test, Dev, etc.). The environment name and folder are written to the statusbar on the MDI from. There are several other forms in the …

Member Avatar for niranga
0
286
Member Avatar for Amit_21

Hi, I am larning php and have got a simple task to be completed. But my brain is not working in coding the below requirement. This is the requirement. Create a form that contains: 1. Name, textbox 2. Submit button If the user inputs the Name textbox and clicks the …

Member Avatar for niranga
0
109
Member Avatar for iceparticle.com

Hello, can anyone clarifies this? I need to find consecutive segments that are odd or even. For example 2 6 5 = 2 and 6 = **2** consecutive even integers | 1 odd 4 6 8 1 3 = 4, 6, and 8 = **3** consecutive even integers | 1 …

Member Avatar for sanjulovers
0
213
Member Avatar for Keyra Lee

hi guys...i need help from u guys..my prob is about select option..i'm not good in english. hopefully u guys would understand my english..:(..please help me..:'(..im still new in php.. i want to select a state then a branch will auto will appear if related..i only want if one state is …

Member Avatar for urtrivedi
0
1K
Member Avatar for nadiam

for example: function Show(modal) { $(".box).show(); } so maybe use `<body onload="Show()">` is there any other way?

Member Avatar for niranga
0
176
Member Avatar for Start4me

I want a set of not the same numbers to be added to a listbox, if there are any numbers that are the same, then they won't be added. I tried: If (Number1 = Number2) Or (Number1 = Number3) Or (Number1 = Number4) Or (Number1 = Number5) = False Then …

Member Avatar for Minimalist
0
291
Member Avatar for abelingaw

I have a column named Emp_Id and set as primary key (not Auto Incr).I am trying to generate an ID (employee) and save it into a SQL database. The logic goes this way: Generate the id number with a prefix plus the number (i.e. EMP0001). Display it on a textbox …

Member Avatar for pritaeas
0
629
Member Avatar for Siberian

Can someone please verify if there is something wrong with [this](http://www.thecreativesheep.ca/webdesignprojects/largeprojects/CreativeSheep/cs_site.html) page, by clicking the X in the div, followed by clicking the word "reach.me". What is suppose to happen is the div which you had previously closed should bounce in; that is not happening ?

Member Avatar for Siberian
0
176
Member Avatar for javed.iqbal.3979

In an attempt to use selection lists in php ,i tried it for displaying date on a web page <?php echo"<html> <head><title>Select a Date </title></head> <body>"; $monthname=array(1=>"January","Februray","March","April","May","June","July","August","September","October","November","December"); $time=time(); $today_date=date("M-d-Y",$time); //returns the current date echo "<div style='text-align:center'>\n"; echo "<h3>Today is $today_date</h3><hr />\n"; echo "<form action='process_form_date.php' method='POST'>\n"; //selection list for month $todayMO=date("M",$time); …

Member Avatar for javed.iqbal.3979
0
274
Member Avatar for safi.najjar1

Hello guys this is the first time I see this message while i'm trying to register a new account: the message : __php_incomplete_class could not be converted to string I try var_dumb($_SESSION) and i get this: object(__PHP_Incomplete_Class)[1] public '__PHP_Incomplete_Class_Name' => string 'Customer' (length=8) public 'id' => string '3' (length=1) public …

Member Avatar for veedeoo
0
938
Member Avatar for iConqueror

Im am having abit of trouble with a while loop. I have this method which determines wether or not the entered year is a leap year, the while loop is intended to keep asking the user for another year until he/shes wishes to exit the program. Here is my method: …

Member Avatar for JOSheaIV
0
345
Member Avatar for Priti_P

hello, i have array Array ( [certificate] => Array ( ['name'] => Array ( [1] => 11 [2] => 22 [3] => 33 [5] => 55 [6] => 66 ) ['date'] => Array ( [1] => 1111 [2] => 2222 [3] => 3333 [5] => 5555 [6] => 6666 ) …

Member Avatar for niranga
0
130
Member Avatar for RonKevinT.Manuela

SO i WAS TESTING my code..and it doesnt seem to work...here it is <?php require_once('../includes/config.php'); if ($_Session['roleID']=1) { echo "admin"; } elseif ($_Session['roleID']=2) { echo "faculty"; } ?>

Member Avatar for RonKevinT.Manuela
0
799
Member Avatar for dhani09

I''m trying to process a form without page reload using jQuery post as shown below: <script type="text/javascript"> $('#settingsForm').submit( function(){ $('input[type=submit]', this).attr('disabled', 'disabled ');}); function scheck(){ var oldanswer = $("#oldanswer"); var newquestion = $("#newquestion"); var newanswer = $("#newanswer"); var url = "settingsupdate.php"; //This part of the code works fine. Errors are …

Member Avatar for dhani09
0
269
Member Avatar for James singizi

**i have some code to redirect a user to a page if their login details are correct. part of the code is as below but it never redirects to the specified page. help me sort this out** if($pass==$dbpass){ //safely redirect user to the home page and start a new session …

Member Avatar for jresponse
0
224
Member Avatar for bLuEmEzzy

Guys, I know its easy to do it, but I'm having a hard time doing it. Please help me, I want to get the checked items in checkbox. The problem is that it gets the last value of it. I just used echo to get all the values, but how …

Member Avatar for bLuEmEzzy
0
173
Member Avatar for kannan mangalar
Member Avatar for ikrami

I have text file (attached image) i need to loop and get the values (with ellipse shape )into sql table the text file record usually started with (----)

Member Avatar for jstfsklh211
0
182
Member Avatar for vipula

I am trying display a link from my mysql database. I cannot get it done, It shows like this, for example **www.mywebsite.com/www.google.com** How can I get rid of my website url from this. this is my actual code in display.php <tr> <td>&nbsp;</td><td>&nbsp;</td><td align="right" valign="top"><b>Full Text Link :</b></td> <td align="left" valign="top"><?php …

Member Avatar for niranga
0
178
Member Avatar for chozokennedy

Hello, how does the getElementbyTagname and the length of that works ? Suppose my codes is : <!DOCTYPE html> <html> <body> <p id="demo">This is demo</p> <div id="original">This is original</div> <button onclick="myFunction()">Try it</button> <script> function myFunction() { var elements = document.getElementsByTagName("*"); alert(elements.length); }; </script> </body> </html> Output is 7. Why ? …

Member Avatar for AARTI SHRIVAS
0
115
Member Avatar for chandbasha

[CODE] Options +FollowSymLinks RewriteEngine on RewriteRule ^100bestbuy/products/(.*)/$ /100bestbuy/search.php?categoryId=$1 [L,NC] RewriteRule ^/100bestbuy/search-(.*)/$ 100bestbuy/search.php?id=$1 [L,NC] RewriteRule ^/100bestbuy/product-([0-9]+)/$ 100bestbuy/product.php?id=$1 [L,NC] RewriteRule ^/search/(.*)/$ search.php?categoryId=$1 [/CODE] any thing not working please tell where to modify the code

Member Avatar for diafol
0
250
Member Avatar for rotten69

Hi there, I was reading a book on the plane and something interesting came to my mind that needs an answer. The length property of objects is a read/write value. Let's say, you've got an array that has 6 elements in it and you change its length to 10 as …

Member Avatar for Troy III
0
279