199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for choeychoco

hi every one. i have a vb6 application and i am using xampp as my database. it works fine when i access my database locally using the following code: Driver={MySQL ODBC 3.51 Driver};Database=NAME_OF_MY_DATABASE;Server=localhost; Port=3306;Option=13; but how will access xampp database stored in a remote pc in a network? thankz.

Member Avatar for choeychoco
0
3K
Member Avatar for zebnoon1

dear friends, I have created Php form to store data in my mysql database. But i am facing problem in updating file data to store in database. Please check my code below $edate=$_POST['edate']; //$edate=date("d-m-y h:i:s a",time()); $ldate=$_POST['ldate']; //$ldate=date("d-m-y h:i:s a"); $cdetail=$_POST['cdetail']; $tenNo=$_POST['tenNo']; $tdetail=$_POST['tdetail']; $name = ($_FILES['uploaded_file']['name']); $mime = ($_FILES['uploaded_file']['type']); $data …

Member Avatar for diafol
0
409
Member Avatar for Oxiegen

Hi. I'm in the process of learning Swift coding and decided to attempt a porting of one of my existing Windows programs. The thing is, that program relies heavily on connecting to a remote MySQL server. I've seen a few attempts to provide various connectors to an assortment of databases, …

Member Avatar for Tim_11
0
1K
Member Avatar for David_83

Hi guys. So I'm building this code in java using NetBeans and literally this code has been working fine the entire time. I haven't changed anything about it and now it's giving me an error and I can't find out what's wrong. Can you please take a look for me? …

Member Avatar for JamesCherrill
0
1K
Member Avatar for hamzah_1

so i am trying to convert my python codes into RUBY. Can someone please help me do that... 1- Write a function lucky_sevens?(numbers), which takes in an array of integers and returns true if any three consecutive elements sum to 7. My python answer: def lucky_sevens(numbers): for index in range(len(numbers)-2): …

Member Avatar for rproffitt
0
246
Member Avatar for amour_1

how can I rewrite localhost/base/app_files/Mat.php to main shop in htaccess.help me with regex. here is what i have so far RewriteRule ^main shop/?$ /app_files/Mat.php [R=301,L] but gives error .

Member Avatar for amour_1
0
96
Member Avatar for janicemurby

im attempting to add date of birth and age to a form and database the date of birth works fine and shows in database as it should be but the age is showing 0 in age column ive tried different things after searching and its staying the same heres the …

Member Avatar for janicemurby
0
206
Member Avatar for Aeonix

Typical code works like this: `$(...).hover(function () {});`. But it also needs to go away when it's loses it's hover. Is there a shorter way to do that than: `$("#x").hover(function () { troll(); });` `$("#x").mouseout(function () { untroll(); });` I just feel that smart people over at jQuery have thought …

Member Avatar for Aeonix
0
212
Member Avatar for phaedrusGhost

Hi All, I am stumped here. Perhaps I've been at it too long and am missing something elementary or it really is a missing link. I hope someone can point me in the right direction here. I have this piece of code for my new widget functions: function underslider_widgets_one_init() { …

Member Avatar for diafol
0
389
Member Avatar for Avinash_11

the code below is working, but it is displaying only one image in a blank page where there is no css I want it to display all the image in a table. please help me... <%@page import="com.sun.javafx.tk.Toolkit"%> <%@page import="java.awt.Image"%> <%@page import="javax.swing.ImageIcon"%> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@page import ="java.sql.*" …

0
175
Member Avatar for janicemurby

hi all im trying to update a script and i have the following errors which ive googled and im lost if anyone can help be much appreciated ty jan x PHP Notice: Use of undefined constant prepare_insert - assumed 'prepare_insert' in /home/matureco/public_html/UPLOADIMAGE/config/db_connect.php on line 32 code for this error is …

Member Avatar for cereal
0
1K
Member Avatar for John_133

I am wondering if there would be any chance that someone could help me out with this, I am trying to teach myself c++ which i find it really interesting and I came accross this and would love to see how it works so i could do it and learn …

Member Avatar for ddanbe
0
280
Member Avatar for OsaMasw

