199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nelliott10

I am trying to export sql data into a pdf file, can this be done? Hope someone can help, cheers

Member Avatar for damnpoet
0
91
Member Avatar for kalyan469

#1064 - 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 ''1,1,'','',1,1,'',1,1,1,1,1,'',1,1,1,1,'','','','','','','','','','','','','',''' at line 1 <?php include '../_includes/connection.php'; $foodtype=$_REQUEST['foodtype']; $ffoodtype=$_REQUEST['ffoodtype']; $water=$_REQUEST['water']; $tea=$_REQUEST['tea']; $ftea=$_REQUEST['ftea']; $binge=$_REQUEST['binge']; $junk=$_REQUEST['junk']; $fruits=$_REQUEST['fruits']; $ffruits=$_REQUEST['ffruits']; $oil1=$_REQUEST['oil1']; $oil2=$_REQUEST['oil2']; $smoke=$_REQUEST['smoke']; $fsmoke=$_REQUEST['fsmoke']; $alcohol=$_REQUEST['alcohol']; $falcohol=$_REQUEST['falcohol']; $tobacco=$_REQUEST['tobacco']; …

Member Avatar for FlashCreations
0
202
Member Avatar for tig2810

Hi all I'm having some trouble with EF and SQL 2008 default values. Firstly, I have a column called 'CreatedDate' and the default value in SQL Server is getdate(). If I add a field in SQL server this works fine. I also have a column called Guid and the default …

Member Avatar for tig2810
0
200
Member Avatar for itisnot_me

ok so i was starting to make a query and thought that there could be a better way of making it. what i am trying to do it only print entries that does not have there value as null. ex: phone IS NOT NULL and street IS NOT NULL i …

Member Avatar for FlashCreations
0
101
Member Avatar for rwill357

I was wondering if there were away to repeat the same test multiple times and average the time. The code works fine [CODE] #include <cstdlib> #include <ctime> #include <iostream> using namespace std; void PrintArray(int* array, int n); void QuickSort(int* array, int start, int end); int partition(int* array, int pivot, int …

Member Avatar for niknailer
0
132
Member Avatar for ma.ali786

how can i restrict the web user to save my web site into their local machine i want to restrict to save it help me

Member Avatar for apegram
0
152
Member Avatar for jasystweb

I would like to understand how to retrieve an Image stored in a mySQL database as a longblob. Once retrieved, assign that image asp.net image control. Heres the code that uploads the pic to the MYSQL database [CODE] If (Not myups.HasFile) Then Return -1 End If 'FileName.PostedFile.InputStream() Try Dim fs …

Member Avatar for jasystweb
0
280
Member Avatar for bob10

Hi guys, I have a problem with arranging my components in a GridBagLayout. The frame is 600x600. Inside it, there are two pairs of (Label,TextField). They are not where I want them to be. What I would like is to have them all at the top of the frame, one …

Member Avatar for bob10
0
150
Member Avatar for bd338

Hello everyone! I, once again need your help :). I've expanded my hanging boot loader, to a hello world boot loader. Or, at least that's what it's supposed to be, when I get it running. This is my Assembly code: [CODE] [bits 16] [org 0x7c00] message db "Hello, world!", 0 …

Member Avatar for gerard4143
0
216
Member Avatar for correaj

If anyone could give me a pointer here I would be grateful. I am making a public function that takes to container objects called bags and a file name in their arguments. I'm trying to create a loop that would extract the first line of doubles in a file and …

Member Avatar for correaj
0
876
Member Avatar for hey joe
Member Avatar for azegurb

hi all i need to learn what does this mean (this style of writing) may be is there another variant to write the code [CODE]<? exit;} if($_GET['step'] == "2"){ $name_db=$_POST['name_db']; $host_db=$_POST['host_db']; $user_db=$_POST['user_db']; $password_db=$_POST['password_db']; $connect=mysql_connect($host_db,$user_db,$password_db); mysql_query("create database $name_db"); $connect=mysql_pconnect($host_db,$user_db,$password_db); mysql_select_db($name_db,$connect); $sql1 = "create table `config` ( `id` int(1) NOT NULL default …

Member Avatar for azegurb
0
89
Member Avatar for hondros

Hello everyone, my latest project is this: 1) Ask user to input a function 2) Plot said function Well, I figured out how to strip the function into two parts, input a number, and evaluate the function. That all works fine outside of a defined function I created. The trouble …

