199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for scorpionz

Hi this is scorpionz: I need to know how to insert PHP block in database using PHP, because i am generating random tables. So i need that to insert: Here is the query: [code] <?php $sql_insert_revisions = 'INSERT INTO node_revisions(nid,vid,uid,title,body,teaser,TIMESTAMP,FORMAT) VALUES ('.$nid_ins.','.$vid_ins.','.$user_id.','.$ad_title_view.', '"<?php $block = module_invoke('block', 'block', 'VIEW', 66); print …

Member Avatar for scorpionz
0
475
Member Avatar for resmi sanker

anyone know how genetic programming works on finding duplicate records in database?

Member Avatar for James_6
0
131
Member Avatar for ss123456

i have a table employee. it has various attributes.(e_id,e_name,e_addr..) i have a data grid that displays all d values of employee..i need to now select multiple rows from the datagrid of employee such that only e_id gets inserted into another table. is there an sql or vb code that can …

Member Avatar for ChrisPadgham
0
869
Member Avatar for ananDE

Hi everyone, I am a student,quite new to C++. I am working on my thesis right now. Here is my situation, I have an algorithm for my thesis topic and I tried making an example of this in C++ and it works fine with a console application. But I am …

Member Avatar for ananDE
0
229
Member Avatar for davy_yg

