199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Nagarajan M

Hi friends, I am using java applet that will perform some operations. Now it is independent of jsp or html page. So,if i close an applet my html page remains active and Vice-Versa. What i want to do is embed an java Applet in html page itself. When i click …

Member Avatar for Nagarajan M
0
713
Member Avatar for turpentyne

I have an onclick function for an <ul><li>, but I need to set a variable from the id of an <a href> tag insde the <li> and I'm not sure how. I have: $('#dropdown ul li').click(function(){ var picked = $(this).attr('id'); // this part I don't know. // var picked = …

Member Avatar for pixelsoul
0
105
Member Avatar for suncho26

Hi there, I have a classified website, built with custom PHP code. The problem is that the title of the entire site is the same. Attach files **index.php** and **pOffers.php**. Please give ideas on how to call from database the title of the listing. Tell me if you need more …

Member Avatar for Webville312
0
249
Member Avatar for tumblinmonkeym

I am trying to implement a priority queue with an unsorted array and hit a wall when I received a Segmentation fault:11. I used gdb and got the error: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000 0x00000001000017fa in Item<std::string>::setKey (this=0x0, k=3) at PriorityQueueArray.h:27 27 …

Member Avatar for deceptikon
0
872
Member Avatar for AmerJamil

When im using fstream.h its giving an error with using namespace std, how ever when i use simple fstream without .h , it is not giving error but not reading the file, How can i use fstream object using fstream.h header file along with using namespace std? Your urgent response …

Member Avatar for deceptikon
0
982
Member Avatar for alaa sam

hi everyone I'm supposed to write a wifi analyzer in java , what are the libraries I need to do it ? also I'm using linux will my work be protable for windows??

Member Avatar for stultuske
0
134
Member Avatar for noble3ad

Hello all, I'm suppose to write a program that asks the user to input five numbers. Out of those five numbers, the program is suppose to select the maximum value. I attempted to do it with "else-if" statements as can be seen in the following code. I was hoping there …

Member Avatar for arunkumar4003
0
464
Member Avatar for jmw5598

I'm working on a web application for a class of mine. The assignment is to create a College Services app where students can login and register for classes. Right now I'm working on the login portion and it coded out but I'm having some issue and hopeing I get a …

Member Avatar for jmw5598
0
179
Member Avatar for skliz
Member Avatar for skliz
0
117
Member Avatar for game06

