64,152 Solved Topics
Remove Filter ![]() | |
Am having a hard time printing all record percent in my db my sql statement [CODE]$query="SELECT *, duedate,(TO_DAYS(duedate) - TO_DAYS(CurDate())) as difference FROM vehicle_info ORDER by svreg"; //$query="SELECT * FROM vehicle_info WHERE id='$id' ORDER by vreg"; $pager = new PS_Pagination($conn,$query,10,10); $accra = $pager->paginate(); while($row = mysql_fetch_assoc($accra)) { $id = $row['id']; … | |
Hi all, I'm working on a school project and I am running into a problem, possibly more... This is my first post, so I am sorry if it ends up ugly. Here is a description of the project: This project focuses on demonstrating your understanding of classes and objects. Before … | |
Hello, I have a problem with the response text of an ajax request. I want to use the answer of the php script ("true" or "false") to do different things with a if-condition, but it always takes the false option. Here is the code. [CODE] var hr = new XMLHttpRequest(); … | |
Hello I wonder if anyone could help me with the following please? I have scratched my head and played around but not been able to move forward. I am creating a script to redirect a user to a random link on my site. The first part of the code extracts … | |
Hello Friends...:) I am a part time web designer and small time PhP developer by side. I recently got a request from one of my clients that he needs a site in which he is offering some service( some spiritual advice kind of stuff based upon your date of birth … | |
Need help with implementing a pure abstract class via inheritance, using namespace to wrap all my classes to avoid conflict with others. I have been able to build and run the code successfully if I remove namespace wrapper from my abstract class and all classes that inherit from my pure … | |
I had to make a arrayList and i do not know why is it not working [CODE]public class ArrayList<E> { private E[] theArray; private int size; private int capacity; public ArrayList(int initialCapacity) { this.size = 10; this.capacity = initialCapacity; theArray = (E[]) new Object[initialCapacity]; } public ArrayList() { this(1024); } … | |
Please i want to set sessions in my php file which includes a form but the session doesn't work.This is my code sample. I need help please! [CODE=php] <?php $conn=mysql_connect("localhost","root",""); mysql_select_db("my_db"); session_start(); if(isset($_SESSION['count'])) $_SESSION['count']=$_SESSION['count']+1; else $_SESSION['count']=1; if(!($_SESSION['count']=$_POST['reg'])) die("SESSION NOT SET SUCCESSFULLY!"); else echo "SESSION SUCCESSFUL!"; ?> <html><head></head><body> <form method="POST" action="<?php … | |
I have a homework assignment due this week and am fairly new to C++. Don't have a book so I can't really go on anything other than the video material and power point slides my teacher provides. I have 98% of the assignment done, however I'm encountering logic problems. I'm … | |
Heya guys, basically here is some code for a simple example program: [CODE] unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls; type TForm1 = class(TForm) img1: TImage; procedure FormCreate(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; … | |
I need to have a update button to update a edited textfield and save it to the database. I have created the button but have no idea on how to make it update the edited textfield and update the SQL database automatically. Pls help!!): This is my code: [CODE]private JButton … | |
Dear all, I'm learning now about Android app development. I feel really good at it, thanks to thenewboston tutorials over youtube. I got a question, How do I change a pdf file to an app? I looked all over the internet and all what I got is several websites with … | |
Hi All, I'm getting the following "Undefined type: ArrayList" for the following line of code "<jsp:useBean id="students" type="ArrayList<beans.UserBean>" scope="session" />" Could someone tell me what I did / didn't do the get this error and what I have to do to resolve it. Many thanks, AK | |
Hi every1! Thats my code that used to work before I've added some attributes to my items. [CODE]void manager::EditStockItem() { ListStock(); { string z; bool found; cout<< endl<<"<===================================================>"<<endl<<endl; cout << "Enter ID of the Stock Item you want to edit" << endl<<endl; cin>>z; found = false; vector <Item*>::iterator iter = … | |
For a school project I need to make a timer with a bell sound that sounds every 60 seconds in VB, I cannot work out how to make the bell sound on the 60th second, I am not getting any errors in the VB console, so I assume that I … | |
![]() | Can you help me with one problem, I dont know how to invoke action op menu not the menu item? I have File and Help menus and I need to invoke action when the Help menu is pressed but dont understand how, I know how to do in on MenuItem … |
File, new project, Java+Java application, Project name just a random name, finish. Then.. new file, Java+Java class, Class name payroll, finish.. [code] /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javaapplication5; /** * * @author computer public class … | |
I'd like to start by thanking whoever reads this for their help. I've been trying to learn Test Driven Development (TDD) in a php environment. I've read a lot about it and stumbled upon both PHPUnit and simpletest. I've spent the past 8 hours searching the internet for tutorials and … | |
Hi, I need to create an html page to export some information. Currently, by using java, i've exported information to excel. But now, I need to export the information in HTML page using java.Is there any APIs I can use? Thanks. | |
Hi, I am using Paypal to do my payment processing, however the user authentication JSP session variables I am using are expiring during the transition from my site to paypal's then back to mine again. The result is obviously that access is denied on return and the transaction does not … | |
Hello everyone, Please can someone help me to debug this error? It has been giving me a huge headache since last night. Anytime I try to add new record into my database, this error message keeps coming up: "Error: INSERT INTO Customer(Cust_ID, Name, Address, Username, Password) VALUE(?,?,?,?,?,?)". I don't know … | |
![]() | Hey guys..I'm a newbie, so please try to use easy words, as the more complicated stuff may make me bleed out of my ears ;) So I'm trying to make this program where you type in a number using the xxx xxx xxxx style The java program will then compare … |
Making a logbook using editbox for entries that fill a listbox. I have two enter buttons. One would enter line in Red one in Black but I don't know how to change the font color in the listbox. My first pascal program and this is the last step for completion.:( … | |
cant we compare two for inequality? i mean if i have a char array 'a' and i want to know the number of digits in an array which is not '4' or not '7' i.e if my array has value 4567778 the output should be 3 as there are three … | |
Hi everyone, I'm new to mySQL. I have a table like this one: [ICODE]+-------+-------+-------+ | date | plant | value | +-------+-------+-------+ | date1 | 1 | 10 | | date2 | 1 | 12 | | date3 | 1 | 15 | | date4 | 2 | 30 | … | |
Hello Everyone ! How to split each array to own variable and display that variable separately . I got code from IP API provider to display user's location, [CODE]include 'ip2locationlite.class.php'; $ipLite = new ip2location_lite; $ipLite->setKey('c86c104532b5466bda7620b48e20b10ca53ad9070b8cc52b5a5d90a6e57b9bb3'); $locations = $ipLite->getCity($_SERVER['REMOTE_ADDR']); $errors = $ipLite->getError(); echo "<strong>First result</strong><br />\n"; echo count($locations); echo '<br><br>'; foreach … ![]() | |
how can i select all records from a table where a future date column is less than 14 days away within a php table. somthing similar to? [CODE]SELECT DISTINCT FROM table WHERE 'Date_Column' <14 days [/CODE] Thanx In Advance KeeF | |
Hi I need to set the filter in imap_search the condition is filter should take the yesterdays date dynamically $gmail = imap_search($inbox,"[COLOR="Green"]ON 01-01-2012"[/COLOR]); Thanks | |
Hi guys, I tried installing the joomla 1.5.22 version using XAMPP. Can someone send me a link that works. In the tutorial i was asked to create a mysql database (name: joomla) and which when executed showed numerous errors. Kindly guide | |
![]() | I need to put the number of cycles for each assembly instruction in the comment field and then calculate the total number of cycles for the entire 10 second timing interval. Need to calculate the processor clock frequency (MCLK) by dividing the total number of cycles per interval by the … |
i'm studying file processing. when i execute the second code that Reading Data from a Sequential Access File something goes wrong with it. i couldn't find what is wrong. is there anyone who can help me? [CODE] /*creating a sequential file*/ #include<stdio.h> int main() { int account; char name [30]; … | |
Hi friends., Actually I use datagrid to show my result from XML file.I load my data from XML file easily.But i need Sorting method for that and i don`t know how to solve it Please give me solution for that My code is [CODE] Imports System.Data Imports System.Xml Imports System.IO.StringReader … | |
I currently have two stopwatches ( running in a VB 2010 program. What I would like to do is combine their values together and have their results outputted in a string formatted as 0:00:00. I tried the Add method and the + method but this fails. This is in short … | |
I figured I'd ask this here before I go back to other sites. I'm trying to dynamically create a set of stopwatches and buttons. Each stopwatch will be controlled by a button which is also dynamically created. However, each time I code it, I always ended wiring both buttons to … | |
![]() | Hey everybody! So my problem is the very last part, getting the results of my calculation. So what i've done is created a stack with my very own stack class. The = button is suppose to display the result but i get a runtime error. Please help me out. Oh … ![]() |
I have to make a small paint program using the GUI. I need to know how to use the combo box. I know I have to make an array with the list of colors but I don't know how to add it to an action listener and choose the items. … | |
I created on Employee master form. The details which i enter in this form is saving to sql table. But if i use Wild characters example in Name field if i enter "Varghese D'Costa", then the following error comes : Line 1: Incorrect syntax near 'Costa' Unclosed quotation mark before … | |
ok, so here's the deal. Going over the Rails tutorial. We're running a testing environment to make sure that the things we want showing up on our pages are making it. Doing this using pages_controller_spec.rb file. And this is one of three arguments that we passed: [ICODE]describe "GET 'home'" do … | |
Hello. I am working on a data structures program that should be quite easy, but after programming in assembly language using mips, I forgot a little bit of C++ and can't remember how to do this. I've used my googlefu for at least 2 hours and still have this problem. … | |
Hello all, I need some help to get all wxpython methods that associate widgates. I mean ALL methods for wx.Button, wx.Frame etc. I will appreciate if I will get something like pdf version but anything or Idea is welcomed Thanks and regards Steve | |
Hi all, I want to replace these charachters: Æ,Ø,Ã…,æ,ø,Ã¥, with, AE,OE,AA,ae,oe,aa I thoght I could use preg_replae this way to accomplish that, but if i write this word in the form: "Bælter" - All that is left to be inserted into the DB is "B" - So I am removing … | |
[CODE]#include<iostream.h> #include<conio.h> struct marks { int a:3; int b:3; int c:2; }; int main() { clrscr(); marks m={2,12,5}; cout<<m.a<<m.b<<m.c; getch(); return(0); }[/CODE] o/p is 2-41 i got how 2 and 1 came but didnt get how -4 came. according to me it should have been binary for 12=1100 b can … | |
Hi, I have a program which is almost working now further implementation wants a records to store different entities and to create their relationship. I don't want to create the new forms what would be the best and easiest way of doing this. Any help would be highly appreciated. Best … | |
It starts off fine, after starting the countdown function and pressing the Action button, it causes the program to freeze. [CODE] import wx import time class LeftPanel(wx.Panel): def __init__(self, parent, id): wx.Panel.__init__(self, parent, id, style=wx.BORDER_SUNKEN) self.text = parent.GetParent().rightPanel.text self.text_2 = parent.GetParent().rightPanel.text_2 button1 = wx.Button(self, -1, 'Count', (10, 10)) button2 = … | |
Hi there, I have an assignment for University that requires me to use a grid of buttons in any way I want to create some sort of game. I've chosen to make mine like a Bandit machine: [LIST=1] [*]Press "Spin!" Button [*]3x3 Grid Of Buttons Randomize Their Colours (Either Red, … | |
i i have a listbox and 1 button in my application thing i want is when i click on some listbox item auto press that button or when i click on some item in list box it remove selected items from list box just with mouse click | |
hi there, i want to implement a server that receives voice packets from many clients then send these packets to all the clients so that the clients are communicated to each other through the server. how i can send the received packets to all the clients? any good tutorials or … | |
hi i have a problem with my interface,i want to I want when I hit the button, the progress bar goes off, so I have not found where is the problem in my code is that any one can help me and thank you. import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JProgressBar; … | |
Hi, I'm having some problem with this code: [CODE]<?PHP include 'topo.php'; include 'db_connect.php'; ?> <table> <tr> <td id="navigation-block"> <img src="background.jpg" id="hide" /> <ul id="sliding-navigation"> <?PHP $sql = "SELECT * FROM cursos"; $query = mysql_query($sql,$connect); while ($row = mysql_fetch_array($query)) { ?> <li class="sliding-element"><a href="prog_curso.php?cod= <?PHP echo $row['cod_curso']; ?> "> <?PHP echo … | |
Good afternoon, I don't know if I just can't do this, or if I can, and I have it structured incorrectly. What I'm trying to to is to generate a member table from a couple of imported excel spreadsheets. To create the member records, I must assign a 'Username' for … |
The End.