Member Avatar
$sql = "SELECT doc FROM file_loc where file_id='1'"; while($results = mysql_query("$sql") or die("Invalid query: " . mysql_error()); { // set the header for the image header('Content-type: application/pdf'); header('Content-Disposition: inline; filename = "' .$results . '"'); header('Content-Transfer-Encoding: binary'); if (isset($results)) { $pdf = new FPDI(); // get the page count $pageCount …
by chandnee in Web Development ()
Member Avatar
Create Table Non_Game ( P_Id int Not_Null, Item_Num Char(4) Not Null, Description Char(30), On_Hand Decimal(4,0) Category Char(3) Price Decimal(6,2), ))
by Drew-Shawn in Databases ()
Member Avatar
My Error info isnt being clear enough for me to understand the problemIs there anything worng here so i can continue on lookng for the probelm: $sql = "INSERT INTO boards ( title, genre, creator, tagline, intro, remessage, visability, recruitment, reqsheet, reqdice, reqgroup, ppweek) VALUES ( $title, $genre, $creator, ". …
by CreatorZeus in Web Development ()
Member Avatar
THis is the reply i that get after entering the web address www.theagenda.com.ng. Index of / cgi-bin/ Please what could be the problem? And am still in my designing stage in wordpress....
by Dannywill in Web Development ()
Member Avatar
Hello ,I'm writing a GUI with C Win32 API and facing following issue. When I start the program and click the button for Opening the file dialog everything works fine. I can choose a file and all informations seem to fit properly into the ofn structure. If I choose to …
by Kersten in Software Development ()
Member Avatar
Hello, im working with Arduino UNO and im triying to get temperature and pulse from two sensors and send it to a data base. Mi problems when im triying my code is that: exit status 1 'interruptSetup' was not declared in this scope and my code are: #include <DHT.h> #include …
by Raul_4 in Software Development ()
Member Avatar
Hi: I wasn't able to find the exact solution to my problem on Daniweb, although there are several posts regarding the game of life. This situation came the closest: http://www.daniweb.com/software-development/cpp/threads/242338 My situation is a bit different because I HAVE to use a combination of functions and a class in the …
by Tom_15 in Software Development ()
Member Avatar
I need help getting my neighborcount function to work correctly, as follows neighborCount:Given two arguments that indicate the row and column of a particular cell in the matrix, this function returns the number of neighbors that have the value "true". Most positions in the grid have 8 neighbors like the …
by Tom_15 in Software Development ()
Member Avatar
Hello, I am doing an application in C# but I have a problem. I need to show the volume status of the computer. I created two pictures to show if the volume is muted or not. I found this code but I get errors: MMDeviceEnumerator devEnum = new MMDeviceEnumerator(); MMDevice …
by Jim_11 in Software Development ()
Member Avatar
Hi! There once again everyone, and thanks in advance. I had a customer with a raid-0 array on a Win7 Ultimate box. He had roughly 30 gigs of Extremely important pictures on the drive, Unfortunately he didn't recall them being there until a new OS was re-installed. That's when we …
by Miklos_1 in Hardware and Software ()
Member Avatar
![Untitled.png](/attachments/large/4/9ac3fb0f01e4139b31b0d2937bdb0d02.png "align-center") Plesae take a look at the image attached. I have created a maven project by the following steps: 1. open eclipse EE 2. file > new > pther > maven project 3. click on 'create a simple project' checkbox 4. click on 'use defualt workspace location' checkbox > …
by Link_1 in Web Development ()
Member Avatar
hi So ive deployed a small website i worked on, and before deployemnt on Amazon web services, i was of course testing everything on localhost. after seeing that things are working on localhost, i changed the localhost to the deployment link provided on AWS and things looked fine and all …
by catastrophe2 in Web Development ()
Member Avatar
I have a SQL Server bank account table which contains ... ID (Identity) Trdate (Date), Description (Varchar), Debit (Money), Credit (Money), Balance (Money) Details (Varchar) I want to list a subset of the transactions between two dates (the period of an Australian Financial year) and the query below works correctly …
by Glyn_2 in Databases ()
Member Avatar
I used below select query to select information from two tables. But it show one record. How to change this code to view all records ? select loan.loan_id, loan.customer_name, loan.total_amount, ifnull(sum(settlement.amount), 0) as 'Total Received', ((loan.total_amount) - ifnull(sum(settlement.amount), 0)) as 'Total Due' from loan left join settlement on settlement.loan_id = …
by සශික in Databases ()
Member Avatar
Hi everyone. I am makng a RISK game and I am working on a territory class here, and I got a strange message that my google searches have not shed any light on. My code is below. First, my header file: // Class represents each individual territory on the map …
by Nathan_6 in Software Development ()
Member Avatar
import java.io.*; class projj { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16,c17,c18; int c19,c20,c21,c22,c23,c24,c25,c26,c27,c28,c29,c30,c31,c32,c33,c34,c35,c36,c37,c38,c39,c40,c41; String name,n; public void game()throws IOException { System.out.println("YOU ENTERED 1.PS4 THE CHOICES ARE"); System.out.println("1.SPORTS"); System.out.println("2.RACING"); System.out.println("PLEASE ENTER YOUR CHOICE"); int ch=Integer.parseInt(br.readLine()); switch(ch) { case 1: System.out.println("\f"); System.out.println("1.CRICKET"); System.out.println("2.FOOTBALL"); System.out.println("PLEASE ENTER YOUR CHOICE "); int ch1=Integer.parseInt(br.readLine()); switch(ch1) { …
by keshav1234 in Databases ()
Member Avatar
I'm just trying to insert some more informations to mysql table. I used recently methods. But it won't help me. so if you can help me ? my code is below : Try Dim mstream1 As New System.IO.MemoryStream() Add_House.pic1.Image.Save(mstream1, System.Drawing.Imaging.ImageFormat.Jpeg) Dim arrImage1() As Byte = mstream1.GetBuffer() mstream1.Close() Dim mstream2 As …
by සශික in Software Development ()
Member Avatar
I'm currently reading a huge Python book. I've just written my first Python code (from this book). It's [CODE]import sys print(sys.platform) print(2 ** 100) x = 'spam!' print(x*8) [/CODE] It works fine and I get the results I want. The only problem I have right now is running it off …
by Tenck in Software Development ()
Member Avatar
I am trying to implement multi authentication in `laravel5.2`. I am following [this article](http://saravanan.tomrain.com/multiauth-in-laravel-5-0/) My **Auth.php** <?php return [ 'multi' => array( 'user' => array( 'driver' => 'eloquent', 'model' => 'App\User', 'table' => 'users', ), 'admin' => array( 'driver' => 'database', 'model' => 'App\Admin', 'table' => 'tbl_admin_user', ) ), 'password' …
by baig772 19 in Web Development ()
Member Avatar
Hello Everyone, I am new to c# and am trying to use Open XML to pull data from a SQL server into a spreadsheet. I followed some examples I found online but had to alter them to fit the test scenario I have set up and have run into an …
by Wyatt_1 in Software Development ()
Member Avatar
Does having 404 error pages on my site negatively affect my rankings?
by sinelogix 4 in Digital Marketing ()
Member Avatar
How to break up the string into smaller strings. I am using VB I have the following string which I want to break it up on <br/> Dim s As String "cat dog <br/> red green <br/> car box <br/> " Than I have used a split method Dim s1Temp() …
by Link_1 in Software Development ()
Member Avatar
void Halt (); void Reply (const char * num,uint8_t stat); { this is the error message for this code 7|error: 'uint8_t' has not been declared 9|error: expected unqualified-id before '{' token
by directorabbey in Software Development ()
Member Avatar
Hi All , In below code i am getting error while assigning one object with other and result is clear as both objects are different types. it is expected that RHS object should belong to same class. How to resolve this issue. error: no match for operator= in obj1 = …
by can-mohan in Software Development ()
Member Avatar
I've been working on some IG API and when I try to get the IG username I get this error I just don't see anything wrong with my code did I miss something ?? ( ! ) Notice: Undefined index: user in C:\wamp\www\folder\index.php on line 39 <?php set_time_limit(0); ini_set('default_socket_timeout', 300); …
by thatsnotmyname in Web Development ()
Member Avatar
I keep getting the following error when using certain websites: "The connection has been reset." I never see it with other websites. Does this indicate a bad internet connection, something wrong with the website, site overload, or a denial of service attack?
by MidiMagic 579 in Hardware and Software ()
Member Avatar
Hey everyone, I have been trying to send a test email before I do any further development and can't see to figure out why I am getting this error Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use …
by TheFearful in Web Development ()
Member Avatar
In the code below i see this error when i try to connect to connection string this error appears Format of the initialization string does not conform to specification starting at index 0. How can i fix it? In the code below i see this error when i try to …
by Arian_1 in Software Development ()
Member Avatar
Getting the follwoing error message. How to fix this? **Parse error: syntax error, unexpected end of file in** Actual Code: <?php session_start(); include("connection.php"); $sqlsettings = "SELECT * from admin"; $resultsettings = mysql_query($sqlsettings); $rowsettings = mysql_fetch_array($resultsettings); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title><?php echo $rowsettings['ScriptName']; ?> …
by blueguy777 in Web Development ()
Member Avatar
It's a simple script, giving me an error. I'm running it from a command line: scott$ python VerifyAboutPage.py chrome any And the error is: AttributeError: 'module' object has no attribute 'chrome' The relevant portions of the script should be: from selenium import webdriver import unittest, time, re, reporting, sys class …
by genevish -2 in Software Development ()