|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
losing mysql connection during cron job
>
The script cycle is, symbolically: > foreach (recipients as batch) { mail() using batch of recipients; mysql_query() update table; sleep(60); } final mysql_query() update table as complete; > > why don't you edit your code? foreach (recipients as batch) { mail() using batch of recipients; mysql_query() update table; if(mysql_errno()==ERRR_CDE_YU_GET){ mysql_connect(); mysql_select_db(); } sleep(60); } |
![]() |
| Viewing: Web Development Archives > Mailing Lists > PHP > losing mysql connection during cron job |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|