199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 | |
![]() | 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>'; … ![]() |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
<!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 … ![]() | |
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 … | |
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 . ? | |
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() … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
I have an online forun i just finished building. Now i need to build a script that moderates my forum witout me there. | |
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>, … | |
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 | |
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 … | |
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)"; | |
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 | |
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: … | |
$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 … ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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> … | |
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 | |
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 … | |
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 … | |
<?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 ); … ![]() | |
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 … | |
Hello Programmers! How can I convert a double to a string without losing its precision (i.e. values after the decimal point)? Thanks! | |
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 … | |
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", … | |
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 … | |
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 … | |
#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 … | |
#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. | |
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 … | |
If there's a class called `foo` and you do `d = foo().someboundmethod`, will the instance of foo stil be there? | |
'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?? | |
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 … | |
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 … |
The End.