Samurai Legend Posted October 27, 2014 Posted October 27, 2014 Run this in phpmyadmin - You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Create a file called insurance_agent.php - You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Open up hospital.php and add this somewhere - You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Open up cron_day.php and add this somewhere - You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Open up attackbeat.php, attackwon.php and attacktake.php and find - You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace with - You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 1 Quote
CodingKid Posted October 27, 2014 Posted October 27, 2014 Nice work SL. Just two hints, If a variable is not being used in a function you do not need to call it and try indent your code and layout it out better, it makes it much easier to read (in my opinion), for example.... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Looks much neater in my opinion and you only need the $ir and $db functions to be called in the global as they are the only two being used. Quote
Samurai Legend Posted October 27, 2014 Author Posted October 27, 2014 (edited) Thanks for the advice! I updated my post :D I am just trying to find out how would I send an event to the users saying how much they paid. Edited October 27, 2014 by Samurai Legend Quote
KyleMassacre Posted October 27, 2014 Posted October 27, 2014 Using event_add($ir['userid'],"Some message here"); Quote
Samurai Legend Posted October 28, 2014 Author Posted October 28, 2014 $ir wouldn't work as it is in a cron file... Quote
KyleMassacre Posted October 28, 2014 Posted October 28, 2014 Oops my bad. You will just have to query the db just like you normally would Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.