64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for davy_yg

Hello, I wonder where to place include in Codeigniter. for example: views/vdepan.php <?php include('includes/navigation.php'); ?> where should I place navigation.php file ?

Member Avatar for davy_yg
0
160
Member Avatar for ryantroop

/* also, read the edit */ So... after painful MySQLi intro to working with MySQL Stored procedures... I have come to the conclusion that the only good way to pass variable length binds is to use eval() Is this a poor choice? The way I am using it is: $Conn …

Member Avatar for ryantroop
0
209
Member Avatar for patk570

Hello everyone, I have a website I am working on. On this site, I have a form that when you search for just one term, say "legs", it is supposed to pull up everything that is "legs", but not "legs" with "stability ball". My form uses the search term q[] …

Member Avatar for patk570
0
411
Member Avatar for nikki05

Hi I am storing name and texts of controls (Label, Button, ComboBox, ListBox, etc.) into a dictionary. With ContainsKey, I am able to find the texts of Labels, Buttons, and RadioButtons. However, I am getting problem to find the items of ComboBox. Appreciate if you have an idea. If _dic.ContainsKey(selectedControl.Name) …

Member Avatar for nikki05
0
230
Member Avatar for amit.chaudhari.71

hi friends i want to draw graphs by feching data from database through php code . plz help me

Member Avatar for <M/>
0
198
Member Avatar for <M/>

This is a shameful question for me to ask but how do i keep the debug window open... it keeps on closing automatically rather than me closing it manually. I am using visual studios and it used to work when I just simply click (ctrl + f5). I doesn't work …

Member Avatar for <M/>
0
207
Member Avatar for <M/>

How do i create a c project properly in visual studios. They (Youtube) say to click on the C++ button and change it from .cpp to .c. But when I debug my code to see my code compiled, I get an error saying that a PDB file is missing. What …

Member Avatar for <M/>
0
130
Member Avatar for castajiz_2

Hi again, before a year ago when we were doing the graphics class at college my professor said that the coordinate system is reversed in programming that means that the Y axe is positive when facing down and the X axe is negative when facing right , however when using …

Member Avatar for lolafuertes
0
289
Member Avatar for MasterHacker110

Ok so I have this problem: A friend that does a lot of online banking wants to keep track of their activity, so they save the "information" in a .docx file every time they are done. Now recently they have so many files that it is a hassle to search …

Member Avatar for MasterHacker110
0
179
Member Avatar for lupacarjie

Hello! I am creating an assembly program that accepts a single character and displays the alphabet in reverse. The requirements are (1) The input character should be displayed (2) The alphabet should be displayed vertically and (3) Only the letter 'Z' should be accepted as input. I have managed to …

Member Avatar for lupacarjie
0
9K
Member Avatar for muyiwaj

i'm a programming beginner, and wanted an information for developing a soft from scratch. Pls. do assist me. Thanks

-1
75
Member Avatar for MasterHacker110

I have a simple program that is suppose to read character by character from a file, then if a counter reached a certain limit, it will print those characters in hex format and continue reading the next character from file: Here is my code, but it isnt working correctly, instead …

Member Avatar for vajeerpatel
0
153
Member Avatar for somjit{}

while trying to compare times between two different ways of determing whether a number is odd/even without using modulo, i thought of using `long long int`s which my codeblocks compiler aint supports . and so i installed pelles c.( supports c99/c11 which inturn supports long long stuff.. ) and im …

Member Avatar for somjit{}
0
2K
Member Avatar for laavanya

what is the logic to count number of objects created implicitly and explicitly inside the same program..Please help.

Member Avatar for laavanya
0
2K
Member Avatar for Dani

I'm attempting to use Gogole Analytics event tracking to track browser viewport size. I'm using event tracking already in a bunch of other user-initiated places with jQuery and everthing works fine. This doesn't seem to be working though: I have this at the bottom of my html page: <script type="text/javascript"> …

Member Avatar for Dani
0
455
Member Avatar for bob.henry.1884

//****************************// //*****DO NOT TOUCH THESE*****// //****************************// import java.util.*; import java.io.*; public class NumberGuessingGame{ public static int num; //variable to hold randomly generated number public static int guess; //variable to hold user inputs public static String ans; //variable to hold user input for y/n public static int guessnumber = 7; //variable …

Member Avatar for bob.henry.1884
0
252
Member Avatar for GlenRogers

I have a screip to resize an image, save it to a dir and store the path in mysql. This works ok. The images are gotten from a suppliers website where the filename of each is the product code. The variable $remote_file in my code looks like this ../images/products/wsx339.jpg. How …

Member Avatar for GlenRogers
0
263
Member Avatar for amvx86

Hey what's up everyone? I have a script here that works when i execute it from command line, and when I double-click it. Now, there is something interesting going on here. 1) When the program is executed by process.start it does not load (even when called from cmd.exe /c ...) …

0
198
Member Avatar for GlenRogers

I have a page with a menu of categories and subcategories of products. Categories have a class 'category' and subcategories have a class 'subcategory'. When either is clicked some AJAX sends the category to some php to compile the html which the AJAX then sends back to the page to …