hello guys its been a while since my last question here :P am working right now on PHP script to upload and convert video files to several resolutions ( 360 - 720 ), here a piece of my php code to convert move_uploaded_file($file_tmp, 'upload/'.$fileName); add_to_queue($time,"360-".$fileName,$status="pending"); //where add_to_queue is simple function …

Member Avatar for rproffitt
0
352
Member Avatar for davy_yg

Hello, I need help with CI. Who can help me throughly for my CI problem. Please gives me several alternatives. Thanks in advance.

Member Avatar for diafol
0
181
Member Avatar for newbie14

I have the following socket connection codes. Where for every connection is one new thread. After receiving the data which is done via the producer then I put into a queue for next database processor which is the consumer. This works fine but the moment the queue gets build up …

Member Avatar for JamesCherrill
0
246
Member Avatar for Aeonix

User gives me a `$_POST`, I want to check whether keys (not the values) are there. `$_POST` keys need to be `newemail`, `firstPassword` and `secondPassword`. What I have tried: `if (in_array(array_keys($_POST), array("newemail", "firstPassword", "secondPassword"))) echo "Everything in order".`. How to make it actually work?

Member Avatar for Aeonix
0
242
Member Avatar for Rodrigo_4

Hi, i'm a beginner and i need a macro that look for a specific word, then merge that table an go further. I've created a macro but it doesn't go out of the loop. I have this Word: Sub MergeSpecificRowInOneCell() Selection.WholeStory Selection.Find.ClearFormatting Selection.Find.Font.Italic = True Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = …

Member Avatar for Rodrigo_4
0
205
Member Avatar for jeffersonalomia

