199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for batoolhussain
Member Avatar for rubberman
0
277
Member Avatar for destiny_3

hi everyone.. please my code is having an issue... i made a select query and its displaying the error in the IMAGE attached... the code is also attached... pls what could be the error.... the image ain 't uploading....so below is the error... ( ! ) Warning: mysql_fetch_array() expects parameter …

Member Avatar for t_thakar
0
411
Member Avatar for davy_yg

Hello, I am planning on creating stock photos like 123rf.com. It's just a small feature on my web. I wonder how to create a watermark with codes? Is that possible? We are selling photography photos. Before the buyer purchase it - it must be watermarked. How? Regards, Davy

Member Avatar for Damhart
0
289
Member Avatar for Name_1

So I'm trying to convert my code into 3 files, the main.cpp, a header, and the classbody.cpp. This was my original code: #include <iostream> using namespace std; #include <string> #include <ctime> #include <stdio.h> #include <stdlib.h> class colorPicker { private: string colorArray[7]; public: colorPicker() { colorArray[0] = "Red"; colorArray[1] = "Green"; …

Programming c++
Member Avatar for rubberman
0
282
Member Avatar for sekmani

Hi guys; I'm new in python and thread ,i start learning by create a simple code but i find some defficult this code below have some function and thread also Queue function to share data between thread this is a part of my code: def PutChar(Ch): #ask user to put …

Member Avatar for sekmani
0
2K
Member Avatar for Arbus

Hello all, I need your help. I trying to change the font of texts displayed in the output of my program. I know that we can use settextstyle() for changing fonts. But there are only four types of fonts( GOTHIC, SANS SERIFF , TRIPLEX , DEFAULT) available. I want to …

Member Avatar for afv
0
4K
Member Avatar for qqwushi12345

Write the C program that solve the quadratic equation problem The output should appear as follows: Enter A: 3 Enter B: 5 Enter C: 2 There are two solutions: -0.666667 and -1. Press any key to continue_ thank you,

Member Avatar for mohanned_2
0
4K
Member Avatar for Siberian

If the user enters only one character, I want it to prompt for the name again; otherwise print the persons name in ASCII. Instead what is happening is it's printing the name depending on how many characters are in the name ? nameAsk = raw_input("What is your name?") for name …

Member Avatar for Gribouillis
0
241
Member Avatar for sashiksu

I'm currently using below code for print all things in data grid view in vb.net 2012. By all things I mean all columns. Try Dim mRow As Integer = 0 Dim newpage As Boolean = True With gdvcussearchcustomer Dim fmt As StringFormat = New StringFormat(StringFormatFlags.LineLimit) fmt.LineAlignment = StringAlignment.Center fmt.Trimming = …

Member Avatar for Elvis J.
0
6K
Member Avatar for gentlemedia

I have to do this: "the .htaccess file should allow the following directives" `DirectoryIndex` `Deny` `Allow` `Options` `Order` `AddHandler` `RewriteEngine` `RewriteBase` `RewriteCond` `RewriteRule` But I have no clue where to start with this. If I read about the first one for example https://httpd.apache.org/docs/2.4/mod/mod_dir.html then the default value is `DirectoryIndex index.html`which …

Member Avatar for gentlemedia
0
669
Member Avatar for spowel4

I'm trying to create a loop to create 20 text input fields for username & 20 text input fields for password and my current attempt is listed below. It isn't working & if I view source the $i variable doesn't seem to be expanding properly. [CODE]<?php for ($i = 0; …

Member Avatar for diafol
0
8K
Member Avatar for Abdul_41

I am new in reporting with crystal reports. i am trying to genrate a report in vb.net. My data to be displayed in the report is based on a screen output. But I don't know how to bring the data from screen to report. Please help me any one so …

Member Avatar for Santanu.Das
0
173
Member Avatar for dwlamb

I have 3 td's in a portion of a table. Sometimes, the data coming in from the database is less than 3. I need a method that will lay-out the data precisely compared to a rank in the table. Ideal situation: array |-0 |-name => Joe |-rank => 0 |-1 …

Member Avatar for Stefce
0
346
Member Avatar for Stefce

