199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for davy_yg

What is Artificial Intelligence for? Is it only for game development? is there any other things that it might be useful for? Thanks for advice.

Member Avatar for cereal
0
270
Member Avatar for John_116

Dear All, I Made a facebook quize website, i wrote code but i have a problem, I want get my name and one of my friend name. but it didn't work. <?php session_start(); // added in v4.0.0 require_once 'autoload.php'; use Facebook\FacebookSession; use Facebook\FacebookRedirectLoginHelper; use Facebook\FacebookRequest; use Facebook\FacebookResponse; use Facebook\FacebookSDKException; use …

0
170
Member Avatar for Tyron_1
Member Avatar for Reverend Jim
0
360
Member Avatar for NOVICE3

When a user enters the page in question, a textarea is populated from data from a text file stored on the server. The user can then edit that text (add, erase all or part, and modifiy). When the submit button is clicked, the edited text is written back into the …

Member Avatar for cereal
0
1K
Member Avatar for Jon_7

I'm attempting to simplify my fundraising page, and would like to show exactly how much each donation would help us out. I've listed the options below, but I would like for the first two dropdown boxes to change the third one depending on the combination chosen. Fruthermore, I'd like for …

Programming javascript
Member Avatar for rproffitt
0
329
Member Avatar for ddanbe

Yes, WPF. The learning curve is steep, but what amazing things you can do with it! Look at this hexagon window for instance. Serves no purpose in a business environment I guess, but in a gaming situation it could work. For me, it was just fun to get this up …

Member Avatar for deceptikon
0
957
Member Avatar for Mohammed_44

//The php section of the code <?php function getJSONFromDB($sql){ $conn = mysqli_connect("localhost", "root", "","rent"); //echo $sql; $result = mysqli_query($conn, $sql)or die(mysqli_error()); $arr=array(); while($row = mysqli_fetch_assoc($result)) { $arr[]=$row; } return json_encode($arr); } $jsonData= getJSONFromDB("select Pic from Display"); $jsn=json_decode($jsonData); //for loop to retrieve rows from database for($i=0;$i<sizeof($jsn);$i++){ $a=$jsn[$i]->Pic; //here is the main …

Member Avatar for network18
0
380
Member Avatar for gahhon

Like the title asked, what should i do to change the cursor into custom image when the form is loaded, i've tried so many style by google searching, but still can' work. :/

Member Avatar for Asanka_1
0
2K
Member Avatar for MOHAMMAD_40

Hello, I am new to Javascript and I am having trouble with my assignment. I was told to create a simple "Grade Calculator" using prompt boxes It was fairly easy to make this "Grade Calculator" but there is only one problem that i cannot figure out. I was told to …

0
194
Member Avatar for nonik

please help me, create an algorithm that can be used to spell out a positive number worth less than 1,000,000 and create a c ++ program for the algorithm

Member Avatar for stultuske
0
388
Member Avatar for COKEDUDE

How would I split this big if statement across multiple lines? It works perfectly on one line. if (mysql_query(con, "CREATE TABLE Matches(match_id INT UNSIGNED PRIMARY KEY, date DATETIME NOT NULL, tournament INT UNSIGNED, playerA INT UNSIGNED, playerB INT UNSIGNED, scoreA INT UNSIGNED, scoreB INT UNSIGNED, offline bool)")) { finish_with_error(con); } …

Member Avatar for AndrisP
0
267
Member Avatar for WIdley

I have a PDF form that I created in Adobe and made it fillable. I was able to upload it to the website. The problem is the submit button does not work. What should I do?

Member Avatar for rproffitt
0
255
Member Avatar for random_1

Hi. I'm retrieving a record and populating the data into input fields. there is a column called fld_order_date type timestamp. How do i retrieve the date? i have the usual retrieval: $stmt = $conn->prepare("SELECT * FROM tbl_orders_a154287 WHERE fld_order_id = :oid"); $stmt->bindParam(':oid', $oid, PDO::PARAM_STR); $oid = $_GET['edit']; $stmt->execute(); $editrow = …

