That could be a valid question, at a glance I think the code should work , if not then confirm the query results
I found what makes the problem but coulden't solve, let me explain from beginning, I made a php bot to schedule messages, it gets a message, gets the message peer, and so on... when using just one peer (bot needs to send message just to one peer) everything works well, but sometimes that I add multiple peers to schedule I can get array of all table of database, but when put it in a loop (foreach e.g.) the variable that I push new values to it inside the loop can't be used outside of loop. I tried gettype() and it returned array, but when I dump it using print_r() it returned null (or maybe an empty array)
Обсуждают сегодня