64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for mpc123

Hi Im trying to get mysql_query result with foreach set up and i am just planning what i am going to do but I am stuck with adding foreach into my code so far. Basically F field has several different options which are duplicated lots of times, so i need …

Member Avatar for mpc123
0
264
Member Avatar for maxpaine69

Hi all, so the main problem i have is this, i hidded my menu from the non logged people, when a pesons logs in the menu must show, but it isnt happen, i know the code work becaus i tested it and the menu apears but when in the login …

Member Avatar for annaharris
0
138
Member Avatar for cool_zephyr

how do I put hexadecimal values into a byte array?? I did the following private byte[] buffer=new byte[] { (byte)0xC8, 00, 0x09, 0x4A, 32, 0x4D, 45, 76, 33, 0x2E, 30, 32, 00, 05, 00, 00 }; but when i print them using System.out.print(...), the output is -56 0 9 74 …

Member Avatar for JamesCherrill
0
401
Member Avatar for Adi92

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { DefaultListModel list = (DefaultListModel) jList1.getModel(); String sql = "Select * from salesorder"; try { Class.forName("com.mysql.jdbc.Driver"); Connection con = (Connection) DriverManager.getConnection("jdbc:mysql://localhost/userauthentication", "root", ""); Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery(sql); while (rs.next()) { Integer id = rs.getInt("id"); list.addElement(id); } jList1.setModel(list); } catch (Exception e) { …

Member Avatar for JamesCherrill
0
244
Member Avatar for moomal.razak

I have to make a database system that is purely on SQL Server. It's about a diagnostic lab. It should contain at least 40,000 distinct patient records. I have a table named "Patient" which contains an auto-generated ID, Name, DOB, Age and Phone number. Our teacher provided us with a …

Member Avatar for pritaeas
0
366
Member Avatar for eburlea

Hello. I have created a new Zend project, created a new model class to get some data from the database. If the environment is set to 'development', the data from the database are displayed properly in the browser, but after setting the environment to 'production', the following error appears: **An …

Member Avatar for eburlea
0
647
Member Avatar for bops

Howdy, I'm a relatively experienced PHP developer looking to start building websites in Wordpress. I have previously built my own simple theme consisting of an index page that contains a bunch of posts and a template that is used for single posts with comments etc. I wouldn't say I'm very …

Member Avatar for bops
0
286
Member Avatar for kirtee2209

Hello. Is there any way that a tester, who does not have visual studio installed on his/her machine, can determine the .net framework version of an application he/she is testing? Thanks for your help

Member Avatar for kirtee2209
0
419
Member Avatar for ronnelayson

Please help me with this code. when i tried to run it, it doesn't continue to this part "printf("\n\n Money: ");" but when i tried to change the data type of money to integer it does continue, but i need a float data type. please help, thank you. #include<stdio.h> #include<conio.h> …

Member Avatar for ronnelayson
0
110
Member Avatar for dhani09

I'm retrieving products from my database and listing them in a while loop. Like this <?php while($row = mysql_fetch_row($result)){ echo '<div class="product_info">'; echo '<div class="category_product_title"><a href="category-page.php">Product</a>'; echo '</div>'; echo '<div class="category_product_number">#'.$row[0].'('.$row[1].')'.'</div>';//prints id and name echo '<div class="category_product_description">'.$row[2].'</div>';//prints description echo '<div class="category_product_price">'.$row[4].'TL</div>';//prints price echo '<div class="category_details"><a href="productpage2.php">DETAILS</a></div>';//The link to list the …

Member Avatar for dhani09
0
160
Member Avatar for garyjohnson

Hello, I have a php script which detects if an image is vericle or horizontal. Then it resizes it to my certian specifications. An issue is I want the script to resize the image and then create a thumbnail image as well. The script works when resizing an image but …

Member Avatar for garyjohnson
0
138
Member Avatar for nouth

with terminal is there a way for me to get a list of names that are already taken? like for things like variables and filenames `import` so I can't accidentally name something that will make a bug

Member Avatar for chriswelborn
1
631
Member Avatar for redshanks

I wrote this matlab code: [CODE] function [ n ] = SumTest( a, b ) n = a + b; end [/CODE] and deployed with MATLAB Builder NE. That create a class named MatLabTest with a method named SumTest. When I try to create a MatLabTest instance: [CODE] MatLabTest mt …

Member Avatar for shahebazqz
0
120
Member Avatar for cnet1989

I'm a computer science major and I'm taking an intro to C++ programming course. I have to write a program that reads in the data from a .txt file and echoprint it, and also print the data again but with every fifth word with 10 underscores. I was able to …

Member Avatar for mike_2000_17
-1
620
Member Avatar for simplypixie

As usual I am having a love hate relationship with jQuery and Ajax :) I have a PHP file that uploads and resizes and image and stores the data in the database, which on its own works fine. I am now trying to do this through a jquery modal/dialog box …

Member Avatar for simplypixie
0
333
Member Avatar for bfitzgerald

Hi Guys I'm working on a little log in syetms for my website, hwoever have hit a little snag. I'm using cookies to track which users are logged in. I'm trying to make some pages restricted to vistors that have logged in only, so I decided to use `if($_COOKIE["loggedIn"] == …

Member Avatar for bops
0
253
Member Avatar for joshl_1995

Hello Community, I have setup a [donation](http://randoma.co/randonate.php) system on my website and i was wondering what would be a good gift in return for donating i was thinking of doing like a sponsor thing so if someone donates a certain ammount i will sponsor them by putting an ad on …

Member Avatar for joshl_1995
0
283
Member Avatar for SA_PlaYeR
Member Avatar for riahc3

Hello Since I can't get something to work, as a temp fix, Im going to do something else but I need this to only happen if it is a Webkit based browser (Safari, Chrome, Android, etc...). How can I detect this? Thank you

Member Avatar for riahc3
0
256
Member Avatar for mrvijayakumar

Hi all, Currently am developing a wordpress blog to download free resouces. I need a pure PHP script that allow useres to download files after liking my facebook page/follow my twitter page. Thanks in advance...

Member Avatar for mrvijayakumar
0
100
Member Avatar for OsaMasw

hey guys how are you, I want to create a function ( or more than function ) to show most uploaded users in the site, so I've created simpple code to test this and its worked <?php $sql = "SELECT username FROM users"; $run = mysql_query($sql); if (mysql_num_rows($run) > 0 …

Member Avatar for OsaMasw
-1
174
Member Avatar for yuugib

Hey guys, I have been reading the forum for a while, but I couldn't find anything that could help to figure out my current assignment. Its a very simple program, but somehow just doesn't work for me. I'm a beginner and I hope that somebody can explain what am I …

Member Avatar for meggy12
0
332
Member Avatar for davidjennings

Hi Good evening all I am trying to capture the below multi dimensional array using either POST or GET. the data is passed from a form and is displayed in the array format using print_r(GET); The packagecount = 2 indicates the mumber of packages and also corresponds to 1 and …

Member Avatar for paulkd
0
228
Member Avatar for AARTI SHRIVAS

<?php //global $wpdb; /* Plugin Name:new plugin Description: A simple hello world wordpress plugin Version: 1.0 Author: arti shrivas Author URI: http://yourdomain.com License: GPL */ /* This calls hello_world() function when wordpress initializes.*/ //Note that the hello_world doesnt have brackets. add_action('init','new_plugin'); function new_plugin() { //echo "Hello World"; global $wpdb; $table_name …

Member Avatar for AARTI SHRIVAS
0
288
Member Avatar for taekiewzz

I want to filter my datagrid view in my winform with a date range. I have 2 label with StartingDate(lblStart) and EndingDate(lblEnd) which is called from the datepicker on another form. Filter = "(DATE >= '" + Convert.ToDateTime(lblStart.Text).ToString("dd/MM/yyyy") + "' and DATE <= '" + Convert.ToDateTime(lblEnd.Text).ToString("dd/MM/yyyy") + "')"; And this …

Member Avatar for FenrirMX
0
3K
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to set a multiple level subdomain? eg. sub.sub.domain.com FYI: my web host is with GoDaddy.

Member Avatar for joshl_1995
0
259
Member Avatar for bfitzgerald

Hi Guys I'm trying to create a page which uses session data to find a user in a database and then sends the events that this user has signed up to. I'm a bit of a newbie and have got very confused with where I am at. I am using …

Member Avatar for bfitzgerald
0
296
Member Avatar for PF2G

Hi, I have this popup with a Login Form (and a register form comment): div id="login" style="float:right; width:15%; padding-top:3px;"> <a href="#" class="topopup">LOGIN | REGISTAR</a> <div id="toPopup"> <div class="close"></div> <div id="popup_content"> <!--your content start--> <h2>Login</h2> <form id="login"> <table cellpadding="3" cellspacing="2"> <tr> <td> Username: </td> <td> <input type="text" name="username" id="username" /> </td> …

Member Avatar for JorgeM
0
173
Member Avatar for irtza

// In this program: when i compile this program, the complier shows error in the main section(I have mention this error in main section) that is "can not convert sample to sample in assignment". this error is occuring only when i try to access private members of class through pointer …

Member Avatar for samiz4j
0
295
Member Avatar for Nirmeen Ased

<td width="186" align="right"><label for="collegetxt"></label> <select name="collegecategory" dir="rtl" id="collegecategory" class="title"> <option value="-1">Choose college</option> <?php $rs=$db->GetAllCollegCategory(); while(list($name)=mysql_fetch_array($rs)){ echo "<option ".($collegSearch==$name?" selected=selected ":"")." value='$name'>$name</option>"; } ?> </select> </td> </tr> <tr> <td> <strong>Teacher Number:</strong></td> <td width="217" align="right"><label for="Teachesearch"></label> <label for="TeacherNo"></label> <input type="text" name="TeacherNo" id="TeacherNo" class="title" checked="checked"/></td> <input type="submit" name="evlBtn1" id="evlBtn1" value="Evaluate" style="width:119px;height:39px;font-size:16px;" /> Hi, …

Member Avatar for Zagga
0
362
Member Avatar for ChemE_Programma

I can not for the life of me figure out how to solve for a cubic equation using visual basic. I have tried multiple codes found on the internet, but they do not work or there is code I do not understand (such as root.root). Here is the equation I …

Member Avatar for ChemE_Programma
0
712
Member Avatar for Aarowaim

I have two questions here. First of all, how do I enable selection of multiple listbox items and select them via code? Secondly, how do I prevent the user from selecting multiple lines? Now, for some background and my thoughts. I'm working on a project for computer science in which …

Member Avatar for Reverend Jim
0
711
Member Avatar for nychick

Hi guys, I'm trying to write a function that could convert a lowercase string to uppercase. Not sure if I'm heading the right direction. Essentially the function [CODE]ToUpperString (char s[]);[/CODE] would convert everything in the string to the uppercase equivalent. Here's what I got so far: [CODE]void ToUpperString ( char …

Member Avatar for Rogierownage
1
918
Member Avatar for SQLpower

Hello guys, Long story short, when I register a user on my website, it enters for every single column value 0. It should be due to the fact that's not picking up the data from my registration page? Although, it should be ok as I am only picking up the …

Member Avatar for SQLpower
0
196
Member Avatar for serkan sendur

I had a background image for one of the container divs in my page. I positioned it to a specific pixel using its style properties. It worked fine in the internet explorer but was located to a wrong position when displayed by firefox. So i wrote the following code to …

Member Avatar for malithmcr
0
472
Member Avatar for nouth

I want to learn about `def` because that looks very the most intriguing how you can make it kind of like reusable but when I was learning I had come some problems with understanding def main(): #renewable code main() if __name__ == "__main__": main() I don't understand what `__name__` and …

Member Avatar for nouth
0
508
Member Avatar for vishalonne

Hello Everybody How can store name of dynamically created checkbox in a String array when I don't know how many checkbox will user select at runtime. Say I have 10 dynamic checkboxes and out of 10 user select 6 checkboxes randomly now how can get the name of those selected …

Member Avatar for vishalonne
0
826
Member Avatar for kay19

Well I need help one of the two questions which are similar to the topic I'm asking. The first question that I solve was "Taller method should return true if the tree on which the method is invoked has a greater height than the tree passes as a paramter". public …

Member Avatar for kay19
0
192
Member Avatar for vishalonne

Dear All I am trying to create groupbox dynamically and these GB will create on selection on checkbox. Means I have 5 check boxes now if I select 1st CB then 1 GB with some other dynamic checkbox shall be created, if I select 3rd check then another GB shall …

Member Avatar for vishalonne
0
1K
Member Avatar for Stuugie

Hi All, I'm working on filling a user variable called "EmailString" via a db connection with SSIS. I've created a script task to do this (the only way I can see how) and in it I have the following code: Public Sub Main() ' ' Add your code here ' …

Member Avatar for Stuugie
0
297
Member Avatar for destroyer333

So i believe i got my prefix working, now i'm trying to get my postfix working so that the class object happy should have its day increased by 1. Not sure whats wrong. Maybe the way it receives the month and day in the constructor? main #include <iostream> #include <string> …

Member Avatar for destroyer333
0
229
Member Avatar for LeNenne

Hi I wonder how to count the backup files I have. If I say like this 1: making backup OK 2: making backup OK 3: now is the question how to count the backup files so I can remove some of them or kill one Bonzo

Member Avatar for Jx_Man
0
219
Member Avatar for peymankop

Hi...! I'm Workihng on Snake And Laddet Game... the player roll the dice and it's get a new position,an image will show the player position on the screen in the next turn image will move to a new position but the last picture is still in it's position how can …

Member Avatar for JOSheaIV
0
205
Member Avatar for fmasroor

when I run eclipse (just downloaded the 32 bit version from the website) it gives an error dialog that says 'a java runtime enviroment or java development kit just be available in order to run Eclipse. No java virtual machine was found after searching the following locations: " and it …

Member Avatar for JamesCherrill
0
243
Member Avatar for SureEM25

So i have created this code that is grabing info from a server, the string that it is giving me has these specail charecters that i need to get rid of, then I need to exploade it by another. Here is my code: function fetch_server_info($ip, $port){ $socket = @fsockopen($ip, $port, …

Member Avatar for SureEM25
0
167
Member Avatar for Violet_82

HI all, I am trying to validate the input in my tic-tac-toe program. I had a good look around on the net and tried a few combinations, but I couldn't get anywhere. Some people seem to be using methods like hasNextInt(), some other a try and catch statement. I tried …

Member Avatar for Violet_82
0
326
Member Avatar for showman13

I have been searching for the past several hours to find a way to rotate through 4-5 different graphics in the header of a web page that I am creating, but have had very little useful help. There seems to be countless jquery slider scripts out there, but even after …

Member Avatar for showman13
0
566
Member Avatar for m_ishwar

Hello everyone. I am trying to compile this simple code using gcc under Cygwin terminal. //A function that just returns a value// int my_function() { return 0xbaba; } I saved the code as basic.c I issue the command $gcc basic.c in the Cygwin terminal And I get the error: gcc: …

Member Avatar for m_ishwar
0
610
Member Avatar for Suzie999

Hi. I'm having some touble printing year. Here is the code where I expected an output of "Year: 2013" time_t tm; time(&tm); struct tm ts; errno_t err = localtime_s(&ts,&tm); cout << "Year:\t" << ts.tm_year << endl; But what I get is "Year: 113" Appreciate any help offered.

Member Avatar for Suzie999
0
173
Member Avatar for rayidi

I'm dealing with a SOAP client response for a flight booking application, I successfully got the response, See the response below: <arzoo__response> <Response__Depart> <OriginDestinationOptions> <OriginDestinationOption> <FareDetails> <ChargeableFares> <ActualBaseFare>4850</ActualBaseFare> <Tax>4267</Tax> <STax>31</STax> <SCharge>0</SCharge> <TDiscount>0</TDiscount> <TPartnerCommission>0</TPartnerCommission> </ChargeableFares> <NonchargeableFares> <TCharge>0</TCharge> <TMarkup>0</TMarkup> <TSdiscount>0</TSdiscount> </NonchargeableFares> </FareDetails> <FlightSegments> <FlightSegment> <AirEquipType>321</AirEquipType> <ArrivalAirportCode>DEL</ArrivalAirportCode> <ArrivalDateTime>2013-05-20T08:00:00</ArrivalDateTime> <DepartureAirportCode>BOM</DepartureAirportCode> <DepartureDateTime>2013-05-20T06:00:00</DepartureDateTime> <FlightNumber>601</FlightNumber> <OperatingAirlineCode>AI</OperatingAirlineCode> <OperatingAirlineFlightNumber>601</OperatingAirlineFlightNumber> …

Member Avatar for diafol
0
8K

The End.