Member Avatar for benanamen
0
260
Member Avatar for COKEDUDE

This is what I came up with for reading a csv file with multiple types. It seems to get the job done in all cases but 1,2,,"a". Where there is a blank space. Can I please have some ideas on how to fix this? const char* getfield(char* line, int num) …

Member Avatar for COKEDUDE
0
331
Member Avatar for Jamshaid _1

Hi guys i need some help i am tryig to code a python fake bank system. The program needs to be able to deposit withdraw,check the balance and quit the program however my code doesnt seem to be working for some reason can someone please help me. Please find attached …

Member Avatar for Adam_40
0
609
Member Avatar for sheik_2

Hi, Below is my code can you please help me to fix it. function gw_bbcode_html($t) { $regexfind[] = '/\&lt;(.+)\&gt;/esiU'; $t = str_replace('&amp;', '&', $t); $t = str_replace('&quot;', '"', $t); $t = str_replace('&039;', ''', $t); $regexreplace[] = "gw_bbcode_html_tag(gw_bbcode_htmlspecialchars('\\1'))"; $t = preg_replace_callback($regexfind, $regexreplace, $t); # $t = str_replace('&#', '&amp;#', $t); $t = …

Member Avatar for rproffitt
0
836
Member Avatar for Poongkuyil
Member Avatar for Adam_40
0
249
Member Avatar for Stefce

Hello everyone hope you are doing well, i was busy these days i was having problem with the police in my country, they catch me smoking weed and now i got criminal record... but never mind that i hope will be better in the future. So i got in mind …

Member Avatar for taersious
0
950
Member Avatar for Dipayan_1

Can you please Create a student database in java using string and arrays wherein we can store details of students Like their ROLL no, Name, Father's Name,DOB, Section and then also search a student using his DOB or Roll No. or Name?

Member Avatar for pty
0
2K
Member Avatar for Ajit_3

I don't see 'Targer Framwork' change (.NET Framework 4 Clint profile) or others to --->> (.NET Framework 4) in vs 2015 Advance compiler settings

Member Avatar for rproffitt
0
277
Member Avatar for Zxander

I've come across a little problem. How do I make it so that after my game is finished, I can choose whetever to exit my program or just restarting it from the beginning. In main method I've started my while loop to check my tries left if my counter is …

Member Avatar for Zxander
0
363
Member Avatar for subhra44

Can anyone tell me how to retrieve records from database one at a time.. I am attaching a sample code here: [CODE]include('connection.php'); $sql1="SELECT * FROM question_master"; $result=mysql_query($sql1); while($row = mysql_fetch_array($result)) { echo $row['Question']; }[/CODE] Let me explain the code.. There is a table named "question_master" (containing some questions) in database …

Member Avatar for akshay_12
0
5K
Member Avatar for HoneyBadger

Guys, I am trying to change the background color of my window in WxPython. Here is what I got: Why doesn't it work? [CODE]import wx class my_window(wx.Frame): def __int__(self, parent, id): wx.Frame.__int__(self,parent,id,'My Window', size=(300,200)) self.Colours() def Colours(self): self.pnl1.SetBackgroundColour(wx.BLACK) if __name__ == "__main__": app=wx.PySimpleApp() frame=my_window(parent=None,id=-1) frame.Show() app.MainLoop()[/CODE]

Member Avatar for Rufus_1
0
11K
Member Avatar for Viking_2

So I have to write a program that takes the amount and weight of pumpkins entered by a person and then outputs them back with their corrisponding weight class that i specify. I keep getting a syntax error on the elif statement and I was wondering if i could have …

Member Avatar for hericles
0
365
Member Avatar for Magic8Computing

How do i format my Query result so it has thousand seperator and only to 2 decimal places <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Daily Sales</title> <link rel="stylesheet" href="../styles/login.css" media="all" /> </head> <body class="normal"> <?php include("../includes/x3connect.php"); ?> <?php $sql="SELECT SUM …

Member Avatar for rproffitt
0
475
Member Avatar for Magic8Computing

Hi I have the following code that i can run in MSSQL Query and the result are returned correctly but when i try to run it in PHP it errors what do I need to change to get it to work please. SELECT SUM (CASE WHEN FFP.BPARTNER.CUR_0='GBP' THEN (FFP.SORDERQ.YORIQTY_0 * …

Member Avatar for Magic8Computing
0
411
Member Avatar for Alex_69

Basically title. Part of a larger program, but I can't figure out how to remove just the first letter (it's always not a number; A, B, C, X, etc.), and is always followed by numbers. So essentially, I'm trying to get "x234" to "234". I figured I could use lb …

Member Avatar for Alex_69
0
4K
Member Avatar for Sinisa_1

Good man James helped me learn die roll board game programming in Java, and I applied it on Ladders and Snakes. Made one in Java. Now I'm learning to do it in Android. Here's the question: Making simple Ladders and Snakes game. Can't use those in Google Play, they don't …

Member Avatar for Sinisa_1
0
3K
Member Avatar for Khalid_12

Hi, I have been given a project to finish in school in 3 phases, the thing is I am not that good when it comes to programing. The project was to develope a tic tac toe game as following: **Phase 1: Write a program that will first ask the user …

Member Avatar for Sinisa_1
0
514
Member Avatar for omojolinho

Using Python, tokenize using space as a parameter. Count the total number of words in the document and the frequency of each word. Also, identify the word with least frequency appearance and most frequency appearance

Member Avatar for rproffitt
0
224
Member Avatar for JHus00

I need to convert hours into weeks, days, and hours. My professor was hinting that there might be a way to do this using the modulus operator but I can't seem to think of a way that its possible. Can anyone help? thanks!

Member Avatar for cereal
0
4K
Member Avatar for Howard_2

Hey been practicing coding using Python 3 tutorial,my question is how to put what learn into a project,or should I say how or what information is their to get this mindset

Member Avatar for pty
0
228
Member Avatar for divinity02

hi this is one of my assignment that I have to do. it is a triangle calculator. everything well with it but it just the calculation. when I run it, it gives a zero output. I think it may be my calculation. can someone take a look at it and …

Programming java java-swing
Member Avatar for tinstaafl
0
287
Member Avatar for divinity02

hi james cherril I am doing a voting system application of which I have to hand up today. I am getting a runtime error when I entered a record and try to save it. as I entered one record and when the save button is pressed it give me a …

Member Avatar for divinity02
0
323
Member Avatar for Dietrich_1

So when I run my code I get a bug where it doesn't display the name for the person when displaying the scores: ![Screen_Shot_2017-10- ![Screen_Shot_2017-10-22_at_8_55_08_AM.png](/attachments/large/4/db8f249841da73d8654d7c6ea699aa03.png "align-center") Here is my code, I have been stumped for several hours: import java.util.Scanner ; public class StudentApp { public static void main(String []args) { …

Member Avatar for JamesCherrill
0
2K
Member Avatar for Dietrich_1

So I get an error that says "no suitable constructor found for Student(no arguments constructor)" /** * Write a description of class Student here. * * @author (your name) * @version (a version number or a date) */ public class Student { private String name ; private int test1 ; …

Member Avatar for tinstaafl
0
423
Member Avatar for mattyd

I've been reseraching the best way(s) to store both ipv4 & ipv6 ip addresses. Simply put, so far there seems to be much debate as to how to do so properly ranging from storing them as varchar or in a binary format. I'm really not sure at this point. I …

Member Avatar for pty
0
6K
Member Avatar for veiLrn

Hi, I'm new on this forum, but a friend directed me here to seek further assistance with a program I am trying to create. I have to create a program that can manage 10 bank accounts, one of which uses appropriate type definition to store the name, account number, balance …

Member Avatar for ASIF_21
0
32K
Member Avatar for Nrsrh

I'm having a problem with the program i did. The problem is ; It says that the conversion ( for the grade part , the ones with '+' and '-') may lose it's significant digit.. Does it mean that i can't use the plus symbol or the minus symbol ?? …

Programming c++
Member Avatar for Nrsrh
0
2K
Member Avatar for idaryl

I am trying to get a small plugin Im putting together to work from the admin page - I have the functrion working, although it would be better to "activate" it from that page *the default would be "OFF" here is a copy of the function - it just turns …

Programming php wordpress
0
172
Member Avatar for Dietrich_1

import java.util.Scanner; public class LuckySevens { private int diceLength; private int rolls; private int sides; private int numRolls = 0; public static void main (String [] args) { Scanner reader = new Scanner(System.in); int diel, die2, dollars, count, maxDollars, countAtMax; System.out.print("How many dollars do you have? "); dollars = reader.nextInt(); …

Member Avatar for rproffitt
0
655
Member Avatar for Daron_1

I am working creating a fully encapsulated, homogeneous singly linked data structure. The Listing class and SinglyLinkedList class that are part of the whole application compile fine, but the problem that I am having is performing different operations such as insert, fetch, update, and delete inside of a do-while loop …

Member Avatar for rproffitt
0
305
Member Avatar for mattyd

I have recently been using XAMPP for dev. Although I'm new to XAMPP, the recent issue sprung up surprisingly, the simple script running a day before. The script is just being used to test the ability to capture/display an IP address; this will later be used in a larger project: …

Member Avatar for mattyd
0
654
Member Avatar for victoria_5

Im trying to make a program that shifts all my elements of array to the right by one and move the last element into the first position.how would i move the last number out then shift numbers over then move the last number back into the fist position? here is …

Programming
Member Avatar for ddanbe
0
328
Member Avatar for Daron_1

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="XEx14ProductReceipt.Default" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Ch14: Product Receipt</title> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link href="Content/bootstrap.min.css" rel="stylesheet" /> <link href="Content/site.css" rel="stylesheet" /> <script src="Scripts/jquery-1.9.1.min.js"></script> <script src="Scripts/bootstrap.min.js"></script> </head> <body> <div class="container"> <header class="jumbotron"><%-- image set in site.css --%></header> <main> <form id="form1" runat="server" class="form-horizontal"> <div …

0
171
Member Avatar for Lennac

So, I'm relatively new to programming and I'm working on a program that allows for input of grades, course hours, and then calculates GPA based on that. But, I'm going step by step, the first thing I'm trying to do is ensure that I can input the data so that …

Member Avatar for Lennac
0
345
Member Avatar for davy_yg

Hello, I have been trying to hide and show css with button click: home.blade.php #container{ display: grid; grid-template-columns: 350px auto 300px; grid-template-rows: 800px 800px 800px; grid-template-areas: "menu cont sidenav"; position: fixed; z-index: 1; color: black; } menu { grid-area: menu; } cont{ grid-area: cont; background: white; padding: 50px; } cont …

Member Avatar for pty
0
380
Member Avatar for Jim_21

I have this block of code where l run through a table and display matched results in a listbox. It works fine, but my question is how do l enable the user to select an item in the listbox once it is displayed? Suggestions are welcomed as always. Thanks Try …

Member Avatar for rproffitt
0
492
Member Avatar for a_10

Hello Everyone, I have developed a DBMS and I want to store the credentials for server, and user name securely so that the users don't have to enter the password to the database EVERY time they start the software. My question is, how would I go about doing this? I …

Member Avatar for rproffitt
0
235
Member Avatar for COKEDUDE

Are there any good tutorials c programming with mysql? I only found one promising link, unfortunately they neglect to to show what is in their header files which doesn't help very much. http://zetcode.com/db/mysqlc/

Member Avatar for rproffitt
0
407

The End.