Hey Guys, So using a webform textarea I am passing some data into PHP. This data is basically 4 columns of an excel sheet and potentially unlimited rows. Now I want to be able to go through this data, select each of the four individual elements from each row, insert these as a new row into a MySQL database and do this for each row pasted into the original textarea. I was told that Excel separates new lines with a '\n' character and each column with a '\t' separator. So my approach was to use `$rows=explode('\n',$data)` and then explode each …

Member Avatar
Member Avatar
+0 forum 6

Hi. I'm wondering if someone would be kind enough to answer a question that I have. Recently, I added a new piece of hardware to my gaming PC that was running Windows 7. All of a sudden, Microsoft comes back telling me that my operating system was not valid. I couldn't get them to accept my legal registration key again. Talk about being mad and frustrating. So, I had to go online and purchase another key again so I could reinstall Windows 7 and, thus, upgrade to Windows 10. Now, I'm think of adding a new graphics card to this …

Member Avatar
Member Avatar
+0 forum 4

I wish everyone around here a happy and healty new year! And a life full of joy , love and a lot of programming.

Member Avatar
Member Avatar
+2 forum 9

I have changed the pages of my website including, designs, text , etc. I have also submitted sitemap and in google search console and out of 7 URLS in sitemap, 5 got indexed in sitemap. After that when i checked the site in google, the new changed home page displays old page title instead of new title for the changed version of the home page. I checked google cached text version of the home page, the cache shows new changed version of the home page and also it's new title. But when i checked on google, the new changed version …

Member Avatar
Member Avatar
+0 forum 5

Hi...Everybody.., I am josechukkiri from India, new member at DaniWeb, joined today. I hope that I may get all the necessary support from the members as well as the Admin Team of this great forum.

Member Avatar
Member Avatar
+0 forum 1

Hello Daniweb Community, I was wondering if there is a way to reset a tabcontrol. What I'm wanting to do is have it so when the user will click New it will reset all the tabpages to the way they were when they started the program up. I tried this TabControl1.TabPages.Clear() TabControl1.TabPages.AddRange({TabPage1, TabPage2, TabPage3, TabPage4}) But all it does it remove the pages then re-add them with all the data still there.

Member Avatar
Member Avatar
+0 forum 3

Hi, I am new to programming and have attached my code so far, i need to insert the code to read data from serial port but havent a clue where to put it or how any help would be great Imports System Imports System.IO.Ports Public Class Form1 Private mySerialPort As New SerialPort Private Sub ButtonShowPorts_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonShowPortsol.Click ' Show all available COM ports. For Each sp As String In My.Computer.Ports.SerialPortNames ListBox1.Items.Add(sp) Next End Sub Private Sub ButtonClearList_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonClearList.Click ListBox1.Items.Clear() End Sub Private Sub ButtonClose_Click(ByVal sender …

Member Avatar
Member Avatar
+0 forum 1

Hi, I have writen web sites before but have been asked to create a VB program, but dont know where to start so hoping someone can help me. I need to create a program that sits waiting for data from the serial port which is attached to a set of scales, when the scales are triggered they send the weight of the object down the serial port to the pc that then writes the data to a text file and then waits for the next weight to be received, and continuous to run until stopped at the end of the …

Member Avatar
Member Avatar
+0 forum 5

Javacript novice here, I've been trying to learn how to remove this annoying error I always get on Nike.com I tried to remove it through adblock which I can't The only way to remove this error is click the 'OK' button. heres the script for the "OK" button <button class="notification-button nsg-button nsg-grad--nike-orange" data-index="0">OK</button> what script can have this button click every single time this button appears?

Member Avatar
Member Avatar
+0 forum 1