Member Avatar for hondros
0
115
Member Avatar for achiman

Please can anyone tell me if it is possible to write a program that allow multi client interaction with a server. I am new to Java so any help will be appreciated. Thanks

Member Avatar for achiman
0
259
Member Avatar for littleonetwo

Hi, Im in bit of a jam here and I can't seem to figure this out. Ive been looking for a little over a few hours for an answer to this but I can't seem to find a straight answer. Well Im in my advanced portion of my class and …

Member Avatar for littleonetwo
0
194
Member Avatar for tustind

I have a table in which each entry has a view counter. I would like to create a list that displays only entries that are within 100 views of a 1,000 view threshold. But, I want to also show each entry at any interval of 1,000 views. I.E., I would …

Member Avatar for edwinhermann
0
91
Member Avatar for turbodave

I have searched, promise! great site btw. I work for a small video production company and we often post work in progress to our website for clients to check out and comment on. I do this by encoding a video, uploading to our server and creating a static page, embedding …

Member Avatar for OS_dev
0
173
Member Avatar for logicmonster

I finished this last night and it almost works perfectly aside from one minor thing that I can't quite figure out. [CODE] #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main() { int playerscore, computerscore; int turnscore; int dice; char input = 0; bool turnover, gameover; srand((unsigned)time(0)); playerscore …

Member Avatar for logicmonster
0
116
Member Avatar for miles.85

