199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for altjen

Hi Daniweb users :) Im having a problem over here :( Im developing a application on VB and currently using MySQL to connect to a online database but Microsoft(on Albania) wanted us to change from SQL to MySQL data. I HAVE ABSOLUTELY NO IDEA WHAT THE SYNTAX OF CONNECTING SHOULD …

Member Avatar for DaveAmour
0
539
Member Avatar for saxxyblack

Hey there, whoever whose reading this, I'd like to know how to obtain the coordiantes when a user clicks the form **in relation to the form**, meaning if the top left hand corner of the window is clicked, it should be x=0, y=0... I should think this is an easy …

Member Avatar for saxxyblack
0
185
Member Avatar for arctushar

Hi I have a page named 'xyz'. and I have a webpage xyz.com Now I want that visitor must like my page to view my web site. So I need a code which will check whether my page has been liked by user or not. NB: I dont have any …

Member Avatar for DaveAmour
0
177
Member Avatar for Stefce

Hello everyone im working on like button which im a little confuzed with my problem i have this sql and im only able to like the tickets which are in my account $sql = "UPDATE `kladilnica` SET Liked = Liked+1 WHERE ticket_id = '".$like."' AND Username = '".$user."'"; but without …

Member Avatar for JorgeM
0
281
Member Avatar for stokie-rich

Hi Guys hope your all well, I have found some code to create a quiz and this I have done, it was working a few weeks ago... but for some reason its now decied to stop working! When I run the page on my localhost I'm getting the following eorror …

Member Avatar for matrixdevuk
0
253
Member Avatar for chaitu11

I have a gallery in grid. For eg: https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSegNVXMSnTRzHETnAjZXCd6siwHQysMXc_jp1OyiSDie2_9jhsIg Each row can cont max of 4 images. I have written while loop. i want to get the total count of images in each row For eg: row1 -> 4 (images) row2 -> 3 (images) <!-----------------------------------------------------------------------------> <div class="main_bg"> <div class="top_bg1"> <div …

Member Avatar for matrixdevuk
0
204
Member Avatar for anmol.raghuvanshi1

i have continued my developing my code on e-commerce website to grant the discount to client on basis of coupon code entered <?php /** * Consider and apply voucher codes * Types of voucher code * - = FIXED AMOUNT OFF * % = PERCENTAGE OFF * s = SET …

Member Avatar for matrixdevuk
0
345
Member Avatar for riahc3

Hey I was wondering how to generate a Windows popup in C. I mean by "Windows popup" as in (for example) when you do a net send message to a PC, a simple Windows popup comes up on the PC you sent the message to with the message. How can …

Member Avatar for tirumalai
0
9K
Member Avatar for Anna123

Dear All, Can aynyone help me with a script which could scan the regions of one file to the regions with second file, for example file 1 looks like this, chr5 88013976 88018740 file 2 : chr5 88013975 88018742 ENST00000340208.5 chr5 88024310 88024445 ENST00000340208.5 chr5 88025035 88025164 ENST00000340208.5 I want …

Member Avatar for Anna123
0
150
Member Avatar for Niloofar24

Hello. I was looking for a tutorial or any example of creating web crawler that i found this code somewhere and copied and pasted to test it: First, it is a web crawler, right? Because when i gave it a url of a website, the output was some linkes were …

Member Avatar for vegaseat
0
441
Member Avatar for makungu

SCENARIO You must type in a list of numbers and make sure that in the list, there are no identical numbers; in other words, no number must appear twice in the list. When entering a new number, make sure that the number does not exist in the list yet. If …

Member Avatar for deceptikon
0
93
Member Avatar for ghalib951

What is the output of program segment: vecList: push_back(3); vecList: push_back(5); vecList: push_back(7); vceIt = vceList.begin( ); ++vecIt; vecList.erase(vecIt); vecList.push_back(9); copy(vecList.begin( ), vecList( ).end( ), screen); cout << end1;

Member Avatar for NathanOliver
0
191
Member Avatar for Christian_4

I have a system named library system and all works properly but not in borrowing i can search the books i want to borrow but when i input my member_ID i encountered runtime error which says " No value given for one or more required parameters" but i have filled …

Member Avatar for Christian_4
0
330
Member Avatar for terrymold

Hi I am having a bit of a problem with some JavaScript and PHP. The script (below) works exactly as wanted, but if I run it with the latest version of IE, the JavaScript appears to be looping and it makes the link flash, and it can only be stopped …

Member Avatar for almostbob
0
167
Member Avatar for rchawdhari

when i run select on temporary table in mysql it gives all records. But when i tried in my php page it give blank reason. Please help me out.

Member Avatar for rchawdhari
0
95
Member Avatar for coder91

I have a datatable called datasource that I use to populate a gridview and to use to export the data to a csv file, however for some reason it is leaving the last cell of the last record in the csv blank. Just wondering if anyone has came across this …

Member Avatar for coder91
0
112
Member Avatar for can-mohan

Hi Guys, In below code you can see that i am able to execute the functionality of class a , inside the class b through composition and object of b can be used to call the methods declared inside the a class. #include <iostream> using namespace std; class a { …

Member Avatar for can-mohan
0
437
Member Avatar for exoruel

All of us started from being a rookie, and I'm one of those rookies who are new in this course. Maybe its time for you to share your expertise unto the newbies? Hope anyone might help me willingly in my program.Here's the problem: Use Pointers and Functions: Ask a user …

Member Avatar for David W
0
265
Member Avatar for joshuawilson11

Hi so in my list i have multiple characters - '32' which i need to replace with a space, would anybody be able to give an example of how to do this? Thanks

Member Avatar for vegaseat
0
141
Member Avatar for vivekH
Member Avatar for vivekH
0
188
Member Avatar for Charisse_1

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Call validation() Select Case valid Case False Exit Sub End Select Try Dim FileSize As UInteger Dim mstream As New System.IO.MemoryStream PictureBox1.Image.Save(mstream, System.Drawing.Imaging.ImageFormat.Jpeg) Dim arrImage() As Byte = mstream.GetBuffer() FileSize = mstream.Length mstream.Close() sqlString = "INSERT INTO tbladminaccount(accname,accposition,accage,accaddress,accpassword,accgender,Acc_pix) …

Member Avatar for DaveAmour
0
163
Member Avatar for balmurali

Take pattern from one file and search for that pattern in second file if doesnt present copy that pattern into the another file

Member Avatar for 2teez
0
130
Member Avatar for DS9596

How do I write a recursive function to compute (3^2)+(3^3)+(3^4).......+(3^n) ?

Member Avatar for David W
0
405
Member Avatar for Jaken_1

Like the title says. I have a user-inputted string that I need to do math calculations with, therefore, I need to convert the string to an integer. This is my current code. What can I do to manipulate the number the user inputs? org 0x100 section .data prompt db "Enter …

0
107
Member Avatar for rpv_sen

Hi friends, I am using MSSQL Database, it has more than 13246 reconds in a table. I am trying to display it in a table with bootstrap. But i am unable to load my datas. can any please help me how to resolve this my code is below <?php session_start(); …

Member Avatar for pritaeas
0
272
Member Avatar for logicslab

Hi dear friends, My current problem regarding inputstream value processing . I don't get the block level full value as shown in loop.I got last byte value only cipher.init(cipherMode, publicKey); byte[] encText = null; while ( (bufl = inputReader.read(buf)) != -1) { encText = RSAEncryptUtil.encrypt(RSAEncryptUtil.copyBytes(buf,bufl),(PublicKey) publicKey); } String hexString = …

Member Avatar for Slavi
0
147
Member Avatar for donz365

Hi, I am working on a test site locally. I am loading an xml file into my database with teh following sql query: LOAD XML LOCAL INFILE 'C:/courseInfo18.xml' INTO TABLE wp_courses ROWS IDENTIFIED BY '<Course>' (ReferenceNo, ProviderCode, ProviderName, CourseID, CourseName, CourseTypeID, CourseTypeName, LocationCode, LocationName, StartDate, FinishDate) ; It works fine …

Member Avatar for DaveAmour
0
983
Member Avatar for sirushti

I am developing a social networking website using a**sp.net mvc** and sql server 2008. I need reference links, sites or reference books which help on knowing what are the best practices, code patterns and best third party tools to integrate and work on. Any suggestions from you people will help …

Member Avatar for tlcd_vip
0
274
Member Avatar for ms95

hi guys i've written an bare OS and now im trying to go a little furthur and create a very simple GUI for it . but i have no idea how to create such a thing . my os is running in text_mode though i can change to some other …

Member Avatar for Schol-R-LEA
0
3K
Member Avatar for fatalaccidents

Hello all, I'm hoping this is related enough to python to merit being posted here. I'm hoping someone will possibly have a better way of doing it altogether. I'm using tetgen to try to create a hollow dome. I was using triangle and then just triangulating a circle and raising …

Member Avatar for fatalaccidents
0
2K
Member Avatar for Doogledude123

I'm making a map editor for my game and I'm at the point where I need to save the map to a file. My Maps contain multiple layers though, which will be stacked on eachother for display. I know I could save each file seperately but I wanted these to …

Member Avatar for ~s.o.s~
0
327
Member Avatar for can-mohan

Hi guys, I would like to discuss my design with one query. below is the code snippet. It is clear from below code snippet that class pd is privately derived from AbstractClass as both are different classes and there is no relation between them.Now in my class pd i need …

Member Avatar for can-mohan
0
428
Member Avatar for spud91

Hi Guys! i have the following code: <?php session_start(); include_once("config.php"); ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>View shopping cart</title> <link href="style/style.css" rel="stylesheet" type="text/css"></head> <body> <br> <div id="books-wrapper"> <!-- #content to center the menu --> <div id="content"> <!-- This is the actual menu --> <ul id="darkmenu"> <li><a …

Member Avatar for spud91
0
343
Member Avatar for daniel1977

Greetings: I have been struggling to clear this error I have in my code, but I cannot for the life of me find it. Error: End of File detected before Left Brace Attached is my code, appreciate any help. #include <stdio.h> #define SIZE 20 int i, j; int temp[SIZE], pressure[SIZE]; …

Member Avatar for NathanOliver
0
207
Member Avatar for Szabi Zsoldos

Hi guys, I have one simple logical question that I seem not to figure it out, sadly... We have a list of objects and I loop trough them, list of products. We need to create anchor maps for each category, so I did a comparison with temp variables to check …

Member Avatar for Szabi Zsoldos
0
254
Member Avatar for Brown_2
Member Avatar for DS9596

How do I write a program to compute run-time of a recursive and non-recursive functions to find the 43rd Fibonacci number?

Member Avatar for Schol-R-LEA
0
289
Member Avatar for hightechka

i am new in VB.net (about 3 weeks now) and i am using visual studio 2008 to make a reservation and billing program project. i want to change the background color of the row having the entry which time (Day Swimming 8am-5pm, night swimming 4pm-11pm and overnight swimming 9pm-11pm) will …

Member Avatar for hightechka
0
437
Member Avatar for Tycellent

Hey everyone, Got 2 questions here that i'm hoping will be answered. Say i have 2 variables int iValue; int iValueArray[300]; and later on init. them in the constructor Banana::Banana(): ival(0), ivalArray() {} 1. What would the ivalArray() indicate? Would it be the same as initializing every element to null/empty? …

Member Avatar for Tycellent
0
335
Member Avatar for chaitu11

$descrr = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only …

Member Avatar for chaitu11
0
1K
Member Avatar for chaitu11

$descrr = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only …

Member Avatar for pritaeas
0
783
Member Avatar for DS9596

I'm not sure if I'm doing this part correctly, the part where I have to make it all lower case then to all upper case, then just first name. #include <iostream> #include <cstring> #include <stdio.h> using namespace std; int main() { char a[3][14] = { "Barack ", "H", " Obama" …

Member Avatar for DS9596
0
1K
Member Avatar for mark103

Hi guys, I need your help, I want to close a page when a button is pressed. I'm using the script `add_address.php` to output a list of email addresses from the `message` box and I want to output the email addresses to the `text` box in the `send.php` script Here …

Member Avatar for edbr
0
223
Member Avatar for Makara

Hello. I have displayed data from SQL Table in the HTML form and I want to use this same form to update COMMENT field in the sql. I have already coded my page as follows; <?php // Connect to server and select databse. $con=mysql_connect("localhost", "root", "")or die("cannot connect"); mysql_select_db("ison",$con)or die("cannot …

Member Avatar for Makara
0
2K
Member Avatar for TMLAH

Hello, I have a script that allows user to upload a file to a mysql 5 database. That is working OK. The File size is accurate. However, my download script is for some reason downloading the files without any content - 0KB. The files are OK when I open them …

Member Avatar for abhisheklnt
0
6K
Member Avatar for Giovanne

Hello Guy, I have coded a successful log of accounts in localhost but when i uploaded this to webhost. These set of codes dont work anymore. Please help these are the codes. Student_login_handler.php include_once 'Connect.php'; $flag = ""; $learner_id = mysql_real_escape_string(htmlentities($_POST['learner_id'])); $student_password = mysql_real_escape_string(htmlentities($_POST['student_password'])); $student_id = htmlentities($_GET['id'], ENT_QUOTES); $student_id = …

Member Avatar for hanspeare_1
0
204
Member Avatar for boney

Hi, My query: $query = "select * from ( select * from students union all select * from students ) as tmp order by rand() limit 5"; $myquery = mysqli_query($db_connect, $query); while($students = mysqli_fetch_assoc($myquery)){ $stdid =$students['stdid']; $name = $students['name']; $dept = $students['dept']; echo "<br><br>".$stdid."<br>".$name."<br>".$dept; } There are 20 rows for …

Member Avatar for JorgeM
0
157
Member Avatar for Jazmine_1

Hey everyone! So I need to write two header files and they attach to the main cpp file, but we can not change the cpp file. They have to attach and make the program run. Please help! Main cpp CANNOT be changed! //22 34 56 4 19 2 89 90 …

Member Avatar for Schol-R-LEA
0
248
Member Avatar for AllanSS

I have news pages generated dynamically using page news.php taking data that is input into a MySql table and would like to have the page title to be the same as the news headline of each page. I'm searching internet and although there is lots of info on this subject …

Member Avatar for diafol
0
2K
Member Avatar for berserk

OKAY i have been working on this for a little while and i feel i am getting close but there are a few things i can't seem to find on the internet that are good examples/tutorials/reading materials. 1. i need my table to expand and collapse (got that figured out) …

Member Avatar for diafol
0
2K

The End.