Hello, I am trying to import mysql backup from the old computer to the new computer and these error appears: Pencarian SQL: -- -------------------------------------------------------- -- -- Table structure for table `nafqc_usergroups` -- CREATE TABLE IF NOT EXISTS `nafqc_usergroups` ( `id` int( 10 ) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary Key', …

Member Avatar for joshl_1995
0
138
Member Avatar for Amy_3

I am new to python. How to instantiate object from parsing a file? I got a error. File "/home/Bunny.py", line 23, in main mapgrid[i].append(Spot(myLine[j] == 'B')) TypeError: 'module' object is not callable The first line of input is the number of simulations. The next line isthe number of minutes for …

Member Avatar for Xantipius
0
280
Member Avatar for ppc493

I make datagridview export to excel, but Headcolumn don't show in excel files. **Sample** result (in Excel) 1 | mani | 213/435 | 0-892-342234-09 2 | ware | 1/67 | 053-36-49 **But i need resuult (in Excel)** ID | Name | Address | Tel. >>> Headcolumn 1 | mani | …

Member Avatar for AnnieCalvert
0
189
Member Avatar for schutzk21

So I need to write a program where the user tries to guess a magic number. The only thing that I do not know how to do is set the max. amount of guesses to 5. This is what I have so far. Can someone please show me how to …

Member Avatar for np complete
0
417
Member Avatar for vijayram

Hai everybody. if rotate =true how to disbale draggable function this is my code but rotate working fine. draggable function not disable and enable anybody plz help me. $('.planspace-image').draggable({}); //.resizable(); $('.upload_pic') .resizable({ start: function(e, ui) { }, resize: function(e, ui) { }, stop: function(e, ui) { //alert('resizing stopped'); } }); …

Member Avatar for vijayram
0
163
Member Avatar for bdl365

So i'm having troubles writing the codes for the following exercise - Write a C++ program that does the following. 1. Asks the user to enter some positive integers. 2. Reads the positive integers from the user. 3. Stops reading the positive integers once a non-positive integer is entered. 4. …

Member Avatar for bdl365
0
2K
Member Avatar for Djmann1013

I am having trouble with this code: <!DOCTYPE html> <html xmlns:fb="http://ogp.me/ns/fb#"> <body> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <fb:like href="http://www.MyWebsite.com" send="false" layout="button_count" width="200" show_faces="false" font="verdana"></fb:like> </body> </html> The …

Member Avatar for LastMitch
0
166
Member Avatar for zvjezdan.veselinovic

Hi everyone! I wanted to ask you guys a question. I was referred to this website by a friend of mine and I synced this account with my Facebook. I am new to computer programming, but I understand the beginning basics of C++ (i.e. cin, cout, void, float, vector, functions, …

Member Avatar for zvjezdan.veselinovic
0
215
Member Avatar for Peppercat101

So Ive googled this error but I cant find an explanation of why this is happening in my code.. Error: g++ -o code code.cpp code.cpp:8:17: error: too many decimal points in number code.cpp:8:43: error: too many decimal points in number code.cpp:1:1: error: expected unqualified-id before '<' token make: *** [code] …

Member Avatar for MandrewP
0
2K
Member Avatar for lulu79

Hi, i'm a newbie and get stuck with this problem for a few days. I have datatable with two column, line and duration. I want to sum the duration based on the line group. For example: LINE DURATION A1 00:05:20 A1 00:07:00 A1 00:02:10 A1 00:01:50 A2 00:02:01 A2 00:03:45 …

Member Avatar for lulu79
0
9K
Member Avatar for minnie.taylor.524

The problem I am having is in Juno Eclipse. "school.nextString" is being underlined in red to highlight a critical error. The basic purpose of this program is to ask the user a series of simple questions with if loops to determine the output given. Eclipse is handy and gives me …

Member Avatar for Taywin
0
200
Member Avatar for dmose13

So I'm just getting started in C++ and need some help. I want to right a program that inputs a number as n and then outputs digits 0-9 based on n. Also each row adds one more number until the last number is the number of digits of n. For …

Member Avatar for dmose13
0
140
Member Avatar for Albert Pinto

Hi People, Got a small issue...... And don't know exactly where the problem is. I'm trying to implement Online Manga Viewer in my site. I've tried this as a stand alone page and it works fine. What this viewer does is... There is a select box... Where I've got to …

Member Avatar for magicmarkuk
0
177
Member Avatar for anisha.silva

Hi how do i create a final variable string and send in one parameter to it public static string POISON_PILL = new string("AAA"); when i do this it gives me an error highlighting the 'new string("AAA"); ' error msg: initalizes a new instance of the system.string class to the value …

Member Avatar for Michael27
0
985
Member Avatar for kinge504

I asked my professor for help and we came to the conclusion to add void credit and void debit yet im still having compiling error. //Account.h #ifndef ACCOUNT_H #define ACCOUNT_H class Account { public: Account( double ); // constructor initializes balance /* Write a function prototype for virtual function credit …

Member Avatar for NathanOliver
0
605
Member Avatar for Bumpehh

this is a very simple RPS game and i ran into a prob. heres the code #include <iostream> // for cout/cin #include <cstdlib> // for rand/srand #include <ctime> // for time #include <cctype> // for case conversion using namespace std; char rps; char ai; char redo = 'Y'; // all …

Member Avatar for WaltP
0
122
Member Avatar for littleEuler

def main(): celsius = float(input("What is the Celsius temperature? ") fahrenheit = (9/5) * celsius + 32 print ("The temperature is ", fahrenheit, " degrees Fahrenheit.") main() error output: Syntax Error:(line 8) fahrenheit = (9/5) * celsius + 32 This makes perfect sense to me. How can i fix this …

Member Avatar for hughesadam_87
0
110
Member Avatar for on93

Write a simple program to prompt the user to key in x and n value to calculate the result for the following formula: Result = 1+2!/((x-2))-3!/((x-3))+4!/((x-4) )- … n!/((x-n)) ------------------------------------------------------------------------------------------------------------- Note: x value must be greater than n value. i need help for C++ programming class work thanks a lot

Member Avatar for np complete
0
166
Member Avatar for mandroid

Hello all, first time poster here. I've tried searching for a thread which deals with my current problem both here and in Google, but few people seem to need help with PyFluidSynth as compared to Jack, so I am starting a new thread. If anyone knows of another thread where …

0
127
Member Avatar for amitie.boo

i wanted to program that is like an musical composition !!!i mean like a musical composer with buttons where each button when pressed gives a different tumes or sounds !! can anyone do me a project on this !! plzz

Member Avatar for neogills
0
87
Member Avatar for sk8ergirl

I'm creating this in java 4 buttons and output area When the user click button 1 it will show in the output the following 564(0, 0) // 564 is id number and 0 is location in the x axis and 0 is in the y axis 564(2, 6) //using v.move …

Member Avatar for NormR1
0
356
Member Avatar for duneflyingyfz_1

Hi all, ive got a big question about conducting mysql_queries.. i have a schedule program that needs to sort through and pick the records that apply.. the date will change, and used a php date() formatted to mysql date and pick out the ones records that are active vers inactive. …

Member Avatar for duneflyingyfz_1
0
2K
Member Avatar for lifeworks

Hi I work on a 'play play server' on my pc, for lack of a real server, for this I use WampServer, I have recently updated my version. I suspect its running PHP5 - and Im used to PHP4 behaviour... Most of the pages I use forms on have the …

Member Avatar for eelias75
0
345
Member Avatar for laguardian

Hey guys, I'm trying to make this program that allows a person to set the size of an array to any value they choose. Then, the program will ask the user to input n values to be stored in the array at the corresponding index. Then the program modifies each …

Member Avatar for NormR1
0
1K
Member Avatar for muhammad.waleed.9699

i try different method to hide the "hide" div if status result is "E" i have four status : R ,A , I and E,, if status is E then show the "hide" div other vise hide it,, you people suggest me something, thanks in advance,,, code is here : …

Member Avatar for blocblue
0
888
Member Avatar for Labdabeta

Hello, I was wondering how to make the windows explorer popups that many programs use. I want the one that browses files to either open or save a file rather than requiring the user to blindly type the filename.

Member Avatar for Ancient Dragon
0
257
Member Avatar for Aviplo

Hello, Can anyone help me in this, What i'm trying to do is that i try to break my page in case if i have too much record. But what happen is when i click on 'next' the record doesn't shows because the date that i select had been cleared …

Member Avatar for ainosilva
0
200
Member Avatar for priya667

I'm a newbie here trying to figure out why my simple php code is not working inside html. Files with .php extension however works fine.The page is just blank. I modified the following line "AddType application/x-httpd-php .php" in http.conf to "AddType application/x-httpd-php .php .html" I tried adding these lines to …

Member Avatar for diafol
0
2K
Member Avatar for king03

guys can anyone help me, I want to display an amount on a textbox when I debug my program. For example I have textbox1, I want textbox1 to display the amount that I assigned to it which is 100, but I cannot make it show up in the textbox1 when …

Member Avatar for Momerath
0
80
Member Avatar for MMadhavi

I have one table as movie. In that i have one field as 'image' in which i want to store the images. In my mca project, I m trying to make admin panel. For this when administrater is going to add movie details, at that time i want to store …

Member Avatar for diafol
0
223
Member Avatar for chuyauchi

My Android preference (menu) is not opening a new activity. When I click the 'menu' button on the emulator, I can see my 'Setting' option. However, when I click the 'Setting', the setting page is not showing. There is no error and warning. Thank you for your time. I am …

0
66
Member Avatar for daniel36

Can anybody tell me another good file uploader than blueimp and plupload?

Member Avatar for diafol
0
168
Member Avatar for infogirl

Hello, i have encountered with a problem in one of methods comparing string from database to the string named pword that i initialized from textbox. Can anyone know the easiest for begginer to fix it? I would be very very greatful. SqlConnection myConnection = new SqlConnection(); myConnection.ConnectionString = "Data Source=.\\SQLEXPRESS;AttachDbFilename=D:\\Studijos\\c#\\KursinisDarbas\\BazineAplikacija\\BazineAplikacija\\DuomenuBaze.mdf;Integrated …

Member Avatar for PatSharbaugh
0
259
Member Avatar for k9huey

I want to make an online measurement converter for my company’s intranet page. I am torn about how to handle the converting and wanted some opinions. Basically the user would enter some random measurement and select what type of measurement that is and what they want it converted to. For …

Member Avatar for k9huey
0
133
Member Avatar for bustersox

I am having some difficulties getting this code to work properly. I cannot figure out how to correctly return all of my methods because I have the println listed inside the methods. So when I run my program, I get the println's , plus the return value. But I don't …

Member Avatar for JamesCherrill
0
479
Member Avatar for RozenKristal

So I have a question about using methods. Alright, let say I want to create a system of atm and bank. I create a class account that has all related attributes such as acc # and balance and blah. Then I create an ATM class that contain methods such as …

Member Avatar for RozenKristal
0
155
Member Avatar for Michael27

How to print portion of the List<int>, it contains 30 elements but i only want to print first 7 elements? List remains unchanged but is should only prints first 7 elements of the list

Member Avatar for Michael27
0
109
Member Avatar for Kunal Lakhani

I collected the data off the form and placed it in a bean class, DataBean. JRBeanCollectionDataSource constructor takes Collection as parameter, so i should convert the bean data into some kind of collection, like list, and then pass it into JRBeanCollectionDataSource and pass its instance to JasperManager.fillReport method. In iReport …

Member Avatar for Kunal Lakhani
0
225
Member Avatar for nickg21

Hey everyone, I'm using CTEs to try and get the totals of two different criteria queries that I want to group by Month depending on the associated Inquiry Date. Here is what I have right now; ;With CTE(total, InitDate) as ( SELECT count(Inquiry.ID), Inquiry.Date from Inquiry Inner Join Inquirer on …

0
82
Member Avatar for niladri.prima

Hi All, In a table (dbo.UnquotedContacts) I have few columns from where I am trying to extract few columns. But My crcern is as follows IF the field 'Date_ABC_Updated' is NOT empty AND the field 'subscribed_to_Business_XL' = 'SUB', the contact has an ACTIVE BXL subscription IF the field 'Date_ABC_Updated' is …

Member Avatar for BitBlt
0
112
Member Avatar for Techboy52

//Hey I need some help //Write a JAVA application that displays a traffic light (three circles inside a rectangle with //red, yellow, and green color) and three buttons with red, yellow and green titles. The //application should turn the appropriate light on when the appropriate button is clicked. Two //lights …

Member Avatar for JamesCherrill
0
2K
Member Avatar for london-G

Hello, I have my JFrame and I want to ve a sliding menu on the side that will not be visible until someone click on a button. I have divided my JFrame into two containers but don't know how to proceed. Something a bit similar to this: http://www.andrewsellick.com/examples/sliding-side-bar/#

Member Avatar for Majestics
0
200
Member Avatar for DelilahDemented

I'm learning as I go here, but I'm stuck at the moment. I am trying to dynamically create a datagridview and populate it from a database using SQL. I have created my columns, but I don't know how to assign the data coming out of my sql query to its …

Member Avatar for DelilahDemented
0
1K
Member Avatar for HibaPro
Member Avatar for AndreRet
0
423
Member Avatar for BlueDevil

Hello! I made a program in Dev c++ in windows that does several string functions.It works perfect in windows but when I tried to use it in Linux(ubuntu and CentOs), linux make the executable file which means it has no syntact error or something but when I try the several …

Member Avatar for deceptikon
0
212
Member Avatar for orar

#include<iostream> using namespace std; float input() { float inches; float feet; cin>>inches; cin>>feet; }; float calculate(float inches, float feet) { float cm; float meters; cm=2.54*inches; meters=feet*.3048; }; float output(float meters,float cm) { cout<<"The feet to meters="<<meters<<endl; cout<<"The inches to cm="<<cm<<endl; }; void main() { float input(); float calulate(); float output(); …

Member Avatar for np complete
0
208

The End.