Jump to content

[SOLVED] Explode() in mysql_query?


JJohnsenDK

Recommended Posts

Hey

Is it possible to use the explode function in a mysql_query function? I need this because i have a database which looks like this:

Game:
game_id: 1
home_id: 3
visitor_id: 5
home_actions: g:1|g:1|g:1|y:4
visitor_actions: g:3|r:2|y:2|g:4|y:4

Player:
player_id: 1
fname: Jesper
lname: Johnsen
team_id: 1

So what i need in home and visitor_actions are to explode all the signs expect the numbers so i can use the number to define the player_id from player and then call out the players name.

Do my request make sense?
Link to comment
https://forums.phpfreaks.com/topic/32550-solved-explode-in-mysql_query/
Share on other sites

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.