Hello Community, I'm planning on buying a new computer monitor soon but I'm not sure which one I should buy. These are the two I'm trying to decide between [LG 27MP75HM](http://www.lg.com/au/it-monitors/lg-27MP75HM) or [LG 29UM65](http://www.lg.com/au/it-monitors/lg-29UM65) thing is the 27MP75HM will be good because I can fit more code on the screen but the 29UM65 will also be good because I like to multitask (however I already have dual monitors (monitor and laptop screen)). So what would be better? more code of more multitasking (again as I said I already have my laptop screen). I'm not fussed about the price just what …

Member Avatar
Member Avatar
+0 forum 3

I have created a height score class by keep track of time. In this class top 5 score are saved in file using Preferences and than they are display on screen. First I am setting up top5Time array by filling in all zero's. Than I am getting top 5 time from file and fill into top5Time array. Than I am saving in file and displaying the top 5 time on screen. However there is a bug here. Top5Time gets the data from last run. here is what I mean: 1st time playing - get score of 100 - go to …

Member Avatar
Member Avatar
+0 forum 2

and the new home for codeIgniter is (drumbeat please... and another drumbeat) ...The [British Columbia Institute of Technology (BCIT)](http://www.bcit.ca/) in Vancouver, Canada. Please read the official announcement from ellislab [here](https://ellislab.com/blog/entry/your-favorite-php-framework-codeigniter-has-a-new-home). IMHO, the decision made by the EllisLab is in the best interest of CodeIgniter. Although, I am not sure how far this framework can evolved in the future, I am standing by on what type of license the BCIT will have on their CodeIgniter release. I am hoping that BCIT will remove the PHP 4 fallback and focus on the implementation of the PHP 5 standards. This could have been …

Member Avatar
Member Avatar
+4 forum 4

Whats the difference between the two? What's better?

Member Avatar
Member Avatar
+1 forum 1

i found following code to create a two dimensional array at run time if one of the dimension is known.. char (*c)[5]; c=new char[n][5]; first line is pointer to an array of 5 integers but i couldnt undesratnd the second step.

Member Avatar
Member Avatar
+0 forum 1

Friends I just joined this community and would like to know the other enthusiasts and exchange views with other like minded peoples, by first knowing you from your profile and then picking up a communication thread wher I can pitchin my thoughts

Member Avatar
Member Avatar
+0 forum 5

Hello all! My name is Johnny A. Talavera, call me johnny though. :) I came from HackForums.net and am somewhat experienced in programming. :) So far, the only language I master in is C. I do know the basics and some of the advanced of other languages though like C++, Perl, Python, Asm, Java, and lua. I am experienced with many web designing languages as well. :) I think of myself as a nice, epic, cool and chill guy to talk to. I love music, it is my life. I mainly listen to electronic music. Stuff like Electro House/EDM/Trance/Dubstep/DnB and …

Member Avatar
Member Avatar
+0 forum 2

