Jump to content

Need help with parsing a file


ronnie3148

Recommended Posts

It will be a txt file and I need to parse it and insert it into a mysql, I know there are many parser examples out there, but half I don't understand...... this is how the file is... I'll also attach it...

 

[5/3/2011 12:37:14]: SuspectsKill: TeK_SiC	Pwn^Guandi	9mm SMG

 

I need to place the killer and the person who got killed, I don't really need the weapon if there not in the db I need to enter it..... and if they are I need it to add a kill on there name...

 

this is just some of the log.. thanks for the help!

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/230154-need-help-with-parsing-a-file/
Share on other sites

This will become a large project for you.  I suggest you read tutorials on how to assign variables and arrays, as well as how to insert/update data into a database.  nobody here is going to write it for you, but we will give you guidance on how to get where you need to go.

 

To start yourself off, learn about arrays and how to deal with the database.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.