How do i select the next row in php from mysql table, i have 4 columns `ID, video_title, video_desc, video_embed` so i have more than 10000 rows in the table with youtube embed videos and i want to scroll though them with next and previous buttons but thats not the …

Member Avatar for Stefce
0
476
Member Avatar for Mr.M

Hi DW. I would like to know if its possible to get the source path of a file copied/moved to a folder I set a FileSystemWatcher? What I mean is that get the location as to where this file is coming from if its was copied/moved into this folder. Thank …

Member Avatar for xrjf
0
302
Member Avatar for ddanbe

I have a table with nutrient data(in Dutch) it looks like this ![Nutrient_table.png](/attachments/small/1/ea03b9085fe045894414a3101f2d6b4b.png "align-left") My DB design skills are very low, I only know Mr. Codd is lurking 'round the corner somwhere. Could anyone give me some hints on how to set up my tables or should I just usr …

Member Avatar for ddanbe
0
374
Member Avatar for Magic8Computing

I am querying a MYSQL database and would like to return the results so that all of the job numbers that are the same are grouped together and expandable when clicking on the common name. so when the bag loads all you see is a list of job numbers. I …

Member Avatar for diafol
0
1K
Member Avatar for Sumit_12

Hello Guys I am new to C programming and as a part of an assignment I have made an ATM algorithm in C. Though the compiler shows no errors, the code goes into an infinite loop after the first input. Please Help. Here's the code: #include<stdio.h> #include<conio.h> void main(){ float …

Member Avatar for Gribouillis
0
1K
Member Avatar for ChadW

I know I'm just missing the mark here, but what I am trying to accomplish is simply adding the results of two text boxes. Example: Form has two text boxes and 1 label The user enters a number (any number from 0 - 10) into each textbox when the user …

Member Avatar for Akbar_6
0
9K
Member Avatar for UI

Guys, Does anyone have any php tutorials (either text or video) to recommend to me to learn how to build my own php proxy ? You see, I'm actually trying to give you a frame on my website where you can use that to navigate to websites. I want to …

Member Avatar for UI
0
391
Member Avatar for arun_22

i have db table as product_master,in that product master have many products and each product have minimum cost and maximun cost,my doubt is,in ui,i select product in one dropdown text box,dynamically another dropdown text box select that selected product's minimum and maximum cost,how can i do using select query???

Member Avatar for diafol
0
307
Member Avatar for davy_yg