Can someone help me on debugging this code `<?php include "../template/php/myconnection.php"; include "../template/php/sessionChecker.php"; include "functions.php"; include "ext.php"; $date = date("Y-m-d"); $breakdown = ""; $transkey = ""; $isFound = false; $file_value = file("header.txt"); if(!empty($_GET['tn'])){ foreach($file_value as $line){ if(strpos($line,$_GET['tn']) !== false){ $isFound = true; $breakdown = explode(" | ",$line); $transkey = $breakdown[3]; …

Member Avatar for diafol
0
347
Member Avatar for nikita.

Hi, i want to delete a column from a file. the file is like : 1|2|3|4|5|6|7|8|9|0 1|2|3|4|5|6|7|8|9|0 1|2|3|4|5|6|7|8|9|0 1|2|3|4|5|6|7|8|9|0 1|2|3|4|5|6|7|8|9|0 1|2|3|4|5|6|7|8|9|0 if i want to remove any column the outout should be like ( suppose 4): 1|2|3|5|6|7|8|9|0 1|2|3|5|6|7|8|9|0 1|2|3|5|6|7|8|9|0 1|2|3|5|6|7|8|9|0 1|2|3|5|6|7|8|9|0 1|2|3|5|6|7|8|9|0 i have used swk command, but its not …

Member Avatar for Liam Huang
0
2K
Member Avatar for _1_28

**NOTE: I do relize this question was answered, but not meeting what I wanted to know. ** Sorry if this in the wrong area or something, I am really new to daniweb :3 So I am 12 and quite interested in game development and computers in general. If you guys …

Member Avatar for Reverend Jim
0
418
Member Avatar for HM
Member Avatar for Mengchen

from turtle import * import random def allTriMedian (w=300): speed (0) vertices = [] point = turtle.Point(x,y) for i in range (3): x = random.randint(0,300) y = random.randint(0,300) vertices.append(trutle.Point(x,y)) point = turtle.Point(x,y) triangle = turtle.Polygon(vertices) a = triangle.side() b = triangle.side() c = triangle.side() m1 = tirangle.median m2 = triangle.median …

Member Avatar for slate
0
988
Member Avatar for Bryan_5

I'm trying to figure out how do i print a distinct enum value by using a conditional statement in my construction of array. I have a enum declaration enum Animal {Rat, Ox, Tiger, Rabbit, Dragon, Snake, Horse, Sheep, Monkey, Rooster, Dog, Pig}; And i construct my array using a voidptr …

Member Avatar for tinstaafl
0
299
Member Avatar for phpio

An online tool embeded vim editor into web to debug your php code. It also helps you to practice vim online. Website: [phpio.net](http://phpio.net) // Press F11 to toggle full screen editting (Ctrl+⌘+F on Mac OS). // Press Ctrl+Shift+F to format code. echo 'Welcome to PHPIO.NET!';

Member Avatar for cereal
0
1K
Member Avatar for Lucas_10

It would be good for some people to help me out on putting sounds in my application without Pygame, because it doesn't work on my PC. If you can then it would be highly appreciated for your help. If you could not reply then you could do a download for …

Member Avatar for rproffitt
0
261
Member Avatar for Gowda_1

I'm new to python, for my project I need to send mail from python.. I'm getting the following error can someone please help me how to get out of it.. Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for …

Programming python
Member Avatar for Lucas_10
0
613
Member Avatar for abdullah_11

Hi all! I need help with Visual Basic.. ![vb.png](/attachments/small/4/7125b0dd5906a51d99082aad2a1a2add.png "align-right") Write a program that reads 3 integers numbers, then the program prints the square and cube of each. i want a one button and one label in form and the result i want in label . and thank you all

Member Avatar for Santanu.Das
0
423
Member Avatar for Johnny_2

trying to Write a program that accepts an applicant to enter his or her marks based on the criteria of clusters, compute the mean and advices whether one qualifies for admission to a university,Maseno, or not. The two groups must be implemented as functions

Member Avatar for shaazzad
0
111
Member Avatar for iMaZx

Question: Estimate the time it will take to cut the grass of five clients. Given the length and width (in meters) of a rectangular yard and the length and width of a rectangular house situated in the yard, compute the time required (in minutes) to cut the grass at a …

Member Avatar for rproffitt
0
447
Member Avatar for Tim_10

I need to comput and display the sum and average of the cubes of the even natural numbers between 2 and n. Where n is entered by the user. Im stuck on how to average the sum of the cubes. Help Please. This is what I have so far. def …

Member Avatar for tinstaafl
0
381
Member Avatar for Garry_1

Hi I have 60 picture boxes on a form, I want to update these images using a for loop. I have tried Dim PCB as Image For i = 1 to 60 PCB(i).Image = mySampleProject.My.Resources.TestPCB1 next but get an error "Class 'System.Drawing.Image' cannot be indexed because it has no default …

Member Avatar for Reverend Jim
0
833
Member Avatar for Amber_6

I want to convert letters "M", "E" and "D" into maritime flags from turtle import * def drawInitials (ref=(0,0), w=100, spacing=10): """Params: ref (int 2-tuple): bottom right corner, the reference point w (int): width of each letter, in pixels spacing (int): separation between consecutive letters, in pixels """ speed(0) drawInitials …

Member Avatar for slate
0
303
Member Avatar for TheGuy831
Member Avatar for TheGuy831
0
2K
Member Avatar for SimonIoa

Hello i want to pass a value with the id #allcountries. `html += '<option style="width:90%"><a href="'+v.country_id+'">'+v.nam+'' +'</a></option>';` `<div id="allcountries"></div>` `alert($("#allcountries"));` when i select a country it returns [object Object] on the alert when it should return the id of the country

Member Avatar for SimonIoa
0
343
Member Avatar for can-mohan

Hi, I would linke to know what is the best way to synchronise the shared memory segment. is threads usage are also advisible whie synhcronising the shared memory segement. in what circumstances we should use threads or semaphore to synchronize the memory segment.

Member Avatar for rproffitt
0
464
Member Avatar for Andrew_34

I am trying to send a message to my websocket server but I keep getting this error. Traceback (most recent call last): File "send.py", line 5, in <module> ws = websocket.create_connection("ws://ipaddress:9001") AttributeError: 'module' object has no attribute 'create_connection' I created a python server file server is started but when I …

Member Avatar for Andrew_34
0
680
Member Avatar for shany0786

i have problem and i am new to this i have a domain like kk.com there were many products on it when user clicks on buy now here will be redirected to subdomain like subdomainname.kk.com/product-1 or subdomainname.kk.com/product-2 based on product clicked my question is how can show details on this …

Member Avatar for diafol
0
223
Member Avatar for Roy_7

Hi, I have installed Specflow in VS 2015 but I cannot see feature file when I add a new item. This worked up until Friday when my company changed domains. I have also created a completely new project and installed specflow but still no feature files are available. Can anyone …

Member Avatar for Roy_7
0
242
Member Avatar for Amiel_2

Java Hi when I tried to insert my output the void displayed null or 0 can you tell me what's wrong with my rpogram? tnx My main program `package zarashop; int choice; public static void main(String[] args) Scanner absorb = new Scanner(System.in); // phase 1 login cloth cl = new …

