CodingPHP Halp!

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  Ken (SHIELDSIT)  
 To:  ALL
42260.1 
Hola peeps!  Haven't been here in ages, how is everyone?  I'm hoping someone can help me with some PHP code I'm struggling with.

The long story short is, I use glob to get a list of folders and insert them into a mysql database.  But I'd like to be able to see if there are differences between the glob and sql results to see if I need to delete something from the database or other things like that.  I can post my code if that helps but I've made so many changes that I've lost the closest thing to working that I had.

Thanks my foreign friends!
------------------------------------------------------------------------
"If you don't like donut, then leave it alone. Nobody force you to eat it."
0/0
 Reply   Quote More 

 From:  graphitone  
 To:  Ken (SHIELDSIT)     
42260.2 In reply to 42260.1 
{{{Ken}}}

How the hell are you?

I've no idea how to help, but nice to see you back here. :)
0/0
 Reply   Quote More 

 From:  [The best version of] (DSMITHHFX)  
 To:  Ken (SHIELDSIT)     
42260.3 In reply to 42260.1 
Is there too many to do a manual inspection?
“A Chinese-Built Replica of the Titanic Will Set Sail From Dubai”
0/0
 Reply   Quote More 

 From:  Manthorp  
 To:  Ken (SHIELDSIT)     
42260.4 In reply to 42260.1 
Hey Ken! Tea?  Or in the teeth of the midterms, do you need something stronger?

"We all have flaws, and mine is being wicked."
James Thurber, The Thirteen Clocks 1951
 
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Ken (SHIELDSIT)     
42260.5 In reply to 42260.1 
I'm not helping unless you promise to stay around. :@
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  Ken (SHIELDSIT)     
42260.6 In reply to 42260.1 
<?php
checkIfAllMyFoldersAreInTheDatabase();
?>

Me
0/0
 Reply   Quote More 

 From:  Matt  
 To:  Ken (SHIELDSIT)     
42260.7 In reply to 42260.1 
You should be able to use a combination of array_diff to determine the ones that you need to remove and perform DELETE queries to remove them.

Also, get yo ass back on Whatsapp

doohicky

0/0
 Reply   Quote More 

 From:  Ken (SHIELDSIT)  
 To:  graphitone     
42260.8 In reply to 42260.2 
Thanks!  I forgot that I changed my notification email address to one I never check!  Sorry for the delay!
------------------------------------------------------------------------
"If you don't like donut, then leave it alone. Nobody force you to eat it."
0/0
 Reply   Quote More 

 From:  Ken (SHIELDSIT)  
 To:  Matt     
42260.9 In reply to 42260.7 
I cannot stand that app.  I moved back to Hangouts with the cool kids... well, Ben's there so we aren't all cool!

Got snow?
------------------------------------------------------------------------
"If you don't like donut, then leave it alone. Nobody force you to eat it."
0/0
 Reply   Quote More 

 From:  Ken (SHIELDSIT)  
 To:  ALL
42260.10 
Thanks all!  Been meaning to come around more!  I have been trying to ignore the politic things going on.

Hiya PB!

Matt, I've been working on it for a few weeks and I have it working somewhat.  Learning as I go so it's interesting!  I'm sure my code isn't up to standards but I want to get it all working first and then make it pretty.
------------------------------------------------------------------------
"If you don't like donut, then leave it alone. Nobody force you to eat it."
0/0
 Reply   Quote More 

 From:  Ken (SHIELDSIT)  
 To:  Chris (CHRISSS)     
42260.11 In reply to 42260.6 
 :-P
------------------------------------------------------------------------
"If you don't like donut, then leave it alone. Nobody force you to eat it."
0/0
 Reply   Quote More 

 From:  Ken (SHIELDSIT)  
 To:  Matt     
42260.12 In reply to 42260.7 
I'm pretty sure that's what Chrisss did.  haha, he was helping me a lot on Hangouts.
------------------------------------------------------------------------
"If you don't like donut, then leave it alone. Nobody force you to eat it."
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  ALL
42260.13 
Why doesn't Teh get a Matrix or Kune server?
0/0
 Reply   Quote More 

 From:  [The best version of] (DSMITHHFX)  
 To:  Peter (BOUGHTONP)     
42260.14 In reply to 42260.13 
Haha. "Powered by Wordpress"
“Brexit is a uniquely British story of political backstabbing, hubris and incompetence spawned by factional disputes within the ruling Conservative Party”
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  [The best version of] (DSMITHHFX)     
42260.15 In reply to 42260.14 
I'm no fan of Wordpress, but I have no issues with software projects picking an off-the-shelf CMS rather than waste time better spent on the project itself in building a site from scratch.
0/0
 Reply   Quote More 

 From:  [The best version of] (DSMITHHFX)  
 To:  Peter (BOUGHTONP)     
42260.16 In reply to 42260.15 
Wordpress is my kryptonite.  X-O
“Brexit is a uniquely British story of political backstabbing, hubris and incompetence spawned by factional disputes within the ruling Conservative Party”
0/0
 Reply   Quote More 

 From:  william (WILLIAMA)  
 To:  [The best version of] (DSMITHHFX)     
42260.17 In reply to 42260.16 
Any special reason (apart from its huge number of bugs and amazingly poor integration with partner projects and plugins)?
never trust a man in a blue trench coat, never drive a car when you're dead
0/0
 Reply   Quote More 

 From:  [The best version of] (DSMITHHFX)  
 To:  william (WILLIAMA)     
42260.18 In reply to 42260.17 
Not needed in ~90% of use cases. Clients too dumb to use it without routinely screwing it up, so better off with plain vanilla HTML5, and get edits done faster, better, cheaper by maintenance contract.
“Brexit is a uniquely British story of political backstabbing, hubris and incompetence spawned by factional disputes within the ruling Conservative Party”
0/0
 Reply   Quote More 

 From:  william (WILLIAMA)  
 To:  [The best version of] (DSMITHHFX)     
42260.19 In reply to 42260.18 
Oh right - you mean as a supplier where the client specifies it. Yes, I can see that would be annoying. 
never trust a man in a blue trench coat, never drive a car when you're dead
0/0
 Reply   Quote More 

 From:  [The best version of] (DSMITHHFX)  
 To:  william (WILLIAMA)     
42260.20 In reply to 42260.19 
Apart from that, I just find it super-slow and kludgy to populate with content through the CMS. Minor edits are ok. The template structure is also very constraining, and the visual designers here aren't very mindful, or appreciative of constraints. Custom code nearly always works out better.
“Brexit is a uniquely British story of political backstabbing, hubris and incompetence spawned by factional disputes within the ruling Conservative Party”
0/0
 Reply   Quote More 

Reply to All  
 

1–20  21–22

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2018 Project Beehive Forum

Forum Stats