Member Avatar for GlenRogers
0
271
Member Avatar for aarmstrong

I'm trying to create a simple menu and when customers click what they want, I want it to calculate and give a final price and display it. <!DOCTYPE html> <html> <head> <script language="javascript" type="text/javascript"> (document).ready(function() { $('#calculateTotal').click(function() { var singleTopping = 1.20, var doubleTopping = 2.20; } } </script> <title>Design …

Member Avatar for <M/>
0
914
Member Avatar for leghorn

Hi I have a linux server with mysql installed.There is some data in mysql tables. Also.I have a .csv file (not from the aforementioned database) I need to compare the data in the database nad the .csv and print out the difference. I tried writing a shell script for that …

Member Avatar for leghorn
0
285
Member Avatar for Ahmed.C

I was just wondering if there is a possible way to get the last 4 characters from a label or textbox. If someone could please provide me with an example that would be great! Thanks..

Member Avatar for ddanbe
0
142
Member Avatar for BlackJax96

Hi, I want to convert a float value to 32bit hex and the code I have right now returns 64bit hex. The float is stored in a string called value. [CODE] result = Convert.ToDouble(value); long lVal = BitConverter.DoubleToInt64Bits(result); string hex = lVal.ToString("X"); OutputBox.Text += ("\nConverted the " + value.GetType().Name + …

Member Avatar for Ketsuekiame
0
3K
Member Avatar for aVar++

I am going through challanges in python and cant see why i'm not getting the correct answer... The challange is 'Find the sum of all the multiples of 3 or 5 below 1000.' Here is my code: #!/usr/local/bin/python2.7 a = 0 b = 0 eA = [] eA2 = [] …

Member Avatar for aVar++
0
133
Member Avatar for misd_bunder

I have developed a page which contains some controls like textboxes, dropdown,etc. I had created the **datatable** using the **sqldataadapter** and that works fine by retriving the table using the select command. I want to place the data in a **gridview** and it also works. Now I want to populate …

Member Avatar for misd_bunder
0
187
Member Avatar for Bhavya_1

Hi. I want to learn penetration testing in python.but i am entirely clueless where to start. I have read about some famous tools like SCAPY and pycap.So,the thing is that i want to develop my own tools to comprimise a network.Are there any good tutorials on sapy or any other …

Member Avatar for 1baga
0
104
Member Avatar for EriCartman13

How do you rest your variable everytime your execute the program. [code]for x in range(1,100): running = True while running: guess = int(raw_input("Enter an integer:")) if guess == x: print "Nice" running = False if guess < x: print "Higher" running = True if guess > x: print "Lower" running …

Member Avatar for bumsfeld
-1
4K
Member Avatar for devourer17

fstream f; char ch; int i=0; string word,word2[200]; f.open("op3_sort.txt",ios::in|ios::out); if(!f) cout<<"\nUnable To Open File!\n"; else { cout<<"\nLet's View D Content!\n"; while(!f.eof()) { getline(f,word,'\t'); word2[i]=word; i++; cout<<word2[i]; } } cout<<"\nShowing Data Now\n"; for(int a=0; a<i; a++) { cout<<endl; cout<<word2[a]; }

Member Avatar for devourer17
-1
151
Member Avatar for dilita.mido

Draw an inheritance hierarchy for classes Quadrilateral, TRapezoid, Parallelogram, Rectangle and Square. Use Quadrilateral as the base class of the hierarchy. Make the hierarchy as deep as possible.

Member Avatar for james.lu.75491856
0
184
Member Avatar for lewashby

Any idea why this is happening? garrett@bedroom ~ $ mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Member Avatar for lewashby
0
226
Member Avatar for billkas

Hello everyone, new user here and not a frequent user of C so please don't be harsh at me :P What I'm trying to do is read some data from a txt file, like these: > XX10X11110100X0011111XX1011101X101111XX1X1X1111X11X110111110XX11,000 > 010101100XX1110000110X00110111100010XX001101101X1011X10XX0X0XX01,001 and copy them to 2 string arrays. The first array's first …

Member Avatar for deceptikon
0
362
Member Avatar for hemanshurpatel

Hi I have a mysql table in which 3 columns are of main interest. I want to final output like, if two columns matches(of different rows) then third columns should be sum of two columns. Example column1 column2 column3 abc hiren 5 bcd host 10 cde ketan 13 abc hiren …

Member Avatar for hemanshurpatel
0
134
Member Avatar for patk570

Hey everyone, I have an array of checkboxes that hold a value from 1-30, and when I first update the database it stores these values in a comma seperated list like 1,8,9,22 in the MYSQL database. Now my question is, can I when I go to the edit page to …

Member Avatar for patk570
0
272
Member Avatar for james.lu.75491856

I'm creating my own handler, but what kind of object is request? I can just have the documentation for it and look at that, but I don't know where to.

Member Avatar for james.lu.75491856
0
129
Member Avatar for PriteshP23

I would like to get Type, Id and Height values in database table. It is not working. There is no error message. Objective is to get RESPECTIVE "Type" from Catalaog which has same Reference from Installed. Well, I have 850 Mb XML file and i just would like to present …

Member Avatar for PriteshP23
0
273
Member Avatar for murali2489

Hi All, In MY GUI app, inside JFrame, i need to put two rows 8 column components first and then below i need to put one button in the center . I created one Jpanel having 2*8 grid layout and placed the components for two rows there and have put …

Member Avatar for murali2489
0
257
Member Avatar for themaj

My current VB.net project involves a 2003 Access db and I have now upgraded one of my machines to Access 2007. Before I upgrade the other I'm wondering whether there are any significant issues with my present VB.NET code that might render it 'broken'. Are there any connection issues I …

Member Avatar for Begginnerdev
0
256
Member Avatar for Ahmed.C

Hi. So i was just wondering if there is a way to get the filepath only when a user selects a file using an openfiledialog. E.g. Rather than C:\Test.txt it should be C:\ Really would appreciate the help

Member Avatar for Ahmed.C
0
2K
Member Avatar for dean.ong.14

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\registration\r­egistration.php on line 66 i already tried mysqli_error() and does not fix this problem <html> <head> <title>Registration Form</title> </head> <body> <form method='post' action='registration.php'> <table width='400' border='5' align='center'> <tr> <td><h1>Registration Form</h1></td> </tr> <tr> <td>User Name:</td> <td><input type='text' name='name'/></td> </tr> <tr> …

Member Avatar for dean.ong.14
0
1K
Member Avatar for kal_crazy

I can not get a sum from a function and return to main to check whether the sum is greater than the money added in and input more money. int vending::MakeSelection(int ItemPrice[], int NumItems[], int sum){ int response; do{ cout << "Item:"; cin >> response; if(response == 1){ for(int i …

Member Avatar for kal_crazy
0
445
Member Avatar for somjit{}

for a basic ascii checker code of less than 10 lines , i want to print out stuff immediately , instead of after a newline. i understand that stdout is a bufferedstream , and so it will by default wait for a '\n'. i was looking at [this](http://stackoverflow.com/questions/1716296/why-does-printf-not-flush-after-the-call-unless-a-newline-is-in-the-format-strin) page for …

Member Avatar for rubberman
0
2K
Member Avatar for nmakes

I've got a problem understanding inheritance. #include <iostream.h> class A { public: int x; }; class S1: public A { public: int x; }; class S2: public S1 { public: int x; }; int main() { S2 obj; cout << obj.x; return 0; } In the code above, I basically …

Member Avatar for Ancient Dragon
0
227
Member Avatar for Galbatorix

Hi, I have ben having problems making an instance of sqldatareader. I keep getting a squigly line under my datareader object with a message saying that unreachable code detected. Here is my code: using System; using System.Windows.Forms; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Albergo.Classes { …

Member Avatar for Galbatorix
0
152
Member Avatar for aVar++

I have two files this is the file included: <?php if (@mysql_connect("localhost","****", "**************") || @mysql_select_db("a_database")) { echo "Connected"; } else { die("Not connected."); } ?> Then this is the main file: <?php require "connect.inc.php"; $query = "SELECT `food`, `calories` FROM `food` ORDER BY `id`"; if ($query_run = mysql_query($query)) { echo …

Member Avatar for cereal
0
195
Member Avatar for nerden

I am trying to write an application to do various things, one of the elements is going to require a service, The service is called myService.vb and is part of the main solution containing frmMenu which has a button (btnRegister). Is it possible to programaticaly register this service? Alternative question: …

Member Avatar for nerden
0
346
Member Avatar for yuvjeeth

Hi Everyone, I would like to know if there is any way to change the color of a part of text in rich textbox when the user types it automatically like the way in vb.net IDE (Classes have blue etc.). Thanks in advance, Yuvjeeth

Member Avatar for ddanbe
0
503
Member Avatar for lewashby

(Linux System) Everytime I try to log into MySQL or create a database I get "Access denied for user@localhost". I just recently installed mysql using apt-get install and I don't recal creating a password or anything for it when I installed it. Any ideas?

Member Avatar for 1stDAN
0
172
Member Avatar for andre.gartner.56

I'm having quite a few errors on this one. This is my first attempt on "free" coding outside tutorials. I do believe it only has to do with bad use of brackets from my side, but i'm a beginner. Line 14 - Illegal start of expression Line 18 - Class, …

Member Avatar for JamesCherrill
0
159
Member Avatar for Fiorentino01^

Hi, I recently made some short videos with my Canon digital camera.The reason for it is to embed one or more in my web site. I searched on the Internet but I did not find much help, a lot of the posts suggest to download some software.I don't think is …

Member Avatar for Fiorentino01^
0
209
Member Avatar for monching

Hello guys, I have my problem in saving date to mysql. Dim conn As MySqlConnection Dim myCommand As New MySqlCommand Dim commandB As MySqlCommandBuilder Dim data As MySqlDataAdapter Dim query As String = "SELECT * FROM events e;" Dim myconnstring As String Dim comm As String Dim vers As String …

Member Avatar for shashikumar s g
0
3K

The End.