Programming display java
Member Avatar for JamesCherrill
0
368
Member Avatar for rpv_sen

Hi Friends. i am working on my internal work. i am having n dynamic rows, Each and every row contain total. i want to sum all the rows total. i have attached the screen shot for the reference

Member Avatar for diafol
0
2K
Member Avatar for bhavna_816

I have created an aplication in C# windows application version 1.1 to display some records in a datagrid. The datasource of the datagrid is datatable and not any database.I want tht when we edit any cell of a particular column and press "Enter" it should show a Message Box let's …

Member Avatar for Reverend Jim
0
4K
Member Avatar for Brandon_9

This is a website I developed for online, desktop flash games. I make money off of ad revenue. Here is the link: http://www.quickscopegaming.com Could some of you give me your opinion on the site and what I should change/add? Also, here is the Facebook page if you want to give …

Member Avatar for AssertNull
0
307
Member Avatar for koneill

All, I have a packaged app - whose snippet is below and the form that displays shows ascending date (ascendingSort) and Title as the default items - I'd like to show the Publication Date (availableDate) and the descending date (descendingSort) as the two defaults - how in either Jquery or …

Member Avatar for Phaelax
0
342
Member Avatar for Yasir_7

how to create a simple calculator for addition, subtraction, multiplication,division and factorial using switch...case statement in C++ programm

Member Avatar for rproffitt
0
146
Member Avatar for johans22

Got blue, red and yellow lights that each can turn ON independently of one another. Using operators, structs, etc. how to obtain the current color, if having: Red & Blue is purple, Blue and Yellow is green and Yellow & Red is Orange. This is not a homework.

Member Avatar for rubberman
0
268
Member Avatar for jonymanolo

Hello Guys I am looking for some code,that can help me to build a C# method that can generate a photo mosaic (a big picture that is build up from other pictures) but really i dont have idea how can i do this. :S Thanks for all your help :D

Member Avatar for Paul_45
0
1K
Member Avatar for Hishamullah

Hi, I want to create a Alternate Coloring in MsFlexGrid that using the Visual Basic Programming. Here I attach a source code : MsFlexGrid I give name : Flex If Wt <= RsParts.Fields!Lowerlimit Then '*********************************************************** '2. Section for create Color at 1 Column under REMARK Dim lngRow As Long Dim …

Member Avatar for rproffitt
0
1K
Member Avatar for adebayo23

Hi, Please I have a problem inserting record to mysql database, it always shows this error " Warning: mysqli_query() expects parameter 1 to be mysqli, null given in C:\wamp\www" here is my code <?php if(isset($_POST['submit'])){ $member_dat1=$_POST['member_first']; $member_dat2=$_POST['member_lastname']; $member_dat3=$_POST['sex']; $member_dat4=$_POST['member_type']; $member_dat5=$_POST['m_email1']; $member_dat6=$_POST['m_phone1']; $member_dat7=$_POST['m_address1']; $member_dat8=$_POST['m_address2']; $member_dat9=$_POST['city']; $member_dat10=$_POST['state']; $member_dat11=$_POST['added_by']; $member_insert= "INSERT INTO members(member_first,member_lastname,sex,member_type,m_address1,m_address2,city,state,m_phone1,m_email1,added_by)" …

Member Avatar for diafol
0
695
Member Avatar for Peter_36

How do I make a line of code that would go back to a part of a program without making it a loop? For example ###Code I don't want repeated### some line for later to come back (line 2) $$$code I want to repeat$$$ jump back to line 2

Member Avatar for ddanbe
0
360
Member Avatar for Croco_1

I'm totally new to c++ programming and I need to solve this problem: in the class 5 pupils got marks for the course informatics on a total of 30 points. these points have to be typed on the keyboard and have to be changed in percent. the average has to …

Programming
Member Avatar for tinstaafl
0
425

The End.