Here a simple code which I have to add on project: [code] import java.io.*; import java.util.Scanner; public class Ana { static public void main(String[] args) { try{ File gecicidosya=new File("D:\\B.txt"); File sdosya=new File("D:\\A.txt"); Scanner oku = new Scanner(sdosya); BufferedWriter yaz=new BufferedWriter(new FileWriter(gecicidosya)); while(oku.hasNextInt()) { System.out.println("while started"); oku.nextInt(); System.out.println("file readed"); } …

Member Avatar for miles.85
0
286
Member Avatar for rjani1

Dear all, I am working on the code below: [CODE] int cookTime(int time) { int second, minute; for (minute = time; minute > -1; minute--) { for (second = 59; second > -1; second--) { sleep(1); printf ("%i", minute); printf (" : %i\n", second); } } } [/CODE] Now this …

Member Avatar for rjani1
0
1K
Member Avatar for D4n1sD

Hello, I got a problem while making a new program. I am trying to make an interactive menu from which people can choose the type of the table they want. So the source (I won't release all of it just the part I got the problem) [CODE] box[20][75]={ "__________________________________________________________________________", "| …

Member Avatar for abhimanipal
0
90
Member Avatar for wilsonz91

Hi, If I were to write a program as follow: [CODE]if (x>90) cout<<"Excellent"<<endl; else if (x>80) cout<<"good"<<endl; else if (x>50) cout<<"average"<<endl; else cout<<"bad"<<endl;[/CODE] And i want to convert it to using switch case, how should i do it? I know how to use switch for constants like 1,2 and characters …

Member Avatar for abhimanipal
0
148
Member Avatar for Tango2010

Hi all, Im trying to use a variable as a path in C. For instance, the user enters a directory and this is used with the '*.*' notation attached so the program loops all files in the directory. I've got the PHP part of this code working in a separate …

Member Avatar for Salem
0
209
Member Avatar for Purnima12

[CODE]import time import calendar # time tuple/list index YEAR = 0 MONTH = 1 DAY = 2 WEEKDAY = 6 # weekdays MON=0 TUE=1 WED=2 THU=3 FRI=4 SAT=5 SUN=6 # months JAN=1 FEB=2 MAR=3 APR=4 MAY=5 JUN=6 JUL=7 AUG=8 SEP=9 OCT=10 NOV=11 DEC=12 HAVE_30_DAYS = (APR,JUN,SEP,NOV) HAVE_31_DAYS = (JAN,MAR,MAY,JUL,AUG,OCT,DEC) HAVE_28_DAYS …

Member Avatar for vegaseat
0
1K
Member Avatar for roll_in_k

Hi everyone.. Suppose i have a function : [B]void foo(int ind,float **ptr1,float **ptr2[/B]) that allocates memory using malloc .. - double pointers are much more in reality- I want to use this pointers in other functions too, but when i call them(functions) in main() .. memory leak message appears .. …

Member Avatar for roll_in_k
0
350
Member Avatar for WargRider

Hello everyone, I have an issue, I am making a website at the moment using multiple divs as usual, but there is a probably with two of my divs. Events and News, event is supposed on the left side of the container on EVERY page of the website, which I …

Member Avatar for WargRider
0
143
Member Avatar for Talguy

Does sqlite contain a function that would look at every row in a column and find the ones contain a string I supply it with. I'm trying to make a dynamic database search that would query retrieve rows from the database every time I type a new letter into my …

Member Avatar for Talguy
0
67
Member Avatar for Excizted

Hi. I have some, probably, very basic questions. :D I'm making an engine, which will be script driven. But I'm concerned with the performance of plain text, even if it was loaded to the memory. I want the scripts to be executable very fast, since there would be a lot …

Member Avatar for Dave Sinkula
0
125
Member Avatar for niro_fernando

plz i want to know information about class libraries in C C++ Java .i want to know about History,how they work , etc

Member Avatar for niro_fernando
0
96
Member Avatar for sexyzebra19

I've been struggling over this for hours, and just can't seem to figure out a formula for it. I'm trying to append below, (attach underneath) one matrix to the other. So for example, for Matrix A: 1 2 3 4 5 6 and Matrix B: 7 8 9 A.Append(B) becomes: …

Member Avatar for sexyzebra19
0
95
Member Avatar for kangarooblood

tried to make this encryption program but it doesn't work, [B]I know[/B] I must have done something wrong, but I don't know how to correct it. A more effective solution to my "[I]if dWord is higher than 118[/I]" would be nice, thx for help:) [COLOR="Red"] here's the code![/COLOR] [CODE=c++] #include …

Member Avatar for jonsca
0
175
Member Avatar for enbeeone3

I want to rewrite a section to subdomain. in joomla "http://website.com/section/article.html" to "http://section.website.com/article.html" any tips??

Member Avatar for neltek
0
117
Member Avatar for Wraithmanilian

I am trying to learn a little about ajax and prototype.js. Here's what I have so far: [B]boardtest.php[/B] [CODE] <html> <head> <title>AJAX Test with new javascript</title> <script src="scripts/prototype.js" type="text/javascript"></script> <script src="scripts/ajax.js" type="text/javascript"></script> </head> <body> <div id="products">(...locaing inventory...)</div> </body> </html> [/CODE] [B]ajax.php[/B] [CODE] <?php $company = $_GET['company']; $limit = $_GET['limit']; $line …

Member Avatar for Troy III
0
234
Member Avatar for rotana
Member Avatar for tqmd1

Numbers Only Textbox Dear Programmers I want to make a routine named “NumberOnly” [CODE]Private Sub TextBox4_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox4.KeyPress ‘Here I want to call the function as Numbersonly End sub[/CODE] All textboxes must accept numbers data on which I call this routine Supose I …

Member Avatar for TomW
0
179
Member Avatar for axxouk

imaginary language into java. I have everything down except for the symbol table. I am currently making ERD diagram for a library . The entities are below: Entity Attributes Member memId, memName, memAddress, memMaxbooks Book isbn, bName, datePublished, pubId*, ageLower ageUpper, value Copy cId, isbn*, dateAcquired, dateDestroyed Loan memId*, memId*, …

Member Avatar for al3amer
0
644
Member Avatar for EPhantom

So This is my fourth semester in college and I thought I was going to get into electrical engineering, but I've been having problems with my physics class (again). But this semester Im also taking CPS180, a basic computer programming class based off of Java. I find it very fun, …

Member Avatar for jwenting
0
158
Member Avatar for devstarter
Member Avatar for jwenting
0
53
Member Avatar for kashy!

Hi friendz, I completed a project in VB6 recently, its a database handling project, Problem is, I have created a SETUP with all its required files via PDW wizard, when I run that setup just before completing the setup there came a message that "System files are outdated" so I …

Member Avatar for kashy!
0
313
Member Avatar for bharatk

Hello I am trying to use Visual Tkinter but it's giving an "Invalid procedure call" error each time I try to place something on the form and the program closes. Screenshot of what I'm getting: [url]http://i48.tinypic.com/10zy5br.jpg[/url] I'm not even able to add a simple button to the form & when …

Member Avatar for macroasm
0
398
Member Avatar for geetajlo
Member Avatar for kvprajapati
0
8K
Member Avatar for dhavalcoholic

Hellow friends! I am new to ASP.net. I am developing my college major project in Asp.net 2008. How should I use Ajax controls in my web project? I added the ASP.NET Ajax Library 0911 Beta to my VWD. The controls are visible, but they dont work properly on runtime. Controls …

Member Avatar for boonfoo
0
176
Member Avatar for c_rob

I am Unable to customize a menu bar in the master page, so that it is at the middle like in [URL="http://www.uinsureme.com/content/quote-group.php."]http://www.uinsureme.com/content/quote-group.php.[/URL] But when i customized a drop down menu bar and trying to align, i am unable to figure out how to do it such that it appears as …

Member Avatar for c_rob
0
587
Member Avatar for n_vcplus

Hello All, I've been through this article and found it very helpful {http://msdn.microsoft.com/en-us/library/bb250489(VS.85).aspx}. I have a 'static' callback method in my BHO dll which is called whenever 'some' event on the computer happens. I need to call a javascript method on all open browser instances when that happens (or do …

0
113
Member Avatar for cableguy31

I'm writing a shell script that can take zero to 2 user arguments. I have an if statement to check to see if any arguments were entered and then I have a case to enter the arguments into the correct variables. This all works great. Now, I want to add …

Member Avatar for nvivek
0
165
Member Avatar for HBK_100

I am trying to read input form the user and then print them to a file but the compiler is giving me some error about invalid pointer at the fprintf statements [code]void addrecord(void) { struct custinfo info; FILE *customer; printf("\n\n\t\t\t PLEASE ENTER THE CUSTOMER INFORMATION BELOW"); printf("\n\n\t\t\t REGSISRTATION NUMBER"); scanf("%d",&info.regis); …

Member Avatar for WaltP
0
118
Member Avatar for azegurb

hi al PHP masters does anyone can show bugs in PHP code and explanation please it news publishing script index.php [CODE]<?php require_once("config.php"); require_once("include.php"); require_once("template_index.php"); header("Content-Type: text/html; charset=utf-8"); $dir = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; if (!strpos($dir,"?") === false) $dir = substr($dir,0,strpos($dir,"?")); $dir = substr($dir,0,strrpos($dir,"/"))."/"; if ($c){ $c = substr($_SERVER['REQUEST_URI'],strpos($_SERVER['REQUEST_URI'],"index.php?c=")+12); $c2 = $c; $c2 = …

Member Avatar for azegurb
0
231
Member Avatar for kotkata

[code] //this game is played with a six sided die, on each player's turn he may roll until he gets a 1 from the die, at which point, all points accumulated to that point are wiped, he may hold and add the accumulation to his score at any time. #include<fstream> …

Member Avatar for WaltP
0
284
Member Avatar for foco

I've been able to open text files, read them and write to them. However, I always have to specify the name of the file before I compile. IE: ofstream myfile ("example.txt"); I've tried to declare a string, and then use that where the name of the file would nomally be, …

Member Avatar for WaltP
0
105
Member Avatar for Stack Overflow

Greetings, String parsing isn't always an easy task. Especially in cases where you need to split a single string into a great multitude, but also accounting for maximum performance. The following code presented does this task simply. Using precise allocation techniques perform greatly when writing an algorithm to precision.

Member Avatar for Ancient Dragon
0
2K

The End.