Quantcast
Channel: User daygloink - Stack Overflow
Browsing latest articles
Browse All 18 View Live

Comment by daygloink on Populate empty database columns with !empty older row...

Well, I have 2 tables. One is for people and the other is for people_history. The people_history table can contain more than one row per person. I am trying to avoid having the exact same columns in...

View Article



Comment by daygloink on Highlight difference between 2 arrays / database rows

They are the exact same array. I am simply doing a comparison by offsetting the array in the second array_diff parameter by 1 element.

View Article

Comment by daygloink on Email POST data with Content-type: application/xml

In an email. See my OP for details.

View Article

Comment by daygloink on Bootstrap button beside paragraph (responsive)

That just pushes the paragraph below the button.

View Article

Comment by daygloink on Select count with left join counting from both tables

I left join assignments because I want to include buyers with no assignments. Thank you for the distinct tip :)

View Article


Comment by daygloink on Select count with left join counting from both tables

The answer was a google maps code have an empty latitude and longitude causing an invalid comma in the code.

View Article

Comment by daygloink on Bootstrap button beside paragraph (responsive)

This is awesome and exactly what I was looking for. Thank you.

View Article

Comment by daygloink on Join within a subquery

This takes substantially longer to execute than my query.

View Article


Comment by daygloink on array_walk_recursive to apply function to each array...

Great answer which allowed me to understand the issue. I ended up using array_map instead.

View Article


Answer by daygloink for How to get a Youtube channel RSS feed after 2015...

Get the channel id by searching for the attribute data-channel-external-id in the source code of the YouTube channel page. (thanks to helq).This code will grab all video titles and ids from the feed...

View Article

Answer by daygloink for Bootstrap button beside paragraph (responsive)

Ended up just using display: table and display table-cell for this. i.e.:HTML:<div class="filters"><div class="cell"><a href="#">Button</a></div><div class="cell">...

View Article

Bootstrap button beside paragraph (responsive)

I'd like to have a button which responsively stays beside a paragraph, without the paragraph text wrapping around the button.For example, here is the current code I am using:<div...

View Article

Join within a subquery

I need to use a join within a count subquery.Here is my code, so you can see what I'm trying to do:select verticals.name, (select count(*) from `leads` where `id_vertical` = verticals.id) as...

View Article


Answer by daygloink for PHP function to make slug (URL string)

I wrote this based on Maerlyn's response. This function will work regardless of the character encoding on the page. It also won't turn single quotes in to dashes :)function slugify ($string) { $string...

View Article

Answer by daygloink for array_walk_recursive to apply function to each array...

Heres the solution I used (thanks to aldrin27's comment):$_POST = array_map('sanitize', $_POST);

View Article


array_walk_recursive to apply function to each array element not working at all

I have the following code on a form page:array_walk_recursive($_POST, 'sanitize');It is used so I can echo the $_POST variables inside of each form field after a user submits a form.Here is the...

View Article

Gitlab API get repository tree recursively

How do I get a repository tree recursively using the Gitlab API?I am currently using this method: GET /projects/:id/repository/tree?ref_name=:ref_nameThis works, however it is not recursive and is only...

View Article


Answer by daygloink for Executing Curl in PHP to do a Stripe subscription

I ran into the same issue. I wanted to use PHP's CURL functions instead of using the official stripe API because singletons make me nauseous.I wrote my own very simple Stripe class which utilizes their...

View Article
Browsing latest articles
Browse All 18 View Live


Latest Images