Hello, I am trying to create a space between line yet it does not work. It suppose to go to the next line. Instead of printing space it actually prints the html tag <br>. Any clue how to fix this problem? $content = "Someone purchase your picture".<br><br>; foreach ($request->input('pic') as …

Member Avatar for diafol
0
2K
Member Avatar for mr_4

I have been butting my head against this problem for the past 4 hours, and I have to tap out. I know I can't be too far from correct I am just not sure what the missing ingredients are. Here is the problem question: Student status: List of all students …

Member Avatar for mr_4
0
386
Member Avatar for Navnath999

I want to crop an image manually using the mouse. Suppose the image has some text, and I want to select some text from an image, then for that purpose I want to crop that area by using the mouse.

Member Avatar for Sri_6
0
4K
Member Avatar for Carole_3

Hello, I would like to share a page on facebook with a dynamic url. Here is the code to get the dynamic url. <?php $profie_url = $this->url(array("id" => $mRow->id, "url" => $this->urlify($mRow->first_name)) , "details") ."/" . $this->urlify(trim($mRow->subtitle)) . "/" . $this->urlify(trim($mRow->city_name)); ?> To use it I usually do: href="<?php echo …

Member Avatar for essential
0
3K
Member Avatar for can-mohan

I am parsing below sample file in below code snippet. {"requestType":"INVOCATION", "hostName":"localhost", "serviceName":"bucky", "serviceType":"DISCRETE", "serviceParameters":"sampleData", "servicesList" :[ { "serviceName" : "ABC", "serviceParameters" : {"para1" : "value1", "para2" : "value2", "para3" : "value3"} }, {"serviceName" : "CBA", "serviceParameters" : { "para1" : "value90", "para2" : "value", "para3" : "value"} } ], …

Member Avatar for can-mohan
0
5K
Member Avatar for berserk

I haver an IIS server with an mvc 5 app im developing and i have had no luck so far getting the windows authentication working with my app, i have it set to windows authenication but the app will only auto login users when accessed from the server. Then once …

Member Avatar for rproffitt
0
297
Member Avatar for Programmer_2

Cant print crystal report viewers records after 32767 page ... im using crystalreportviewer.printtoprinter command

Member Avatar for ddanbe
0
148
Member Avatar for Ritesh_4

Hello Am looking for an out-of-the-box Wordpress theme which can help me create a website similar to either FileHorse or FileHippo in a very short time. Any one has an idea?

Member Avatar for TheHau
0
4K
Member Avatar for davy_yg

Hello, I am trying to create a picture gallery with laravel: This is my blade: setting.blade.php @if(isset($themes)) @foreach($themes as $m) <tr> <td><img width="100px" height="100px" src="{{url('/')}}/uploads/theme/{{$m->pic_name}}.jpg"/></td> <td><img width="100px" height="100px" src="{{url('/')}}/uploads/theme/{{$m->pic_name}}.jpg"/></td> <td><img width="100px" height="100px" src="{{url('/')}}/uploads/theme/{{$m->pic_name}}.jpg"/></td> </tr> <tr> <td><div class="box"><input type="checkbox" name="pic" value=""></div></td> <td><input type="checkbox" name="pic" value=""></td> <td><input type="checkbox" name="pic" value=""></td> </tr> @endforeach …

Member Avatar for diafol
0
232
Member Avatar for tarun_6

If a table contains field's like name,age tuition fee,bus fee,year, 1,2 When I tried to update 1 year details it is updating but when I try to update the entire fields it's not updating in form of jsp page

Member Avatar for rproffitt
0
483
Member Avatar for Obbie_1

![Untitled.jpg](/attachments/large/4/6c6056e3fdbd847b94af20fe43f18581.jpg "align-center") Why can not save to the database? my script Imports MySql.Data.MySqlClient Imports System.Data.Odbc Public Class Arsip Const DSN = "DSN=arsip" Dim conn As OdbcConnection Dim cmd As OdbcCommand Dim da As OdbcDataAdapter Dim dr As OdbcDataReader Dim ds As DataSet Dim table As DataTable Sub koneksi() conn = …

Member Avatar for Mr.M
0
223
Member Avatar for Obbie_1

![gh.jpg](/attachments/large/4/8742b15dbecb5444d6086d0a2f3fa080.jpg "align-center") why? help sir

Member Avatar for Mr.M
0
219
Member Avatar for shivya_1

Hello to all, I am facing an issue with login form. Everything is correct, but.. <?php session_start(); include("config.php"); $username = $_POST["username"]; $password = $_POST["password"]; $sql = "SELECT * FROM register where E_mail = '$username' and password = '$password'"; $result = mysqli_query($conn, $sql); if ($result) { $_SESSION['username'] = $username; header("location:index.php"); } …

Member Avatar for t_thakar
0
303
Member Avatar for Talha_11
Member Avatar for sathish kumar_1
0
245
Member Avatar for TrustyTony

This is one small snippet of after event usage. You could express if you find this kind of simple code to be usefull as snippet. Notice also vegaseat's sticky message threads in begining of Python forum in addition to code snippets.

Member Avatar for Gribouillis
0
5K
Member Avatar for tarun_6

Can anyone guide me to find a way to convert swing application to Android app. If we just create the gui using xml is it enough to take the working code from the previous swing application to run on Android

Member Avatar for tarun_6
0
2K
Member Avatar for Andres_5

Hi Guys Im A Noob, so i need your kind perception on my code Im running A Table Anytime i do it i get this message Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not supported yet. And this is My Table Code: private void tablaLISTADOMouseClicked(java.awt.event.MouseEvent evt) { // TODO add your handling …

Programming java java-swing
Member Avatar for JamesCherrill
0
632
Member Avatar for rithish

[CODE] import java.awt.*; import javax.swing.*; import java.awt.event.*; class log extends JFrame { JButton b1=new JButton("ok"); JPanel panel=new JPanel(new GridLayout(2,2)); public log() { panel.add(b1); add(panel,BorderLayout.CENTER); b1.addActionListener(new ActionListener(){ public void actionperformed(ActionEvent ae){ JPanel pan=new JPanel(); JFrame frame1 = new JFrame(); JButton b2=new JButton("ok"); pan.add(b2); frame1.setVisible(true); frame1.add(pan); frame1.setSize(250,100); b2.addActionListener(new ActionListener(){ public void actionperformed(ActionEvent …

Member Avatar for ajax_1
0
2K
Member Avatar for Himanshu Chawla

using (MySqlCommand cmd = new MySqlCommand("SELECT EmpId, Emp_Name, Salary , Start_date , End_date , CASE WHEN (Employees.End_Date is null) THEN DATEDIFF(DATE_ADD(Start_Date, INTERVAL 30 DAY), Start_Date) * Salary/30 ELSE DATEDIFF(End_Date, Start_Date) * Salary/30 END AS Total_Salary From Employees;")) { using (MySqlDataAdapter sda = new MySqlDataAdapter()) { cmd.Connection = con; sda.SelectCommand = …

Member Avatar for rproffitt
0
474
Member Avatar for Alexis_5

could someone please take a look at this and let me know how to fix it. What I would like to happen is when the dropdown option is selected it displays the buttons for that option. and then when the button is clicked text set for that button displays in …

Member Avatar for Shulc
0
588
Member Avatar for Obbie_1

![as.jpg](/attachments/large/4/e42faf81a2adc0852d2179e721ce2085.jpg "align-center") Can not call form1,, help please

Member Avatar for ddanbe
0
172
Member Avatar for Himanshu Chawla

SELECT CASE WHEN (Employees.End_Date is null) THEN select EmpId, Emp_Name, Salary , Start_date , End_date ,DATEDIFF(DATE_ADD(Start_Date, INTERVAL 30 DAY), Start_Date) * Salary/30 as 'Total_Salary' from Employees ELSE Select EmpId, Emp_Name, Salary , Start_date , End_date ,DATEDIFF(End_Date, Start_Date) * Salary/30 as 'Total_Salary' from Employees END From Employees; Please help me to …

Member Avatar for AndrisP
0
356
Member Avatar for davy_yg

Anyone ever integrate wysiwg with file manager to update images or attachment ? Any idea how to ? Or have the complete codes that I can download ?

Member Avatar for davy_yg
0
212
Member Avatar for idaryl

I have a restaurant menu theme and there are some menu items the owner has, with no pricing (all menu items have the option for a price and an alternate price) In the taxonomy-menutype.php file [ shows the menu items ] there is this: <div class="pricebox"> <?php if ( get_post_meta($post->ID,'atp_price',TRUE) …

Member Avatar for diafol
0
2K
Member Avatar for tarun_6

As I am doing a application on attendance management where I need to store the details by using check boxes I am unable to store the details of check boxes where it will be generated as present or absent in database Can anyone help me to find out this

Member Avatar for tarun_6
0
652
Member Avatar for rchawdhari

Hi all, This is my array of hash [{"gate_pass_type_id"=>2, "tag"=>0, "total"=>2000}, {"gate_pass_type_id"=>125, "tag"=>0, "total"=>300}, {"gate_pass_type_id"=>661, "tag"=>0, "total"=>750}, {"gate_pass_type_id"=>661, "tag"=>2, "total"=>100}] I want to convert it into [2 => { "0"=> 2000}, 125=> {"0"=>300}, 661=>{"0" =>750, "2"=>100}] Is any simple way without using so much loops

Member Avatar for rchawdhari
0
510
Member Avatar for rchawdhari

Hi Everyone, Can anybody suggest me. I have mysql with two database operations and production. My operations db have master master syncing on live server . I want to make production's master slave syncing onsame live server . Is it possible. How can do it?. Please help me. Thanks in …

0
284
Member Avatar for Xin_1

I am a beginner practicing how to create tables on SQL Here is what I've done: Create Table PO (Order_id int primary key, order_date date, customer varchar(1000)); Create table PO_Line_Item (Order_id int not null, Line_number int not null, Product varchar (30), Unit_Price decimal (10,2), Qty decimal (10,2), Tax decimal(10,2)); When …

Member Avatar for pty
0
2K
Member Avatar for tarun_6

The End.