Hi, If I could please get some help? I have missed the lectures on creating tables due to my daughter being sick. I am trying to follow the lecture notes but I am having issues. I get the following error Error at Command Line : 4 Column : 21 Error report - SQL Error: ORA-00907: missing right parenthesis 00907. 00000 - "missing right parenthesis" `*Cause: *Action: CREATE TABLE Film ( film_code number(5)PRIMARY KEY, title varchar2 (200)FOREIGN KEY, running_time number(3,2) NOT NULL, classification varchar2(200), ); Any help would be welcome. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 2

Hello All, I am new here and hope to help people with technical issues with there sites. I have immense experience in SEO SEM and also have good hands on experience configuring hosting and WordPress websites. Feel free to approach me with any questions related to digital marketing, seo, sem, WordPress configuration and hosting selection. I will also be needing help on other issues :) I hope to be valuable contributor here. Regards Ahsan

Member Avatar
Member Avatar
+0 forum 4

hi can anyone please help me to solve out this problem in python language i want to print this pyramid please help me 1 22 333 4444 55555

Member Avatar
Member Avatar
+0 forum 1

Hello Everyone!! I am Raja from India. Its really great to be here and meet everyone. Thank you All.

Member Avatar
Member Avatar
+0 forum 3

I am creating 30 random from last function and the last function have pass the information to this one. I am using the bubble sort because i want to make a mode. But mode is not idea here. Anyway, it run but it show some crazy output. Here is the output: -1969384903, -1969384675, -1957005749, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, here is the random number: 17-78-81-10-98-67-30-87-63-15 73-63-50-51-61-89-20-89-27-1 6-56-47-91-35-16-97-13-39-81 can someone tell me what i did wrong? void mode(int mode[],int …

Member Avatar
Member Avatar
+0 forum 3

Hello everyone, In my wpf application i have user conrtols like button,rectangle,image etc.. in one side of the window(whole window is divided into 2 canvas panels) i need to implement the functionality where, if i drag any user control and drop it in other area of the window, a new instance of that user control has to be created (put simply, duplicate it). Please help me with the code if possible. thanks in advance.

Member Avatar
Member Avatar
+0 forum 1

I've recently installed a new CPU (Core2Quad Intel) and my computer no longer stays on for more than a minute. All bios are updated and the computer runs fine on my old CPU (pentium d duo). The new CPU is cool to the touch after a shutdown, so heat is most likely not an issue. However, research suggests that a shutdown so quickly and abrubtly is heat releated, so is it possible that the new CPU somehow is 'tricking' the computer into thinking it's overheated? Heat sinks function fine, given the tempurature of the new CPU and the flawless performance …

Member Avatar
Member Avatar
+0 forum 2

Hello My name is Sarah Salah ... I am a Palestinian studying computer systems engineering in Palestine Polytechnic University I am pleased to join you

Member Avatar
Member Avatar
+0 forum 7

i want to create a new data base of existing database.. the name of database willbe given by textbox.

Member Avatar
Member Avatar
+0 forum 4

Hello, I am just starting out with Java. But I had a big puzzle when I am in the first chapter. It says that we have to "initialize" the handle when we are creating one, like String s = "asdf", And later it says we have create a new object for the String s again, String s = new String("asdf"); I think the String s already has an object (asdf) in the "initialization, but why we still have to re-create it again(if I am understanding it right)? Hope someone can explain this more to me, in book it is just …

Member Avatar
Member Avatar
+0 forum 4

Hello world....

Member Avatar
Member Avatar
+0 forum 3

Hey fellow programmers.Im a new python programmer.Only been learning for about 2 weeks.Below is a code I wrote this weekend.It is a simple text adventure.tell me what you think of it.Feel free to copy and paste it into python and run it yourselves.I'm open to suggestions. #Text adventure v 2.0 print('Hello, please choose a character name.') charactername=input() print('Hello' + charactername + ' This is the game of survivial.') print() print('You are a noble guard.') print('The city of Marshingo needs a guard.') print('Will you be their guard?') print('Please use lower case letters only.Thank you.') answer=input() if answer=='Yes' or answer=='yes': print('You have …

Member Avatar
Member Avatar
+0 forum 4

Maybe this is on the site already, but I'm going to ask directly. How do you guys/gals test your scripts or websites on all browsers for compatibilty. I'm new to this and would like to know. For the most part I've found that Firefox, Chrome, Safari, and Opera do alright. But Internet Explorer is a pain in my neck sometimes. How do you test your code for older IE browsers?

Member Avatar
Member Avatar
+0 forum 9

Okay, so I've gotten my second project in C++ and this seems pretty extream for a second project to me, but I'm determined to get this working. so my teacher suplied two header files (set.h and bingoball.h) our job is to take those files and program a bingoball.cpp and a set.cpp, he will than make a generic main.cpp to test our codes. I'm having a lot of trouble with calling functions from other files, I've just started writing the first function of creating a new random bingo ball from 1-75 that than adds the appropriate number. and I just wanted …

Member Avatar
Member Avatar
+0 forum 5

The End.