- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 33
- Posts with Upvotes
- 31
- Upvoting Members
- 26
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
Software Engineer99X Technology www.99XTechnology.com Sri Lanka
- Interests
- Music & Movies
- PC Specs
- Ubuntu
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 … |
|
how do we extract data from an xml file and display it in php? |
|
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, … |
|
<?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' … |
|
How to code for text box if length of textbox1 is 5 then textbox2 focus()?? |
|
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 … |
|
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.... |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
for example: function Show(modal) { $(".box).show(); } so maybe use `<body onload="Show()">` is there any other way? |
|
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 … |
|
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 … |
|
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 ? |
|
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); … |
|
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 … |
|
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: … |
|
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 ) … |
|
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"; } ?> |
|
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 … |
|
|
**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 … |
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 … |
|
i want to get table-tr-td values without any id,class. |
|
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 (----) |
|
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> </td><td> </td><td align="right" valign="top"><b>Full Text Link :</b></td> <td align="left" valign="top"><?php … |
|
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 ? … |
|
[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 |
|
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 … |