64,152 Solved Topics
Remove Filter ![]() | |
Hi, so I've got this multithreaded server which correctly waits for clients and assigns them to a worker thread. From there, the client is sent an object `Packet` which contains variables `Player` and `Round` (simplified, it contains more data but these are the most important). I'm building a simple top … | |
Hi guys, I am trying to update a single column in an already existing record with a value in a textbox in Access database using VB.NET 2008 express edition. This is how it should happen, combo box is drawing product IDs from the table and two textboxes display product description … | |
Ok, here is what I get when I run the query. 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near newmessage`int(4) unsigned NOT NULL DEFAULT `0`,`companyi' at line 4 Here is what … | |
How can I convert this Ruby Gem to PHP? token = "your_nypl_api_token" client = NyplRepo::Client.new(token) ``` ``` token = "your_nypl_api_token" options = {:debug => true, :server_url => "http://api.repo.nypl.org/api/v1"} client = client = NyplRepo::Client.new(token, options) Also url = "http://api.repo.nypl.org/api/v1/items/8568ccd0-c614-012f-1d74-58d385a7bc34.xml" uri = URI.parse(url) http = Net::HTTP.new(uri.host, uri.port) headers = { "Authorization" => … | |
hello everybody ^^ I have to make a calander ,and to let the user to insert any event ! the calander it self is working <<but I don't know how can I write the code to give the user the ability to enter a new event by entering some fields … | |
Hi everyone, Is there any way to redirect page without header and javascript ? | |
using a tutorial am learning how to create a shopping cart when on my machine its working fine but when hosted on a different server its not working. this is the line i need help with //current URL of the Page. cart_update.php redirects back to this URL $current_url = base64_encode("http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); … | |
Hi everyone, I am creating a invoice page, for that in the invoice table I have fields like(id, ionvoice_no, invoice_date,client_name,address,service_cost,tax,etc). While I enter invoice, I don not want to enter invoice, but it should change automatically from 1 previously it has to check whether already invoice number is or not. … | |
need some assistance. I am currently learning vb.net with sql. I have two textboxes (txtValue and txtText) , a dropdownlist (ddl1) and save button (btnAdd). I insert value to txtValue and txtText (eg: txtValue: A and txtText: Apple). when i click button Add, The value will display in dropdownlist (like … | |
Hey everyone, i've got myself stuck on a problem of determining a winner. While doing a battle if a player runs out of cards it will use the last card(card that started the battle). I cant seem to get all the bugs out of it; and i think im overlooking … | |
![]() | Hi guys, I need help with some homework... hopefully this is the right forum. So my last project assignment is making a shopping cart and having the user add, remove items therefrom. I am having a problem adjusting the totals after the items get removed from the cart: Using Lists … ![]() |
Hi, all I have a web page that breaks down to several divs, two of them containing iframes (one for content, one for a menu): <HEAD> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <link rel="stylesheet" type="text/css" href="styles/default.css?ver=33"> </HEAD> <BODY> <div id="wrapper"> <div id="header">Welcome to my website</div> <div id="menu"><iframe name="frame-menu" id="frame-menu" src="menu.php" frameborder="0" height="30"></iframe></div> <div id="main"><iframe … | |
recently ive seen video of a man which showed on how A* works, that is some algorhythm for pathfinding in 2d in games, to show this he made a game in c# (visual studio only), where he could explore the "maze" board in 3d and could see the red square … | |
Public Function setEmailSend(ByVal sSubject As String, ByVal sBody As String, _ ByVal sTo As String) As Boolean Dim oApp As Outlook._Application Dim oMsg As Outlook._MailItem setEmailSend = False oApp = New Outlook.Application oMsg = CType(oApp.CreateItem(Outlook.OlItemType.olMailItem), Outlook._MailItem) oMsg.BodyFormat = Outlook.OlBodyFormat.olFormatRichText oMsg.Subject = sSubject oMsg.To = sTo 'here I need the current … | |
Hello, A simple program I am writing uses a struct to store a key and key size variable. However I get an error that states that my struct variable is being used without being initialized... I dont really know why it is telling me that. Code: `keygen.hpp` #include <ctime> #include … ![]() | |
I need some assistance here. I currently learning and i would like to create a simple webpage (as a hobby). I have two textboxes (textbox1 and textbox2) , a dropdownlist (ddlist) and save button (btnSave). I insert value to textbox1 and textbox2 (eg: textbox1: A and textbox2: Apple). when i … | |
![]() | hi there, Dim queryString As String = "select avg(pumpnum) from petrol_table" Using adapter As New SqlDataAdapter(queryString, connectionString) Dim table As New DataTable adapter.Fill(table) Dim row As DataRow = table.Rows(0) TextBox5.Text = row.ToString as the code stands now, all i get in the textbox is "system.data.datarow" the column called "pumpnum" is … ![]() |
I am trying to access the site hacksummit.org but it kept on being redirected to Freelancer's site. Any ideas as to why this happens? | |
How can we save a text file we make using python in another directory?The default directory is always the directory in which , the program is ? is there any way to change this?Can this be done when we are creating the file (FILE=open(filename,"w")) thanks in advance | |
hello, I am having issues inserting comma separated values to my database, this is what I have: $invoiceProducts = "14:12,"; // eventualy the 14:12, will multiply to other values 43:2,34:1,45:1, etc $invoiceProducts = addslashes($invoiceProducts); //stripslashes() to remove the slashes tried with and without stripslashes. $stmt = $conn->prepare("INSERT INTO invoices (invoiceActive, … | |
this code will display all courses user has <h1>YOUR COURSES</h1> <form action="delete.php" method="POST"><ol> <?php $con=mysqli_connect("localhost","FYP","123","FYP"); $sql= mysqli_query($con, "SELECT C_Code FROM F_COURSES WHERE F_ID=".$_SESSION['userid']); while($row = mysqli_fetch_array($sql)){ echo "<li name='course'>".$row['C_Code']."<input type='submit' value='Delete'>";} ?></ol></form> I need when user click on delete button that course delete from F_courses <?php session_start(); if (! empty($_SESSION['logged_in'])) … | |
So I'm building this pretty simple top trumps card game as part of an assignment. I have the game logic built, the swing GUI is in place and I plan to do all the calculation on the server app and have it update the client up with the game's state, … | |
I am trying to compile the following code and I keep getting a reference error for my output file through a function. The purpose of the program is to read a file, sort through arrays, and output into a certain form. I am sure it is something small, but I … | |
a)I am working on a payroll program The first base class is bonus the class should contain 2 public properties salesid and sales. Include a default constructor and a parameeterized constructor in the class.Also include a a getbonus method(function) that calculates a salespersons bonus using the formula sales*0.05 b) create … | |
I am trying to update pdf file to sql but getting error (line 17) as **operator '&' is not defined for types 'string' and '1-dimensional array of byte'** on beow line cmd.CommandText = "UPDATE PDC_CHQ_IN_HAND set PDC_CHQ_IN_HAND.PDF='" & data & "'WHERE PDC_CHQ_IN_HAND.RefNo='" & TxtRefNo.Text & "'" * my code is* … | |
![]() | Hello everyone, Dim SI As String = "" SI = CheckedListBox1.SelectedItem Dim TextcommandSQL As String = "" Dim myCOLUMN As String = "" myCOLUMN = ComboBox1.SelectedItem TextcommandSQL = "SELECT * FROM test_table where " & myCOLUMN & " = " & SI MsgBox(TextcommandSQL) Dim con As New SqlConnection con.ConnectionString = … ![]() |
Hi, my question is very simple. Like the title says; How to declare an object? I have this declaration in my program; Class_name Object_name; and it is giving me an error, saying "Expected a ';' before "Object_name" And this is driving me nuts because putting a ';' before the object … | |
So i am back again, working with arrays this time. I can get it to run in the main but i am not sure how to make this code into a void function . #include <iostream> #include <iomanip> #include <string> using namespace std; int main () { // Declare variables … | |
I have an issue with the random generator. I use the code; myNumber = rand() % 100; //for numbers 1 - 100; My problem is, the numbers getting generated have a pattern. Such that the first output is 33, 43, 62, 29, 0, 8 ... Why is this so? I … | |
Hello i have this codes to try to get this working. But when on ./index.html all the li are given a class of current_yes exept for the ./clients.html link. And the other way aroud if i go to Clinets/clients.html then all li exept ./index.html are given a class of current_yes. … | |
I am getting this error while trying to login to my school managment software.It gives error message when i dont write anything in username and password but when i type correct login details it gives this error An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll Additional information: A connection … | |
Hello,I've a gridview control and inside a cell, i've put 3 radiobuttons under a same group. I'm not able to get which radio button is selected through checked property. As checked property is giving false always, when i check it with breakpoint. How can i get a the selected value … | |
Hi I am not familiar in how to create HTML Embeded emeil. Currently I am using below code, It is work fine and send email with plain text. It is not look nice. I need to formated embeded email with logo and below information together to the email. I have … | |
I am writing a web page for an online radio station that uses SHOUTcast 1.9.8. I am trying to retrieve the currently playing song from the server, display it on the page, and keep it updated. I am looking for the best way to do this. I can get the … | |
i am getting that error when i try to insert a record. this is my code <?php include "config.php"; include "header.php"; ?> <a href="index.php" class="btn btn-success btn-md"><span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> Back</a> <?php if(isset($_POST['bts'])): if($_POST['nm']!=null && $_POST['ln']!=null && $_POST['gd']!=null && $_POST['tl']!=null && $_POST['ar']!=null){ $stmt = $mysqli->prepare("INSERT INTO personal(name,lname,gender,telp,address) VALUES (?,?,?,?,?)"); $stmt->bind_param('ssss', … | |
** I was building a program that is supposed to paint an image in a JPanel. I should be able to select an image (such as a JPEG) from the Open item in the File drop down menu and then it should be visible in a new window. However, the … | |
so i am trying to output course information when the course number is selected and the button is clicked. here is the html <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Course Info</title> </head> <body> <h1>Course Information Search</h1> <form action="" method="post"> <select name="course" id="course"> <option value="420-121">420-121</option> <option value="420-122">420-122</option> <option value="420-123">420-123</option> <option … | |
I have found several different methods for doing this online but for some reason i just cant get any of them to work for me, it may be they way im calling them or something but it also might involve my lack of expereince with JS but regardless I have … | |
HI I have vb.net with ms access database application. I want to create log in form Here is my code but when enter the details and hit Login button it says"datatype mismatch error" Dim con As New OleDbConnection Dim cmd As New OleDbCommand Dim rd As OleDbDataReader con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data … | |
Hi.. I have this problem in vb 2008 with this MDI parent form.. I know that you can't put any imageBackground for this, so I've just put a pictureBox the size of the MDIparent form to make it look like its background. But when I'm opening another form(it is just … | |
header : [u'ID', u'Hindi', u'Telugu'] 1 .[u'hhd1', u'\u0924\u093e\u091c\u093e\\JJ \u0938\u093e\u0901\u0938\u0947\u0902\\N_NN \u0914\u0930\\CC_CCD \u091a\u092e\u091a\u092e\u093e\u0924\u0947\\JJ \u0926\u093e\u0901\u0924\\N_NN \u0906\u092a\u0915\u0947\\PR_PRP \u0935\u094d\u092f\u0915\u094d\u0924\u093f\u0924\u094d\u0935\\N_NN \u0915\u094b\\PSP \u0928\u093f\u0916\u093e\u0930\u0924\u0947\\V_VM \u0939\u0948\u0902\\V_VAUX \u0964\\RD_PUNC', u'\u0c24\u0c3e\u0c1c\u0c3e\u0c36\u0c4d\u0c35\u0c3e\u0c38\\JJ \u0c2e\u0c30\u0c3f\u0c2f\u0c41\\CC_CCD \u0c2e\u0c3f\u0c32\u0c2e\u0c3f\u0c32\\JJ \u0c2e\u0c46\u0c30\u0c3f\u0c38\u0c47\\V_VM_VNF \u0c26\u0c66\u0c24\u0c3e\u0c32\u0c41\\N_NN \u0c2e\u0c40\\PR_PRP \u0c35\u0c4d\u0c2f\u0c15\u0c4d\u0c24\u0c3f\u0c24\u0c4d\u0c35\u0c3e\u0c28\u0c4d\u0c28\u0c3f\\N_NN \u0c35\u0c3f\u0c15\u0c38\u0c3f\u0c66\u0c2a\u0c1c\u0c47\u0c38\u0c4d\u0c24\u0c3e\u0c2f\u0c3f\\V_VM_VF .\\RD_PUNC'] Data explanation The first column is the id of the sentence The second column is the sentence in hindi language The third column … | |
Hello everyone! My Access MDB file has "disappeared" from his documents folder. I haven't deleted it, I have checked recycle bin, system restored, searched and so on. No luck! Any suggestions on what else I could do to recover the file? | |
<?php if (isset($_POST['submited'])) { if (isset($_FILES['upload'])) { $allowed=array('image/JPEG','application/x-bittorrrent'); if (in_array($_FILES['upload']['type'],$allowed)) { if(move_uploaded_file($_FILES['upload']['tmp_name'] , "../upload/$_FILES['upload']['tmp_name']")) { echo'Your file has been successfully uploaded!'; } else { echo'Please upload a torrent file!'; } } } if ($_FILES['upload']['error']>0){echo 'An error has occured.';} if (file_exists ($_FILES['upload']['tmp_name']) && is_file( $_FILES['upload']['tmp_name'] ) ){ unlink ($_FILES['upload']['tmp_name'] ); } … | |
Hi. I want to set `read more` for my cms posts. The code i found was `<?php the_content( $more_link_text , $strip_teaser ); ?> ` but still don't know how and where to use it. Any suggestion? | |
Please explain when this error occurs.. duplicate symbol _Firstdata in: list.o main.o ld: 1 duplicate symbol for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) | |
When Im working out on MVC edit. It shows that `it must be a date`. How can I resolve This? | |
I wanted to chain 3 selects and I got it working using this code. http://jsfiddle.net/FJFFJ/1/ The issue I now have is, how do I fetch the selected values from each dropdown in PHP? For example, the above creates 3 select boxes when the page is opened. When I click on … | |
I want to insert from product (id, name, price). How can I insert it using mvc[c#], mssql manually. | |
I want to insert into DB 000001 and 000002 and .... but inserting 1 and 2.. any body help me to solve this problem my code is $b = mysql_query("SELECT MAX(app_number) FROM tb2_payment ")or die(mysql_error()); while($row_b = mysql_fetch_array($b)){ $app_number=$row_b['MAX(app_number)']; if($app_number=="") { $app_number2=000001; } else { $app_number2=$app_number+1; } } echo $app_number2; | |
I am getting all instead of am or pm any body help to get am or pm function display_ct() { var strcount var x = new Date() var x1=x.getMonth() + "/" + x.getDate() + "/" + x.getFullYear(); x1 = x1 + " - " + x.getHours( )+ ":" + x.getMinutes() … |
The End.