199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for son jo

attach is my code for search.php but i have error on line 9, can someone pleasee help me to fix it ? Thnk you XAMPP said Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\series\insert\Search.php on line 9 line 9 code: while($row = mysql_fetch_array($results)){ below is my …

Member Avatar for pritaeas
0
331
Member Avatar for Rachael_1

Hi, I am new to Javascript and PHP and I am trying to duplicate some data and store it in a database when users clicked on the "copy button". [Click Here](http://i.stack.imgur.com/9oy70.jpg) With reference to the image(click on the link above), upon clicking "copy trade" the data will be replicated into …

Member Avatar for Rachael_1
0
230
Member Avatar for SirDarknight

I am a noob at programming.I want to create windows applications with graphical user interface.Which one is best? C# VB.NET C++ Python

Member Avatar for ss125
0
122
Member Avatar for Silfro

Hello I got one problem. I have a site where people can add movies. Its possible to add up to 10 different hosts. Every host can have up to 2 parts. html <TABLE> <TR><TD width=120>Hoster*:</TD> <TD> <SELECT class="interfaceforms" name="addmovie[][hoster]"><OPTION value="">Please select</OPTION> <?PHP foreach($hoster_list AS $aKey => $aValue) { echo'<option value="'.$aKey.'">'.$aValue.'</option>'; …

Member Avatar for Silfro
0
213
Member Avatar for Jam_1

Hello all: I've been reading up on C++, which seems pretty cool. In my office, the HR representative has to manually calculate an employees vacation & sick time. So I was thinking if it's possible to create a program for her to help her out a bit. This is what …

Member Avatar for Ancient Dragon
0
249
Member Avatar for de Source

Hi, after spending lot of time on google i am fadeup i have a dynamic tab control in which i am able to make dynamic buttons and i am also able to get whole row of a table product in button's tag but i do not know how to retrive …

Member Avatar for tinstaafl
0
168
Member Avatar for commando1200

My website isn't getting crawled to my knowledge at all or very infrequently does my robots.txt file have something to do with that? My current file looks like User-agent: * Disallow: / Is this good or bad for crawls?

Member Avatar for james.lu.75491856
0
141
Member Avatar for Judgment

I'm trying to create a game of Go Fish in Python. But I've stumbled onto a little problem that I can't seem to figure out how to deal with. There is a human player (player 0) and three computer players (from 1-3). The human player goes first and chooses a …

Member Avatar for james.lu.75491856
0
688
Member Avatar for Octet

Hello Daniweb, I am trying to implement a show/hide feature for a website, to help organise the content more effectively. At the moment I am using a simple JS function that changes the .style.display of a div to either none or block. The problem is that because the content is …

Member Avatar for Octet
0
162
Member Avatar for de Source

Hi, I am trying to insert data into my database throgh Entity framwork my code is below private POSDatabaseEntities1 posde = new POSDatabaseEntities1(); private void btnSave_Click(object sender, EventArgs e) { Tbl_Users Users = new Tbl_Users(); Users.FirstName = txtFName.Text; Users.LastName = txtLName.Text; Users.CNICNumber = txtCNIC.Text; RBSDE.AddToTbl_Users(Users); RBSDE.SaveChanges(); MessageBox.Show("Record has successuffly beem …

Member Avatar for de Source
0
182
Member Avatar for erkanay

<!DOCTYPE HTML> <html> <head> </head> <body> <form action="2.php" method="post"> <table width="400" border="0"> <tr> <td>Ders sayisi :</td> <td><input type="text" name="sayi" /></td> </tr> <tr> <td><input type="submit" name="gonder" value="Gonder" /></td> </tr> </table> </form> <?php if(isset($_POST['gonder'])) { for($i=1;$i<=$_POST['sayi'];$i++) { echo "$i.ders"." "."<input type='text' **name='e$i'** />"." - "." <select name='dersler'><option **value='a1'**>A1</option> <option **value='a2'**>A2</option><option **value='b1'**>B1</option> <option …

Member Avatar for diafol
0
288
Member Avatar for sushilsth

hi, i have 12 groupbox in each tabcontrol page. And i want to keep all groupbox in same location of same size overlapping each other. I want to make one function and apply to all groupbox. So that my code wouldnot be lengthy. But i didnot get idea to do …

Member Avatar for ShahanDev
0
141
Member Avatar for rahul8590

i have written many programs using stack , but how do i write a program to find whether the stack is progressing in forward or reverse direction . ?

Member Avatar for gurumukhi
0
184
Member Avatar for pythonforlife

I would like to merge a few dat files in a directory and exclude certain dat files as previously I have already marked out the files that I need and do not need. Below is an example of my codes def onAssemble(self,event): with open("index.dat", 'r') as file: data = file.readlines() …

Member Avatar for pythonforlife
0
202
Member Avatar for Franze

Hi, I have done a test using the lock(lockobject), which will be an interesting question. I have created 2 background threads, that I start simultaniously. Threads uses a while(true) loop to produce the test. If we uncomment and use the lock(lockobject) in the code. None of the loops will write …

Member Avatar for Franze
0
165
Member Avatar for lewashby

I'm looking throug the documentation at python.org for modules and functions allow me to do basic operations on in a Linux file system. I need to do simple things like list the file and folders in a directory 'ls' and change director 'cd'. I found these two pages that looked …

Member Avatar for lewashby
0
146
Member Avatar for NardCake

Hello! I've been very interested in the V8 JavaScript engine recently, so I fetched the source and built it successfully, so far so good. I also successfully compiled the [Hello, World!](https://developers.google.com/v8/get_started) program Google provides. I've also read the [embedders](https://developers.google.com/v8/embed) guide. Other than that I can't find any documentation or examples …

Member Avatar for NardCake
0
160
Member Avatar for dancks

I'm writing a basic sudoku solver. I have a simple method that looks for squareas with only 1 possible number and fills them in before trying to solve the puzzle. the method look like this: def fillinones(sq): table = {1:1,2:2,4:3,8:4,16:5,32:6,64:7,128:8,256:9} for i in range(0,80): p=checkpossible(sq,i) print "p: ",p if p …

Member Avatar for TrustyTony
0
180
Member Avatar for irfan hassan

Is there any free joomla framework which we can use professionally, and can change it's copyrignts.And what free joomla framework would be the best to use.

Member Avatar for irfan hassan
0
224
Member Avatar for davy_yg

Hello I wonder how to create a new screen like in: [Salesforce](http://www.salesforce.com/)](null) Cek the contact us button: If you click it a big form screen appears. How to create such a thing ? Also, if you ever fill in a form, they know your name etc., do they save visitors …

Member Avatar for Olagsfark
0
107
Member Avatar for Olagsfark

I have an online forun i just finished building. Now i need to build a script that moderates my forum witout me there.

Member Avatar for Olagsfark
0
273
Member Avatar for glenwill101

ive been trying to improve my skills when it comes on to using maps and iterators but i seem to be mostly failing can someone please tell me where im going wrong or point me in the right direction compiler error a.cpp:20:55: error: conversion from ‘std::map<std::basic_string<char>, Object*>::iterator {aka std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, …

Member Avatar for glenwill101
0
418
Member Avatar for aarviii

hi, i'm making a library database and if the user returned the book passed the due date given.i want to find the day difference and multiply that to a given fine amount.like this daydiff = due_date_of_book - date_returned fine_amount = daydiff * amount thanks in advance

Member Avatar for pritaeas
0
217
Member Avatar for ammukarthi

I am having a database table which stores customers information which includes cutomers country as a column.now i want to convert the customer's country as a single word for example f a customer belong to united states i want to convert it as 'us' and want to dispaly it in …

Member Avatar for ShahanDev
0
221
Member Avatar for mpc123

Hi Im haveing a problem with ucwords and FINDINSET in a query I have tried all sortsof ways but just get errors I currently have and get FUNCTION ucwords does not exist. Can anybody help please $query = "SELECT * FROM TABLE1, TABLE2 WHERE FIND_IN_SET(ucwords(TABLE1.field), TABLE2.field)";

Member Avatar for mpc123
0
226
Member Avatar for pardeep3dec

Dear Experts, I am new to asp.net c# but proficient in c++. In asp.net c# i have to open a new page in new tab with pdf file on gridview1 column click event. so give me guidelines to do this. Thanks and regards, Pardeep

Member Avatar for arun1123
0
1K
Member Avatar for cirbab4

I am trying to show a loading div on button click, but it is not working at the moment. Javascript : <script type="text/javascript"> $(document).ready(function (e) { $('#BtnSend').click(function () { $('#<%= loading.ClientID %>').toggle("slow"); }); }); </script> Div: <div id="loading" class="Loading" runat="server" visible="false"> <div class="loadingImg"> <img src="../Images/loading.gif" alt="loading" /> </div> </div> button: …

Member Avatar for arun1123
0
3K
Member Avatar for jcyarra

$cartOutput = ""; $cartTotal = ""; $ctr= 0; $collector = array(); $product_id_array = ''; if (!isset($_SESSION["cart_array"]) || count($_SESSION["cart_array"]) < 1) { $cartOutput = "<h2 align='center'>Your shopping cart is empty</h2>"; } else { $i = 0; foreach ($_SESSION["cart_array"] as $each_item) { $item_id = $each_item['item_id']; $sql = mysql_query("SELECT * FROM products WHERE …

Member Avatar for diafol
0
1K
Member Avatar for Zezo_1

1- code when user send !q the bot send random of question for example : What is the most expensive metals in the world? A - Gold B - iron C - radium . if user send the true answer the bot choose him and write his name and ID …

Member Avatar for tinstaafl
0
237
Member Avatar for harry010

I have a select element that I populate with data returned from an AJAX call. It workds most of the time but its unreliable. Sometimes it works the first time I click the link and sometimes not (mostly it works). I can see that the server is returning the correct …

Member Avatar for harry010
0
288
Member Avatar for rakwel10

Hello My input field has 2 state. If the user don't scroll the page or the page is in the homes page, the value of the input field is empty. When user starts scrolling, the value will be filled. My problem is when I scroll, the text inside the input …

Member Avatar for paulkd
0
238
Member Avatar for somjit{}

im on win 8. neither can i find the bin folder as i could on my xp machine , nor do i get any command line. googleing didnt help much either. either i got some really hard to understand mysql doc page , with no specific answer to my problem …

Member Avatar for somjit{}
0
346
Member Avatar for son jo

my insert php cannot save data to phpmyadmin when it enter the details. localhost:locahost , username:root password: databasename:b_database tablename:my_library tablecolumn:2 contains : isbn(primary key) and title. index.php <html> <head> <meta name="description" content="Php Code for View, Search, Edit and Delete Record" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Search Library Record</title> </head> …

Member Avatar for veedeoo
0
247
Member Avatar for LeNenne

Hi I have made a program and now I am not sure how to clear the screen. When I start the program I will have a blank screen and just my program visible. Lenny

Member Avatar for rishif2
0
187
Member Avatar for venkatesh_1

hi i am new to wordpress. so i am getting lot of problems I am trying to display posts of specific category using the following code <?php $cat=$_GET["cat"]; $args=array('category'=>$cat); $posts_array = get_posts( $args ); foreach($posts_array as $posting) { echo $posting; } ?> But i am getting errors instead. Please anyone …

Member Avatar for veedeoo
0
236
Member Avatar for cirbab4

I am very new to thread. However I would like to make 2 threads, Thread A and Thread B. When a button is clicked Thread A starts and so does Thread B. Thread B shows a loading image and disables users from clicking any buttons whilst Thread A executes some …

Member Avatar for JOSheaIV
0
188
Member Avatar for kiLLer.zoh_1

<?php include 'inc/db.php'; function dateDiff($start, $end) { $start_ts = strtotime($start); $end_ts = strtotime($end); $diff = $end_ts - $start_ts; return floor($diff / 86400); } $q ="SELECT * FROM date"; $p=mysql_query($q); while ($res=mysql_fetch_array($p)) { $start =$res['sdate']; } $qc ="SELECT * FROM accounts"; $pc=mysql_query($qc); while ($r=mysql_fetch_array($pc)) { $elecend=$r['elec_contract_edate']; $gasend=$r['gas_contract_edate']; $elecshow =dateDiff( $start,$elecend ); …

Member Avatar for diafol
0
206
Member Avatar for JOSheaIV

Hello everyone, I am back with yet more Fortran problems it seems. So I have spent some time working on trying to understand the C code that was produced from my f2c conversion of some Fortran 77 code. Well to understand it better I have been trying to use f2c …

0
279
Member Avatar for nathan.pavlovsky

Hello Programmers! How can I convert a double to a string without losing its precision (i.e. values after the decimal point)? Thanks!

Member Avatar for nathan.pavlovsky
0
2K
Member Avatar for somjit{}

my `display()` method is public and looks to be defined , however eclipse says that its not defined. this is a code for an amortized time resizing circular array. can someone help me out here ? also , please do point out if you see something else wrong with the …

Member Avatar for somjit{}
0
291
Member Avatar for philcm

Hi ; I'm trying to add a simple menubar to my lister window : ------------------------------------ #!/usr/bin/env python import subprocess import os, stat, time import pygtk pygtk.require('2.0') import gtk folderxpm = [ "17 16 7 1", " c #000000", ". c #808000", "X c yellow", "o c #808080", "O c #c0c0c0", …

0
138
Member Avatar for JamesCherrill

I have a bizarre thing just happened in NetBeans - the red error markers on the LHS of the editor window have all vanished. There are still errors - the files are flagged as having errors, and the errors are correctly diagnosed when I do a clean/rebuild, but no error …

Member Avatar for JamesCherrill
0
305
Member Avatar for IsaacMessi10

I'm trying to imitate the Windows 8 Start Menu preview'. Private Sub CornerHoverMouseOn() Handles CornerHover.MouseHover Dim CHL As Integer CHL = (Screen.PrimaryScreen.WorkingArea.Height - 100) CornerHover.Anchor = AnchorStyles.Bottom + AnchorStyles.Left CornerHover.Location = New Point(0, CHL) CornerHover.Height = 100 CornerHover.Width = 50 CornerHover.BackgroundImageLayout = ImageLayout.Stretch CornerHover.BackgroundImage = My.Resources.CornerHover End Sub Private Sub …

Member Avatar for IsaacMessi10
0
2K
Member Avatar for lalitha2294

#include<stdio.h> #include<conio.h> #include<math.h>> main() { int k,i,r,n,j,a[100],m,p,b[100],count=0,count1=0,q,w,g,h,l,z,x,x1; printf("enter the length of the data word:"); scanf("%d",&k); printf("\nenter the data word:"); for(i=1;i<=k;i++) { scanf("%d",&a[i]); } r=1; while((k+r+1)>pow(2,r)) r++; printf("\n r=%d",r); n=k+r; j=1; m=0; for(i=1; i<=n; i++) { p=pow(2,m); if(i==p) { b[i]=0; m++; } else { b[i]=a[j]; j++; } } printf("\n INTERMEDIATE CODE …

Member Avatar for lalitha2294
0
157
Member Avatar for nitin1

#include main() { int ret; ret=fork();ret=fork();ret=fork();ret=fork(); if(!ret) printf("sun"); else printf("solaris"); } how many times sun will be printed and how many times solaris will be printed ? and reason also. i know the fundamentals of fork() but still not able to catch the o/p here. thanks.

Member Avatar for lalitha2294
0
279
Member Avatar for EXTRA_RICE

i have this new problem i hope that im not a spam here in this site.but i have to do this bcoz i have no where else to go.sorry for my english hope u understand me.in the picture that i uploaded i have textbox1 and textbox2 their value comes from …

Member Avatar for Klahr_R
0
1K
Member Avatar for james.lu.75491856

If there's a class called `foo` and you do `d = foo().someboundmethod`, will the instance of foo stil be there?

Member Avatar for ~s.o.s~
0
186
Member Avatar for SaRa Ahmad

'Text2.Text = "C:\MyPath\MyDocument.pdf" 'Shell "C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe" & " " & Text2.Text, vbNormalFocus this code correctly work for one user pc, but other users that use the system cant be open the file , how i can make the file published??

Member Avatar for Klahr_R
0
183
Member Avatar for shenn.to

I'm having hard time looking for a solution. :( How can i add tabs without duplicating it on the tabpages. I'm using list view to add tabs to the tabcontrol. These are my codes: Public Class frmMain Private Sub treeviewMain_NodeMouseDoubleClick(sender As Object, e As System.Windows.Forms.TreeNodeMouseClickEventArgs) Handles treeviewMain.NodeMouseDoubleClick Dim page As …

Member Avatar for Reverend Jim
0
1K
Member Avatar for kanoy83

hi guys, am trying to make a simple PHP form submission and insert some data to MySQL, my tables are: category: -id -category_name table1: -category_id(FK) -title -description table2: -table1_id(FK) -filetype -filesize -filedate -filename Form: -Date -Title -description -category(drop down) -upload file (get the file info like type,ext,size,filename) Or is there …

Member Avatar for kanoy83
0
3K

The End.