199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lobebe

Please can some help me with the error in the code below. thank you in anticipation. [CODE]<?php $obj = new Unit(); { global $database; $Unit = $obj->select_row_query ("SELECT `reservation_extras` FROM `".$obj->get_table_name()."` WHERE `id` = '".$_GET['PropertyId']."' AND `published` = 1", 1); $rexzz=explode(",", $Unit->reservation_extras); $i=0; $total_ext=0; if(!empty($Unit->reservation_extras)||$Unit->reservation_extras=='[end]'); } foreach($rexzz as $rexz) { …

Member Avatar for lobebe
0
216
Member Avatar for RichardMuscat

im a student doing my bsc honours in mobile computing from staffordshire university.........as im in my final yr we are supposed to present a fyp..... could anyone share some project titles which are based on mobile systems and which can be unique and challenging........ throughout our course we have learnt …

Member Avatar for Netcode
0
126
Member Avatar for suemaina
Member Avatar for Netcode
0
306
Member Avatar for ecclesiastes3:1

Good Day... the problem is that the Jbutton is not displaying in my Jpanel. can you help me, this will help me a lot, Thanks Here's the code [CODE] import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.net.URL; import javax.swing.JButton; import javax.swing.JOptionPane; public class GameBoard extends JPanel implements ActionListener { JButton …

Member Avatar for ecclesiastes3:1
0
300
Member Avatar for lalaka90

hello... i need help from you all.. i am still new in php.. i hope you all can help me.. i am desperate. i can't delete delete data(delete multiple row from mysql using check box). this is my coding.. the cooperation is greatly appreciated. i have 2 file this is …

Member Avatar for vibhaJ
0
316
Member Avatar for techie929

Hi, I am trying to open a file and correct the spelling of friend. But when I open the file test.txt again it is all blank. [CODE] my $opened = open(MYFH , ">test.txt"); my $line; my $lnum = 1; while( $line = <MYFH> ){ print "$lnum: $line\n"; $line =~ s/freind/friend/g; …

Member Avatar for anuragmathur1
0
105
Member Avatar for termin8tor

Hey all, I've been programming an ISBN system of sorts and I'm a little stuck (again). I want to output my linked list to a text file, so I setup the code like this: [code] void saveList(char fileName[40]) { for ( list< Publication* >::iterator it = pubList.begin(); it != pubList.end(); …

Member Avatar for termin8tor
0
275
Member Avatar for spawn2004

hi everybody i have a question : I am writing a website and i havee a drop down menu. when the user is logged out he can see part of the menu and when hi is logged he see the other part. i hide the menu with <?php if(isset($logged)){ ?> …

Member Avatar for spawn2004
0
156
Member Avatar for deba0011

Sir, I am not getting any fault in my code but the code is not executing with the demands which I have. I just want to register 2 values into the database using jsp , if the username is present in the database it will show User already exist otherwise …

Member Avatar for peter_budo
0
102
Member Avatar for x2fair

Hi every one, I have a problem in inserting database entry, suppose I have two paragraph entered in one richtextbox what I want is that When I hit save, every paragraph will be save as one database entry therefore my database will have two records.. This uses VB.net 2010. Please …

Member Avatar for Pgmer
0
300
Member Avatar for mshdpotato

I don't think the problem lies within the codes but.. The last thing I did was use datediff.. and show the result on a label.. and when I wasn't satisfied with the result I changed a few lines, and I noticed it was still the same whenever I run it. …

Member Avatar for Netcode
0
108
Member Avatar for whiteyoh

Hi All, Im in the middle of making a dynamic multi part email and have come accross a snag. The function receives a file, and depending on the content of that file it then processes the relevant headers and mixed parts, however, rather than echoing the items i need to …

Member Avatar for whiteyoh
0
141
Member Avatar for seularts

I need a bit of help to make a connection to a mysql DB with a function and then create an admin table. I got this far: [CODE] function dbconn($db_host, $db_username, $db_pass, $db_name) { /* Global research function */ global $researchDbLink; if($researchDbLink) { return $researchDbLink; } /* Connect to DB …

Member Avatar for seularts
0
106
Member Avatar for Lexani
Member Avatar for hellojohnatan
0
160
Member Avatar for evilguyme

hey guys! im just so frustrated with this error .. more like a bug though heres a link to all my code on google docs [URL="https://docs.google.com/document/d/1JxrZtbBJ8RPpMvuXvi767Y4gBSiXmKauNu7RApHNVbg/edit?hl=en_GB"]Source[/URL] the bold and enlarged stuff is whats causing the bug problem is when i add [ICODE]void Platform::set_clips(SDL_Rect platClip[], int i)[/ICODE], i guess something in …

Member Avatar for evilguyme
0
121
Member Avatar for KOFguru

I am having problem with `clrscr' undeclared (first use this function) (Each undeclared identifier is reported only once for each function it appears in.) when I am compiling it in DEV-C++ .....please let help me with these [CODE]#include <stdio.h> #define p print f #define s scan f main() { int …

Member Avatar for ashwin k v
0
214
Member Avatar for anupama385

I have a HTML form and I would like to display the values in the form on the same page below the form itself . My question is how can I display the values entered in the form above .I would like to use a javascript. Please help.....

Member Avatar for anupama385
0
96
Member Avatar for Oinkertop

I'm currently developing a game (And no, just because that's the case doesn't mean this belongs in game development), and I've run into a problem. Basically, I need to generate a random number. The number needs to stay the same after it is generated once. The code is in an …

Member Avatar for Oinkertop
0
149
Member Avatar for nera1981

Hi, I am biginer to java. I need to make a class method that retrieve specific row values from database (using ID), and then to make new class instance using those values (as field properties). I wrote code for the first part(getting row value from ID), but I need help …

Member Avatar for nera1981
0
158
Member Avatar for yehtunaung

please help!!!me.. I'm a beginner vb.net programmer I have a difficult that is how can I save image file from vb.net to sql server

Member Avatar for ErnestSeeker
0
381
Member Avatar for jigarsangoi

i want a code to connect the access database 2007 in vb.net i made login form having 2 fields name & password also made an access database having nameid and pwd as two columns,table name is Reg and access database file name is also Reg

Member Avatar for Netcode
0
100
Member Avatar for legends

I need to know how to pass the data's from database to a constructor like this "Jungle Book" => new Book("Jungle Book", "R. Kipling", "A classic book."), "Moonwalker" => new Book("Moonwalker", "J. Walker", ""), "PHP for Dummies" => new Book("PHP for Dummies", "Some Smart Guy", "") my coding is [CODE]$data …

Member Avatar for legends
0
131
Member Avatar for uselessninja

hi everyone ...how to do this in jscript .... refreshing a page once,twice or so on every given time.. (refresh 1x/30 secs or 2x/40 secs) to make it clear: example i will input 100 on a textbox (so this is my given time) and i will set to refresh the …

Member Avatar for uselessninja
0
86
Member Avatar for Anuradha Mandal

I want to print a pyramid like this..... ***** **** *** ** * This is my code.....[CODE]#include<iostream> #include<conio.h> using namespace std; int main() { int i,j; int b; char* sp=" "; cin>>j; for(int a=j;a>=1;a--) { for( b=a;b>=1;b--) cout<<"*"; cout<<endl; for(int k=1;k<b;k++) cout<<sp; } getch(); return 0; } [/CODE] But it …

Member Avatar for Anuradha Mandal
0
107
Member Avatar for Sorcher

Do anyone see what im doing wrong with the update query? i get this mysql_error message; 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 '-xxx WHERE id = '616' AND userid = '15'' …

Member Avatar for karthik_ppts
0
141
Member Avatar for lalaka90

good morning. i am new still new in php. I need help from you all. why i cannot delete multiple rows from mysql with checkbox in my database... this is my coding.. <?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="cek"; // Database name $tbl_name="del"; …

Member Avatar for karthik_ppts
0
213
Member Avatar for Steven9999

Hello all I have a project written in C + + On the platform Windows XP I want to convert the text to voice How can I do that? ? Are there functions In audio/ sound libraries convert the text to voice??? I hope you help me

Member Avatar for Steven9999
0
121
Member Avatar for Thropian

I'm hoping I'm not the first to deal with this issue but here goes. running py2exe I get this error [CODE]Traceback (most recent call last): File "setup.py", line 4, in (module) setup(console=['hello.py']) File "C:\Python27\lib\distutils\core.py", line 152, in setup dist.run_commands() File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands self.run_command(cmd) File "C:\Python27\lib\distutils\dist.py", line 972, …

Member Avatar for Thropian
0
804
Member Avatar for ChaseRLewis

I get this warning and I can't seem to figure out what it is referring too (it repeats this exact one ALOT when i have very little code). I'm trying to implement boost archive into my project as it allows less code to be written when serializing classes. [CODE] c:\program …

Member Avatar for vijayan121
0
226
Member Avatar for skorm909

So I've never worked with percentages in c++ and I was wondering how to incorporate into a program I'm making for a game so see what the chances are that an item will reach a certain level depending on the chance of success for each different level. Here's what I …

Member Avatar for raptr_dflo
0
145
Member Avatar for thwias1b3008

I have a problem on passing value from Main Form to 2nd Form. Actually, I have a [B]2nd Form[/B] on the [B]SplitContainer[/B] and the [B]SplitContainer[/B] is placed [B]inside the Main form[/B]. What I want to do is [COLOR="green"][B]Click the Button on the 2nd Form from the Main Form.[/B][/COLOR] Thanks in …

Member Avatar for NetJunkie
0
225
Member Avatar for uselessninja

hi ... i is it possible in php: updating/refreshing a page once per 30seconds (1/30 secs) and it can be set for 2x,3x times and so on.... and also the seconds (the 30 seconds ) can be set also....

Member Avatar for uselessninja
0
123
Member Avatar for massivedynamic

I've recently started using PDCurses in a C++ game I'm working on. When I compile the program on my own machine (windows) and run the .exe, everything works as it should. When I take that .exe onto a different computer that doesn't have PDCurses and I try to run it, …

Member Avatar for raptr_dflo
0
884
Member Avatar for termin8tor

Hey all, I'm attempting to use an STL List to store a list of objects. Now I realise it's quite trivial to store a list of objects of my own definition. My real question is, how do I fill the list with objects that inherit from a base class. E.g. …

Member Avatar for termin8tor
0
275
Member Avatar for JamesW315

I wrote a program that converts Celsius to Fahrenheit and vice versa. when converting Celsius to Fahrenheit I used the formula (9/5) * Celsius + 32. but that didn't work, I discovered that 9/5 was returning 1 rather than 1.8 and I'm not sure why that is. I fixed the …

Member Avatar for JamesW315
0
105
Member Avatar for SecretDavidMAN

When I ask the user to enter in a number of games, Say I wish to do 5 fights. It runs the fight, then stops after 1 player wins. It doesn't loop back around, DO health levels need to be reset? I also think I did my coin flip wrong. …

Member Avatar for Raimucka
0
104
Member Avatar for Tauren

I am looking for a PKC library, I would like one that is decently fast. I have looked at RSA, but I cannot seem to find any decent libraries that would work. I will be encrypting packets that are sent out via UDP, however one client will have the private …

Member Avatar for nezachem
0
143
Member Avatar for AJG

Hi everyone, I'm new to Java and a relative newbie when it comes to programming in general. I've been learning a bit from some Youtube tutorials dealing with Java basics. They've been very helpful and I've been able to create a basic game setup with my new knowledge, with a …

Member Avatar for AJG
0
287
Member Avatar for kristo5747

[B]**Disclaimer: It's been a while since I last wrote any code. The quality of my code is likely to be sub-par. You've been warned.**[/B] I have a basic form that's meant to search flat files on our server. The "search engine" I created as two select lists: one for the …

Member Avatar for kristo5747
0
173
Member Avatar for techlawsam

Hi I wanted to ask what is the relationship between "system" , "console" and "read" so far I found out that console is a "class" in the system name-space.

Member Avatar for techlawsam
0
195
Member Avatar for evilguyme

hey guys i got one more question :O i have this code for a class function [CODE] void Platform::set_clips(SDL_Rect platClip[], int i) { for( int j = 0; j < i; j++ ) { platClip[j].x = 0; platClip[j].y = 0; platClip[j].w = random_number_w(); platClip[j].h = 5; } } [/CODE] is …

Member Avatar for evilguyme
0
91
Member Avatar for rosstafarian

Hi guys. Im doing a project for college where i have a booking system. The people book for a time slot and i would like to work out how to have a break down of time slots say for one hour periods throughout the day. Something similar to the bottom …

Member Avatar for adam_k
0
1K
Member Avatar for sirin_adam

Hello! Here and example that we can add manually a path on windows: [url]http://1.bp.blogspot.com/_NtoTtHZadHE/S0SLPiJo-2I/AAAAAAAAAIg/GyoW0pPEW-g/s400/qt-mobility-windows-env-path.png[/url] I need to add new path on the system (or user (it does not matter) ) from my Java program (no problem if my java program must start with administrator privilages). Thank you!

Member Avatar for NormR1
0
159
Member Avatar for evilguyme

Hey guys! i just started using SDL engine to make a 2d game . This is the code ive got so far, you can view it online on googledocs via this link: [URL="https://docs.google.com/document/d/1S1upv5FxT3TvZsvhaZ1nFb39aUz-AVl7MhqP8zSZ4DM/edit?hl=en_GB"]CODE[/URL] i have made bold the code that causes the problem. when i do [ICODE]apply_surface(0, 0, stick, screen, …

Member Avatar for evilguyme
0
152
Member Avatar for SpiritualMadMan

Never did much stuff with "Classes" while still writing in VB6. :) I have the following wxPython Class in my pyTC file [code] class InfoUUT(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: InfoUUT.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) self.label_1 = wx.StaticText(self, -1, "This TPS is for the following UUT") …

Member Avatar for woooee
0
134
Member Avatar for Member24

Hi, I recently started working using awk. I am facing a problem to traverse a file row by row. I have a file test.txt which has 2 fields filename and action. test.txt -------- /tmp/a.txt|Action1 /tmp/b.txt|Action2 /tmp/c.txt|Action3 I need to check for the existence of file ($1) in the above file, …

Member Avatar for JeoSaurus
0
247
Member Avatar for Jennifer84

Hi, I have an URL like below. When typing that in explorer, that will let you download a .csv file. I simply wonder how you can do this in code instead. Reach the below URL and download this file to C:/ ? [code] string getURLfile = "http://ichart.finance.yahoo.com/table.csv?s=MSFT"; string savePath = …

Member Avatar for sergent
0
267
Member Avatar for Donald Njila

Hey guys could you please differentiate for me when to use stacks and when to use registers in assembly codes.Please a code fragment will do much good too. Thanks in advance.

Member Avatar for thines01
0
129
Member Avatar for gedas

hey, i have developed java application in netbeans 7.0. the application connects to the mysql database in the same computer. what i need to do is make a stand alone application that would not require netbeans in order to be executed, also i want the database to be a part …

Member Avatar for gedas
0
232
Member Avatar for nuclear

So i just started learning SDL and came across "Event driven programming", just wanted to be sure if i understood the tutorial correcly. So lets say by adding: [CODE]SDL_Event event;[/CODE] i add lets say a container that keeps track of every event i do? After that i start using: [CODE]while …

Member Avatar for nuclear
0
285

The End.