i have a for loop and inside i have some code. i want to run this code random. i was thinking of using a if statment. for(int i = 0; i < 50; i++) { if(ran.nextInt(50) > 50/2){ //code } } but i want it so its even more random. …

Member Avatar for JamesCherrill
0
105
Member Avatar for jLamp

Dear Friends. When i going to UPDATE data of the database using UPDATE function in PHP, following message displays, What should I do? You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':_If_Any_01='Test', History_/_Remarks=NULL, …

Member Avatar for jLamp
0
190
Member Avatar for aisha.edris1

hi everyone thanx alot for helping me u solved me many problem so i need ur help again after i'm login and choose a movie that the person want to watch it i'm create table time and i insert the time for booking and the user will choose the time …

Member Avatar for aisha.edris1
0
185
Member Avatar for EdvinasSelskas

Hi everyone, I'm developing a music website and got stuck on this problem. Whenever a user submits a playlist from youtube, i fetch for video thumbnails and list them for the user. Here's the code: <? $site = 'youtube'; } $plID = str_replace("http://www.youtube.com/playlist?list=", "", $url); $xmlLink = "http://gdata.youtube.com/feeds/api/playlists/" . $plID; …

Member Avatar for EdvinasSelskas
0
919
Member Avatar for Octet

I am baffled, I've been trying to get this piece of code to work for the past 30 minutes but with no luck. It should in theory be a simple registration script to check the user's input and then add it to the database however it won't add it to …

Member Avatar for Octet
0
201
Member Avatar for imaditigarg

**I m not able into if statement its directly going into the else part. And Sometimes i get " mysql_num_rows() expects parameter 1 to be resource" this error. Plz help <?php // Connect to server and select databse. mysql_connect("localhost", "root", "")or die("cannot connect"); mysql_select_db("db_feedback")or die("cannot select DB"); // username and …

Member Avatar for Webville312
0
173
Member Avatar for kiLLer.zoh_1

I have been inserting the file path in to data base but it s giving a mysql syantax error can any pne fix it <?php include 'db.php'; if($_SERVER['REQUEST_METHOD']=='POST') { if(isset($_FILES['photo'])&& is_uploaded_file($_FILES['photo']['tmp_name']) && $_FILES['photo']['error']==UPLOAD_ERR_OK) { if($_FILES['photo']['type']=='image/jpeg') { $tmp_img = $_FILES['photo']['tmp_name']; $path = "d:/xampp/htdocs/upload/images/" .$_FILES['photo']['name']; move_uploaded_file($_FILES['photo']['tmp_name'], $path); $imgname=$_FILES['photo']['name']; $q="Insert INTO image (name,imgpath) …

Member Avatar for Webville312
0
303
Member Avatar for ImZick

Hi i got this problem and i dont why it occured in my query i know that the Table name is correct and the Column Name is correct but this error always appear No value given for one or more required parameters. the it highlights the da.fill(dt) Dim da As …

Member Avatar for ImZick
0
99
Member Avatar for saurabh.mehta.33234

I have the following code on threads.I have a doubt that is it possible that any of the two threads created ie one and two will execute the 2nd print statement in run method before the first print statement in it?That is print hello first and then the current thread …

Member Avatar for stultuske
0
182
Member Avatar for tomz6
Member Avatar for Banfa
0
997
Member Avatar for vinithawilson

i need to change background-color of a particular colum when the table header corresponding to that column is clicked.How to achieve this using html css & jQuery.

Member Avatar for imBaCodes
0
128
Member Avatar for solomon_13000

I found some reading materials about factory design pattern (parallel hierarchy) whereby a class in a hierarchy has a corresponding class in the another hierarchy. So I wrote the code as below: package com.factory3; public abstract class Subject { abstract SubjectPlanner createPlanner(); } package com.factory3; public class English extends Subject{ …

0
158
Member Avatar for ngonix

Hello, I have search box that has auto complete from database(works fine). But I need when the search box value auto-populates in textbox(address_name), the other textbox values come from mysql and automatically populate the other textboxes related to the textbox(address_name) i.e textbox(work_no) and textbox(work_address) using a button or onChange event …

Member Avatar for ngonix
0
2K
Member Avatar for johnnycho

I'm trying to learn, understand and implement object-oriented PHP. Something's happening which I don't understand, and I would appreciate any guidance or help. I have the following class with the following properties and method: class Film { public $film_ids; public $numfilms; public function getFilms() { global $dbh; global $film_ids; global …

Member Avatar for johnnycho
0
317
Member Avatar for tgolla

Below is the sample code working fine in 10g and not working now in 11g. CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "PSTest" AS import java.sql.SQLData; import java.sql.SQLException; import java.sql.SQLInput; import java.sql.SQLOutput; import java.util.List; public class PSTest implements SQLData{ public String sql_type = "PS_TEST_TYPE"; private String id; public String …

Member Avatar for tgolla
0
1K
Member Avatar for renzlo

Hi, All, Greetings! Is this doable? I have a textbox for email address entry, now, when I type the email address and reach the @ character, there will be a dropdown suggesting common domains like msn.com,hotmail.com, aol.com, yahoo.com and etc. I hope you can help me. Thanks in advance.

Member Avatar for renzlo
0
743
Member Avatar for dougsix

I have been working this on and off for a while to encrypt data strings. Seems to work fine except Upper case letters are not encrypted, just stay as Upper case letters. It's got to be something simple, I just don't see it. Any help would be appreciated. <?php // …

Member Avatar for LastMitch
0
145
Member Avatar for cyberdaemon

Good day, I am facing a trouble with my project. i want to load the database in my session but i dont have idea on how to do it. session["getName"] = _BLL.GetName(_myEntities); Response.Redirect("otherpage.aspx",false); on my master page. myLabel.Text = session["getName"].ToString(); that's my code. i want to get the record on …

Member Avatar for cyberdaemon
0
105
Member Avatar for cyberdaemon

Good day, I am having trouble with my dbase. i have 2 tables first is the maintenance table while the other is transactional table. on my maintenance table i have field(id, plan, material,type,percentage) while on the transaction table (id,material,description) here is my problem. on the maintenance table let say id …

Member Avatar for cyberdaemon
0
167
Member Avatar for cyberdaemon

Good day, I am having a probem with my sql. I want to create a formula for my pivot field.. here is my code... SELECT * FROM ( SELECT REPORT.MATERIAL ,REPORT.Description ,REPORT.Material_Type ,REPORT.ATP_check ,REPORT.Delivering_Plant ,REPORT.Order_Quantity ,REPORT.Held_by_Finance ,REPORT.Rejected_OOS ,REPORT.Rejected_Others ,REPORT.Open_Order_Quantity ,REPORT.Order_Quantity_NKA ,REPORT.Order_Quantity_RKA ,REPORT.Order_Quantity_Others ,REPORT.Stock ,REPORT.DSD_Delivery ,REPORT.OUtBound_Haulage ,REPORT.Total_OutBound_items ,REPORT.InBound_Haulage ,REPORT.Haulage_In_Transit ,REPORT.Process_Order ,REPORT.Total_Inbound_Items …

Member Avatar for cyberdaemon
0
219
Member Avatar for game06

i have enemy class. and i am createing bunch of them and storing them in arraylist. i am printing them in random places. for(...){ enemy_class = new Enemy((WINDOW_WIDTH/2)+r.nextInt(WINDOW_WIDTH/2), r.nextInt(WINDOW_HEIGHT)); //add in arraylist } the problem is that some times they get create on top of each other. so my plan …

Member Avatar for somjit{}
0
134
Member Avatar for Neha290791

hey all so there's another problem.. Actually I have a login page in my application. When user login with the appropriate credentials, different screens open up for different purpose. Each screen has a link called SignOut on the top of the page. Whan user logs out, he jumps to the …

Member Avatar for LastMitch
0
147
Member Avatar for JamesDanny

Hey Guys, i was looking at the post linked below and been trying to solve the issue, however, i have been unable to solve it. [Click Here](http://www.daniweb.com/software-development/java/threads/384109/data-from-text-file-into-jtable) The post says i "MUST create a new Vector for each row" in order for it to work. as mentioned above, i have …

Member Avatar for <M/>
0
295
Member Avatar for mr0277

I have a session variable that I set to zero at every Page_Load beginning: Session["DoRefresh"] = "0"; On a dropdown value changed, in the event handler I do: Session["DoRefresh"] = "1"; On the end of aspx page I have a javascript added: function OnRequestEnd(sender, args) { if ('<%= Session["DoRefresh"] != …

Member Avatar for LastMitch
0
206
Member Avatar for glennt

I recently had a strange thing happen in an ASP.Net application I wrote in VB. When each session starts, one of the first thing it does is create a record in a SQL table and captures its ID value, which is an identity field. Two sessions were started very close …

Member Avatar for Airshow
0
341
Member Avatar for bilal.saim

<series> <asp:Series Name="Students" BorderColor="180, 26, 59, 105"> <Points> <asp:DataPoint AxisLabel="jon" XValue="5" YValues="4" /> <asp:DataPoint AxisLabel="kon" XValue="15" YValues="44" /> <asp:DataPoint AxisLabel="pol" XValue="85" YValues="90" /> </Points> </asp:Series> <asp:Series Name="Teachers" BorderColor="180, 26, 59, 105"> <Points> <asp:DataPoint AxisLabel="hjim" XValue="50" YValues="40" /> <asp:DataPoint AxisLabel="azdai" XValue="75" YValues="4" /> <asp:DataPoint AxisLabel="kriasm" XValue="35" YValues="29" /> </Points> </asp:Series> </series> …

Member Avatar for LastMitch
0
354
Member Avatar for ChargrO

Hi guys I'm fairly new to java script and was wondering if I could get some help with this, please forgive the probably messy code. <HTML> <HEAD> <TITLE>Limerick Generator</TITLE> <script type ="text/javascript"> function display(f) { f.result.value = eval((f.character.value) + (f.body.value) + (f.characterrhyme.value) + (f.occupation.value) + (f.task.value) + (f.verb.value) + (f.direction.value) …

Member Avatar for IIM
0
207
Member Avatar for kakalahori

there is no file zf.bat in zend frame work2 like in the previous version ............ please any one can tell how to install it easy way and in windows

Member Avatar for kakalahori
0
250
Member Avatar for blacklooksgood

Sorry guys, im beginner in java. Can you help me with these problems. :/ Problems: 1. a. Create an abstract class named Book. Include a String field for the book’s title and a double field for the book’s price. Within the class, include a constructor that requires the price. Include …

Member Avatar for <M/>
0
2K
Member Avatar for James19142

I'm writing classes for widgets on a ui. While planning what I would do, I realized majority of the of the classes would look very similar. What I decided to do was to use a macro that takes a few parameters to define the similar parts of the class bodies. …

Member Avatar for James19142
0
815
Member Avatar for Vingklippt

<?php require_once 'lib/swift_required.php'; $transport = Swift_MailTransport::newInstance(); $mailer = Swift_Mailer::newInstance($transport); $headers = "From: Sebastian@Thorn.se" . "\r\n"; $conn = new mysqli('localhost', 'root', 'rushndie', 'bookmarks'); $username = $_POST['username'] $result2 = $conn->query("select * from user where username='".$username."' and passwd = sha1('".$password."')"); $row = $result->fetch_object(); $email = $row->email; $message = Swift_Message::newInstance() ->setFrom(array('sebastian@thorn.se' => 'SEBASTIAN JOHANSSON …

Member Avatar for IIM
0
297
Member Avatar for turpentyne

I've been given a script to work with for detecting browsers, to apply the correct css stylesheet. It's a little above my head, and I'm trying to determine how to make edits, to add in an if statement for this: Mozilla/5.0 (Linux; Android 4.2.2; Nexus 7 Build/JDQ39) AppleWebKit/537.22 (KHTML, like …

Member Avatar for turpentyne
0
223
Member Avatar for lauraroxi

Hello. I have to design 2 classes that use a binary search tree for storing some orders for some products. I've researched on the Internet about BST implementations in Java, and I've found TreeSet. Do you have any other suggestions? Thank you:)

Member Avatar for cmps
0
186
Member Avatar for game06

i need some help with binary trees. i belive i have finish with insert and displaying the tree methods. but i can not be sure but i am getting a error in main. error in main: Exception in thread "main" java.lang.Error: Unresolved compilation problem: Cannot make a static reference to …

Member Avatar for JamesCherrill
0
300
Member Avatar for eburlea

Hi. I use a fuction to retrieve some information from a remote site: $dom = new DOMDocument; @$dom->loadHTMLFile($url); $page_content = $dom->saveHTML(); When I echo the content, some characters appear like 'á'. I have tried many things from the internet, but nothing helped. Is there a solution?

Member Avatar for eburlea
0
2K
Member Avatar for gbhs

Hi Guys Im a newbie in vb.net and trying to insert data into students table and some related details to scores table. Point is, a student registered in a class(level) must offer subjects (courses) for that class. I insert a student in students table (see Cmd below). This is easy. …

Member Avatar for AleMonteiro
0
365
Member Avatar for mattsheets

Hello All! I have a MySQL database with 4 items, id (numerical), group_name, employees, and surveys. I need to in my select calulate the percentage of 'employees' who my the number in 'surveys' have taken the survey. This is the statement I have now: SELECT group_name, employees, surveys, COUNT( surveys …

Member Avatar for TonyG_cyprus
0
403
Member Avatar for blenkhn

I have built a private intranet using perl and have upgrading the site to IIS 7.5 on Windows Server 2008 R2. I have a section that prints tags formatted with win32 Printer. I have gone through all the steps to get perl to work. I was able to get this …

Member Avatar for LastMitch
0
763
Member Avatar for xHellghostx

Okay so I have couple of questions about lists in vb.. Please be aware that it's all related to integers only no strings or others 1. How to sum values of a list? 2. How to sort values of list from highest to lowest? Also how would I display list …

Member Avatar for ddanbe
0
332
Member Avatar for Atlanta15Braves

I am trying to mess with different ways to do a hit counter. I currently have two files. Hit Counter and Count visits. Count visits calls hit counter and hit counter creates a table and increments it. I am not getting any output and I think it is in my …

Member Avatar for EvolutionFallen
0
248
Member Avatar for UKnod

I am running a database with about 200,000 records, so not too big. It runs fine except when I try to update one of the tables. Here is the code: Private Sub Add_History() Dim cb5 As New OleDb.OleDbCommandBuilder(da5) Dim dsNewRow5 As DataRow Dim sql5 As String sql5 = "SELECT * …

Member Avatar for TnTinMN
0
240

The End.