199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mpc123

Hi im trying to random showing items from data base and when echoed the same ones appear? If anyone could help that would be great. This is the query SELECT * FROM TABLE1, TABLE2 WHERE FIND_IN_SET(TABLE2.FIELD1, TABLE1.FIELD1) and `FIELDNAME` >= RAND() LIMIT 10

Member Avatar for pritaeas
0
147
Member Avatar for davy_yg

Hello all, I wonder why I cannot play video games in facebook. Whenever I click the video games, it loads for a long time then done with a blury screen background. Why is it?

Member Avatar for Lp_baez
0
146
Member Avatar for didi00

Hi guys, I'm trying to set a database for a shopping cart. Here is some of the code: [code] CREATE TABLE `tbl_cart` ( `ct_id` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT , `pd_id` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0', `ct_qty` MEDIUMINT( 8 ) UNSIGNED NOT NULL DEFAULT '1', …

Member Avatar for Jan_2
0
2K
Member Avatar for imperialguy

I use: Python 2.6 and sqlalchemy 0.6.1 This is what I am trying to do: from sqlalchemy.types import ( Integer, String, Boolean ) from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class SampleMeta(type): def __new__(cls, name, bases, attrs): attrs.update({ 'id': Column('Id', Integer, primary_key=True), 'name': Column('Name', String), 'description': Column('Description', String), 'is_active': Column('IsActive', …

Member Avatar for Gribouillis
0
405
Member Avatar for Phrren

I can't figure out why I'm getting this error, i've checked all the posts I can find here and they are all a method inside another method, which i'm pretty sure I don't have. This is the error message it gave me: Exception in thread "main" java.lang.RuntimeException: Uncompilable source code …

Member Avatar for stultuske
0
1K
Member Avatar for Shoaib_3

Hello all i have asked a question related to this and i have solved the previous problem but now i am looking something more advance and i want to know a scenerio , i have implemented the SOCKETASYNCEVENTARGS class for a chat server in c# and it is working fine …

0
261
Member Avatar for kartik_2
Member Avatar for luma64

I am new in ajax. I searched some code about autocomplete. But when I select data from list I dont know retrieve data. Page get_course_list.php fill list and send to user choiced value. In php is code Diagnoza: <input type="text" id="course" onblur="course()"> <?php $dgkod=$_POST['course']; echo "course: $dgkod" ; ?> Function …

Member Avatar for pixelsoul
0
117
Member Avatar for fadlegas

i. Average sales for each staff ii. Average sales for each quarter iii. Average sales for a year iv. Total sales for each staff v. Total sales for each quarter vi. Total sales for a year The sales performance is given in Table 1. Table 1. Staff ID Quarter1 Quarter2 …

Member Avatar for deceptikon
0
103
Member Avatar for Ed

Hello, I have been trying to insert multiple rows from a web form into a MySQL DB. I have a dynamic table on one page that sets up the arrays and posts the form to another page which does the MySQL bit. Here is the the page with the form. …

Member Avatar for diafol
0
463
Member Avatar for patk570

There is two sections i need it to update. When they hover over the members name listed below, I need it to show their details. When the user(one who submitted the content) posts its going to have a hidden value to update the field in the form that i have …

Member Avatar for diafol
0
348
Member Avatar for kiail

Hello, I am currently making a program that sorts user input of age and name. If a user inputs their name and age, all out of order, how would I go about sorting this from oldest to youngest or youngest to oldest? I have this so far: Ages[] ages = …

Member Avatar for kiail
0
248
Member Avatar for hackoman96

how to categrise pictures according to picture colour and texture using c++???

Member Avatar for mike_2000_17
0
170
Member Avatar for wxflint

Hello all its been a while, I have a question on the script below. Here is what I would like to do. Take $file after fwrite has processed and add it to $dir. The Script creates the Directory and the file. I just need it to add the File to …

Member Avatar for wxflint
0
161
Member Avatar for Empireryan

Hi all. I'm wondering if it is possible to pass formatted strings to function arguments. I'm doing something like this: `OUT_TASK = "Task_{id1}, FUNCTION, {id2}, task{id3}_types, None"` `t = Task(OUT_TASK.format(id1=i, id2='doNothing', id3=i))` Any clues are much appreciated. Any other means for doing variable arguments are of interest.

Member Avatar for snippsat
0
223
Member Avatar for LegateLucius

hereis my code the html is on http://cdpn.io/rzcAu /************************************************************************** validation ***************************************************************************/ /*********validation Variables************/ var Email = document.getElementsByName("Email"); var Password = document.getElementsByName("Password"); var firstName = document.getElementsByName("FirstName"); var secondName = document.getElementsByName("SecondName"); var Captcha = document.getElementsByName("Captcha"); var name = document.getElementsByName("Name"); var Subject = document.getElementsByName("Subject"); var Message = document.getElementsByName("Message"); /*********validation Code************/ function email_validation(){ if …

Member Avatar for stbuchok
0
213
Member Avatar for divyakrishnan

Hi all, I want to block some of the special charcters using preg_match. I used following code.It works fine with including ' and ". After including ' and " it willnot working <?php if($_REQUEST['sub']) { $Data=$_REQUEST['data']; $regexp = '/[#$%^&*+={}<>'\"]+$/'; echo preg_match($regexp, $Data); if (preg_match($regexp, $Data)) { echo "ERROR"; } } …

Member Avatar for diafol
0
177
Member Avatar for layman114

I am trying to connect to the Ms access database using PHP. The database, that I created has '.accdb' as an extension. I tried the following steps. but I get this error "The specified DSN contains an architecture mismatch between the Driver and Application". Any ideas?? 1. Go to your …

Member Avatar for diafol
0
349
Member Avatar for kindofsudden

I have a combobox that is bound to a DB and works great. However, when the user adds a value to the table to which the combobox is bound, the combobox keeps the old value and adds the current items in the table. In this case the table originally held …

Member Avatar for kindofsudden
0
367
Member Avatar for Siberian

Hi, I found two pages that describe how to check and see if a CronJob with script is working, without waiting for the exact time and date for the cronJob to execute. Are these methods valid methods, or is there a better method to use, so I can check right …

Member Avatar for Siberian
0
352
Member Avatar for bangar

how to hide a url while printing a web page using scriptts...but not manually altering the settings of browser

Member Avatar for bangar
0
179
Member Avatar for sonicx2218

I have never used PHP before. I am familiar with HTML and Javascript, but never delved into PHP territory unfortunately. I'm stuck on a host that does not support PHP directly, but says if I host it on another site and embed it in the html it should work. The …

Member Avatar for diafol
0
144
Member Avatar for davidkroj

How we configure to our website in wordpress? Just i purchased new domain for my new website. But i don't know how we can install to wordpress cms on website. So please guide me! Also want to ask i want to using standard theme on website so can we change …

Member Avatar for RH-Calvin
0
143
Member Avatar for shadyreal

I need help with the usage of Perfromance Monitor, but the code that I tried to go with did not work. I ended up with this Sysmon( System Monitor ) and added it in a Windows Form Application. I need to learn how to track performance. Does anyone know how …

Member Avatar for shadyreal
0
272
Member Avatar for joseph.lyons.754

Hey Guys, I am writing this code to send out personalised emails to potential customers. And i have few questions about the code. This code is made from several tutorials and code examples. I have searched for stuff on it and theres plenty of articles about it but not what …

Member Avatar for joseph.lyons.754
0
303
Member Avatar for GeekPlease

Hello folks, I'm currently studying how to use LinQ in VB.NET but I guess I'm stock. I'm using VS 2008 version (framework) 2.0 Anyone who can help me get through this??

Member Avatar for GeekPlease
0
288
Member Avatar for wonderland

I'm using [filtrify plugin](http://luis-almeida.github.io/filtrify/) on my website and I needed a way to save filter settings when user reloads page or pareses browsers back for forward buttons. After searching for a while I found html local storage solution. I have somewhat implemented in in my website, but I can't get …

Member Avatar for asmira
0
323
Member Avatar for raajsj

Hi all, i am developing web application in asp.net backend MS-Sql.<br/> i have to retrieve a particular table values for example table name "costomer" and its fields are "c_id,c_name,c_contactno" like that and when i retrieve this values, it should be bind the checkbox for UI. now i've code for generate …

Member Avatar for raajsj
0
2K
Member Avatar for mbahny

I would love if someone had a few minutes to help me in my programming, I usually am alone doing this trying to learn and all, which entails a bunch of guess and checking with no real pin point of where I went wrong. http://pastebin.com/pE0giYq1 This is a script/program done …

Member Avatar for sirlink99
0
203
Member Avatar for David_16

Hello, my name is David, and I want to create a program that will take an audio file, generate the WMP visualizations, apply some modifications, and save it to an AVI file. How can I do that? Thanks in advance (-:

Member Avatar for David_16
0
264
Member Avatar for hackoman96
Member Avatar for hackoman96
0
121
Member Avatar for efe.ozyer

How can i disable or hide mfc application taskbar icon? seems like "ShowInTaskBar = false";

Member Avatar for RonalBertogi
0
3K
Member Avatar for abra_ka_dabra

Just curious to know if we can download youtube videos using downloader using HTTpClient? import java.io.*; import java.net.*; public class trial { public static void main(String[] args){ setAndAuthenticateProxy(); try { URL url = new URL("http://www.youtube.com/watch?v=tQC7rO8cjLs"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); InputStream in = connection.getInputStream(); FileOutputStream out = new FileOutputStream("C://Temp/fo.flv"); …

Member Avatar for pbj.codez
0
208
Member Avatar for Secretary

Importing a db table structure into a database using PHP MyAdmin the following table will not import. i can find no errors on the table, perhaps i am missing something. > > -- -------------------------------------------------------- > > > > -- > > -- Table structure for table `conversations` > > -- …

Member Avatar for Secretary
0
193
Member Avatar for RGStrat

Hello Everyone, So I have a problem that is genuinely stumping me here. The sad part is this is probably something very easy. I'm using the following script for a site I'm working on: http://css-tricks.com/rethinking-dynamic-page-replacing-content/ However, one of the "pages" i'm working on requires a verticle menu that you can …

Member Avatar for JorgeM
0
332
Member Avatar for thearts.beach

I have this line <INPUT name=c value="<?php echo href="http://',$data2['c'],' " ',$data2['c'],' ?>"> &nbsp; and it is giving out this error Parse error: syntax error, unexpected '=', expecting ',' or ';' in /home/a3024539/public_html/bigtestone1.php on line 21 The output I am looking for is the text from the table to become a …

Member Avatar for thearts.beach
0
300
Member Avatar for engr_pir

Hello, I have used wrodpress Pink rio theme and filterable portfolio ,added some additional images when clicked on project detail link theme flex slider is created right !. I need here my original images (like image.jpg) which will be displayed in its actual size , but image with some cropped …

Member Avatar for diafol
0
199
Member Avatar for raihanbd1000
Member Avatar for diafol
0
145
Member Avatar for bassam572009

hi i have 4 DropDownList i made connction with database sql server 2008 and create 2 button NEW , SAVE button here funtion to DropDown Protected Sub DropDownList_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadComboBox6.Init If flagNEW <> "NEW" Then Dim adapter As New SqlDataAdapter("SELECT ID,DESCR , ACCT_NO,MAISTAKE_ID …

Member Avatar for rubenrav
0
159
Member Avatar for nitin1

code 1: void fun(const int **); int main() { int **p; fun(p); } code 2: void fun(const int **); int main() { const int **p; fun(p); } code 1 is compile error and 2 is not. can you explain why ? as per my knowledge, we can convert a non-const …

Member Avatar for nitin1
0
158
Member Avatar for Banfa

Given this header // header.h #include <string> namespace company { namespace module { class ProjectConstants { public: static const int CONSTANT1; static const std::string CONSTANT2; }; } } and this source file // header.cpp #include "header.h" using company::module::ProjectConstants; const int ProjectConstants::CONSTANT1 = 10; const std::string ProjectConstants::CONSTANT2("Hello World"); Are ProjectConstants::CONSTANT1 and …

Member Avatar for mike_2000_17
0
232
Member Avatar for Danja

Hello, I am trying to use my .NET 4.5 program to, among other things, launch a Cygwin process and read its log file. The code is pretty simple: string cygwin_exe_path = "C:\\(path)\\teLeap.exe"; ProcessStartInfo cyg = new ProcessStartInfo(); cyg.FileName = cygwin_exe_path; var tleap_proc = Process.Start(cyg); tleap_proc.WaitForExit(); When I build the program …

Member Avatar for Danja
0
401
Member Avatar for atulnain007

# Hello Daniweb Users, # I am a highschool student and is corrently doing a project in **C++**. My project is a simple bank management system. I want my program to generate random account numbers for new users. But in a single run i am able to generat only 1 …

Member Avatar for rubberman
0
187
Member Avatar for Abhinisha

what are nested classes? and flush program and poker program .. using a suitable program ..kindly tell me??

Member Avatar for rubberman
0
149
Member Avatar for daino

I'm just wondering what everyone thinks about building from the command line. I've been using Code::blocks with a MinGW compiler but there always seems to be a myriad of problems in building projects. I'm starting to become a little fed up with it's querks though it is probably partially my …

Member Avatar for rubberman
0
258
Member Avatar for while(!success)

Hi guys, I've been trying to update an updatepanel with the selected values of two dropdownlists. The updatepanel is supposed to be updated on selectedindex changed of the second dropdown. The update works on the first initial index changed, but does not work for any subsequent index change. The markup …

Member Avatar for BMXDad
0
1K
Member Avatar for NaikTharki

Hello Everybody Its has been a very long time since I started some programming project for my own curiosity. And now that curiosity has reached a level of desparation. I want to make a talking program. You know like Text-to-Speech. I searched google, but all I found was theory. I …

Member Avatar for JamesCherrill
0
277
Member Avatar for OsaMasw

hey there I have problem in running som function in php I've created simple chat system , I want to delete every message create 1 hour ago or 30 minutes ago I've used mysql_query("DELETE FROM `chat` WHERE `cht_date` < DATE_SUB(NOW(), INTERVAL 1 MINUTE)"); my "cht_date" type in database is "TIME" …

Member Avatar for OsaMasw
0
302
Member Avatar for gagun

ok i was working on simon says app...here is the codes ...something is giving me nullpointerexception...i have trying to think for hours and cant seem to find anything to correct on...please help Here is the Main.java package com.gagan.simonsaysreplica; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; …

Member Avatar for cool_zephyr
0
878
Member Avatar for ross.clare.5

You are interested in keeping track of the team members and competition infor- mation for your school’s annual entries in computer science programming com- petitions. Each team consists of exactly four team members. Every year your team competes in two competitions. As an initial start for your database, create a …

Member Avatar for jwenting
0
1K

The End.