15,918,596 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 12989102 (Top 7 by date)
Member 12989102
30-Sep-17 18:38pm
View
the problem is not in the code (that works) but in the logic! If i use insert into the records are added but if i delete voluntarly an element it isn't deleted in the database. While if i use REPLACE, when the file is cleared, all records will be deleted in the database.
The problem it's simply: Is there a way to keep the items updated with P, obviating the problem of emptying?
Member 12989102
10-Sep-17 16:57pm
View
I know (not very well) how foreach work. But i don't know how can I get this:
match [2] [0] + match [3] [0] + match [4] [0]
[2] => Array ([0] => 9RUPISOLV 20BUST) in PRODUCT column +
[3] => Array ([0] => 00001) in QUANTITY column +
[4] => Array ([0] => 04) in TERMINAL column
After that, the cycle will have to continue
match [2] [1] + match [3] [1] + match [4] [1]
[2] => Array ([1] => 0CIBALGINE TWO FAST * 24CPR 200MG)) in PRODUCT column +
[3] => Array ([1] => 00002) in QUANTITY column +
[4] => Array ([1] => 01) in TERMINAL column
etc...
Member 12989102
10-Sep-17 15:50pm
View
I know how to use mysql but i don't know how use foreach (php) for my case!
If someone can do it in C# or VB.NET, for me it does the same!
I need that, when a file is edited, through regular expression:
#([0-9]{4,9}\s+[A-Z]{1}\s+([' . $specialChars . 'A-Z0-9 ]+)\s+([0-9]{3,7})n?\s+P\s+([0-9]+))# it search that i want and insert it into a mysql db
Member 12989102
10-Sep-17 15:46pm
View
Don't worry this service is for an internal web app, it's not public!
Why there aren't any solution?
Member 12989102
10-Sep-17 15:46pm
View
i posted on stackoverflow but nobody helped me
https://stackoverflow.com/questions/46143280/how-insert-array-in-a-mysql-db-foreach#comment79248309_46143280
Member 12989102
8-Feb-17 12:48pm
View
I would, but I can't. Where is the red cross in that question? there isn't
Member 12989102
8-Feb-17 11:57am
View
i don't understand! what do you mean?
Show More