« first day (2581 days earlier)      last day (2360 days later) » 

12:21 AM
@Sean oh, where's the link to the issue - I could do with some google drama.
 
I want to remove the 00 (seconds) in my query
Select REPLACE(STR_TO_DATE(DATE_FORMAT(NOW(),'%H:%i'),'%l:%i'),':','')
problem is i didn't specify the seconds on it but the result is: 74500
 
12:41 AM
i already solved thanks btw hehe
 
> Should we stop using the Google font service and host on our own?
short answer: yes
Longer answer: yeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee‌​eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee‌​eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeees
 
:-)
 
tbh - we would probably be caught by this also, as we don't version pin the built fonts. But at least we could revert.
 
Just so stupid
But whatever forces people to not add more tracking by google to their sites is good in my book :)
 
Wes
12:45 AM
i've been doing that for ages
download + fontsquirrel for the win
 
I have had some issues with font squirrel lately bitching about copyrighted fonts
 
Wes
it always did
 
It used to only be checking the tick, but not it just refuses
or maybe i was just always lucky
 
Wes
if it gives false positives you just need to rename the font, like using font forge (i think i've used it once...) or inkscape
the check is name based for sure
 
I just use one of the random other ones that my search gives me :D
 
Wes
12:48 AM
:B
 
arial 4 life
 
Now get the tattoo
In helvetica
 
Or papyrus
 
It's really not :P
I wondering whether somebody else from google will step in considering they wouldn't want people to self host
or who knows maybe they will just kill the entire service again :P
 
supporting optional versioning sounds like an easy win.
 
1:03 AM
Hi. in this foreach
foreach($arr as $key => $value){ // start $header array loop
    foreach($value as $k => $v){ // start $value array loop
    	if($k==2){
    		if($v==1){


				}



    		}
    	}
 	}
}
how can I call index 1 when index 2($k) is called
 
Wes
{
       {
}        {
     }           {
}       }
{         }
}
 
wtf
@Wes in my sublime the syntax indentation is ok
 
Wes
you are mixing tabs and spaces
you should only use spaces (4) for indentation
what do you mean with "call index 1" ?
 
i have array
$arr=array(array());
$ctr=0;
while (odbc_fetch_row($rs)) {
$arr[$ctr][1]=odbc_result($rs, "pin");
$arr[$ctr][2]=odbc_result($rs, "device_id");
$arr[$ctr][3]=odbc_result($rs, "time");
$arr[$ctr][4]=odbc_result($rs, "device_name");
$ctr++;
}
I wanted to call $arr[index][1] inside the $v==1 if
how can I achieve it?
 
Wes
what is "index"?
is it $v?
 
1:08 AM
$k
 
Wes
and why are you doing that in a loop?
 
I have multiple data and per data of it, Im going to collect all infos coming from another table, that is why im using loop.
foreach($arr as $key => $value){ // start $header array loop
    foreach($value as $k => $v){ // start $value array loop
    	if($k==2){
    		if($v==1){
			SELECT QUERY
			 while($row=$qry->fetch_array()){
                      INSERT QUERY
			 }

    		}
    	}
 	}
}
sorry for the spaces but this is actually the code. inside of fetch array is the insert query.
 
Wes
$arr[$k][1]
i have no idea what you are doing...
but you can use variables as array keys
 
you answered my question haha
i used $arr[$key][1]
thankssss
 
1:23 AM
mornings
 
@Wes hahahah awesome
 
Wes
ftr some fry bread in butter
we put butter everywhere
not much but some. the lady is saying bs
 
:D
Holy fucking onebox
 
Can windows make password protected zips?
oh wait
7zip probably can
 
Wes
1:39 AM
what a bunch of retards. that's "pizza rustica" and it's an actual thing
and there are like a million variants of it
 
You are actually offended right now aren't you?
 
Wes
no i am not
 
be honest
:P
 
Wes
i am offended by the retards that say "no butter on bruschette"
i bet they've never cooked in their entire life :B
 
:)
 
Wes
1:41 AM
frying bread in butter is totally legit where i was born, but not many do it because it's fat
but doesn't mean it's wrong :B
 
nothing wrong with fat
 
Wes
there are millions of variant for every recipe, we've tried them
also penne alla vodka, i am pretty sure that we've cooked penne al gin at least once
and vodka and gin are basically the same thing
so, how is that not italian?
 
See you are offended
:D
 
Wes
:B
 
1:47 AM
\o
 
@Wes wat
Aromated gins are really not like vodka
 
Wes
@FélixGagnon-Grenier you are clearly not an alcoholic
 
Hmmmm.....
Maybe we just have more different gins than vodkas here...
 
Wes
of course they can taste very different, but the ingredients are the same, fermentation of grapes, berries and stuff like that. afaik
 
Well fuck me you Italian, seems you are right, if not for a more distinct use of aromated ingredients in gins.
Might want to not take that literally.
 
1:51 AM
Oh c'mon. You cannot pull out like that
 
Oh look an obvious distraction points at Laravel
 
:P
 
make default mode of SplFileInfo::openFile 'rb' – #75504
 
Wes
i am sure that vodka is classified as a kind of gin, among the alcohol experts
there is probably some key difference and it seems to be potatoes
 
I just classify it as water with alcohol
 
1:56 AM
Like you. You are mainly water with alcohol @PeeHaa.
 
:P
 
Wes
now i'm hungry tho
i think i'm gonna have some pasta
 
vagueitalianhandpicture.gif
 
Evening
 
Yo @Trowski
 
2:08 AM
@PeeHaa Have you used the Amp postgres lib much lately? I'm starting a new project right now and am considering using it in production.
 
I have more experience with MySQL, but I'm concerned the amp lib for it isn't really battle tested.
Postgres seems better anyway :-D
@FélixGagnon-Grenier o/
 
@Trowski I haven't used it much lately, but it worked fine for whatever it was I used it for before
Am trying to think of what projects I used it in but I just cannot come up with it
I should just finish my work and let brain rest
 
It seems solid in my testing… but sometimes production brings out hidden demons.
 
I think the only things I find that was actually bugged was fixed
 
2:22 AM
I recently fixed another issue with unconsumed unbuffered result sets. Going to tag 0.2 soon.
 
Wes
since when you can skip the theme intro on netflix?
 
Since they implemented that saviour button
:B
 
3:05 AM
is it bad idea if you have a loop and do a query checker from there?
 
im doing what you are asking right now
 
but i have a site which is like facebook with huge traffics of activity and this kind of method will most like makes your database cry
 
Noight all
 
i'm using amazon aws which has 64cores and still it cries
the loading time of a page will mostly likely at 50seconds peak
 
Wes
3:20 AM
@FélixGagnon-Grenier mind blown
i never noticed it before lol
 
@Wes yeah it's really useful!
I must say it might depend on the browser, sometimes I did not see it
 
Wes
java-design-patterns.com/patterns nice collection of design patterns. it's java but applies to php as well
 
 
2 hours later…
5:32 AM
I'm but a simple farmer... tending to my mem design patterns
 
6:03 AM
asdsadasdsa – #75506
 
Wes
asdasdasdasdasd
mornasd
 
mrnng
 
6:17 AM
question
if i have a filename test.cs
.cs is it a c#?
 
 
1 hour later…
7:27 AM
o~
 
I have a html table in a while loop filled with a sql server like this: <form name="myForm" method="post">
<?php
while($row = sqlsrv_fetch_array($stmt)){ //Creates a loop to loop through results
echo "<tr><td><input type='range' name='data[]' value=" . $row['Beoordelingnumeriek'] . " id='myRange' class='slider' min='0' max='7' data-show-value='true'>

</td>
<td>" . $row['Kaart'] . "</td><td>" . $row['Personeelsnummer'] . "</td>
<td>" . $row['Naam'] . "</td><td>" . $row['Werkdatum']->format('Y-m-d') . "</td></tr>"; //$row['index'] the index here is a field name
now I would like to take the data in there and send it back to my sql database and I am completely lost
all these things i tried looking up are regarding putting sql in php
instead of other way around
 
Didn't it already come from your database?
 
I am sure there must be tutorials on how to submit a form to a php script, read the submission and put it into a database.
 
yes I am requesting several data as you see. And I have a range slider input as you see which is being set with a value of what is already in the database. I want to slide that slider to for example +1 point and then send it back to the database
 
In case there isnt: Hitting the submit button will send the form to the url configured in it's action attribute. This should be your receiving PHP script. The form will use the HTTP method configured in the form's method attribute. So the data from the form input's will be either be in $_POST or $_GET. All you need to do then is access the data and put it back to your db.
 
7:37 AM
I am aware on home $_GET and $_POST works but I do not know how to call it etc since this data is in a while loop so it creates dynamic values which are not hard coded
 
Wrap your table in a form.
 
Is this true
You can't have <table><form> in HTML, it should be <form><table>
 
there is a closing </form> tag, so he apparently did that already.
 
i have a table and then form
not form table
 
You can have whatever you want in html5. It's all tag soup anyway.
 
7:39 AM
aah k ty
 
But I dont understand your problem. You have a form with some inputs. You submit the form. You read the form on the server. You do something with the values.
I dont understand "while loop so it creates dynamic values which are not hard coded"
 
all these examples have <td>Tom</td><td>jake> <td>jack>
and i have <td>$row[]</td> and thats it
but this $row has like 20 values
 
and?
 
This is so hard to explain haha
You are probably thinking why is he struggling so hard
 
Hi @Tomm :D
 
7:45 AM
You are creating a PHP page. When PHP is done creating the page, it sends it to your browser. When you view it in the browser, it will be all static. There is no loops or anything at that point. It's just a page of html. So you can look at the sourcecode and see what was generated and that will hopefully be the form you want to send back.
 
@EarvinNillCastillo hey earvin did you see the solution i made yesterday to my problem
@Gordon so once its on the page it is basically raw data like on inspect element
 
Just inspect it to find out.
 
@Tomm yes and i didn't expect that will be your anwer
based on your questions
 
@EarvinNillCastillo this actually makes my page better look
 
congrats haha
 
7:50 AM
:P
i am using var dump to check my post output
but i only get my slider value
 
moin
 
The program output is what gets send to the browser
at that point is just some html
so all you need to do is to create the appropriate program output with the form and the input you want to submit. you are essentially building a plain old php form
it's essential to understand that any PHP runs server side and what gets send to the browser is just some html page. hence the name PHP Hypertext Preprocessor.
PHP is just a HTML templating engine turned programming language.
 
8:08 AM
I am starting to understand that. The problem i have is, is that i am quite a new programmer 2nd year uni now. I can write php quite well now but I do reguarly use the internet and all over the internet they say you need a input field with a name[] which confuses me alot
every $_POST i see people use input fields
 
I can promise you the googling will never end. No matter how many years. But the stuff you google for will be harder to find.
 
i see
 
The syntax is intentionally very similar to PHP code, like $arr[] = 1; and $arr['key1'] = 'val1';
 
That makes so much sense its just that my head cant get things straight since all i have to work with is
<td>" . $row['Naam'] . "</td>
for example
cause it ouputs this
<input type='range' name='data[]' value=" . $row['Beoordelingnumeriek'] . " id='myRange' class='slider' min='0' max='7' data-show-value='true'>
since this has a name=data[]
 
You are missing some quotes there
 
8:13 AM
am i though?\
 
And you dont have to use data[]. As you can see in my example, I didn't. I could have, but I opted for individual keys.
 
@Tomm yes, look at how value= appears in the output
 
What are you on about?
ohh
i see
language barrier
 
yeah, you have to excuse @DaveRandom. He's from Manchester.
 
i ment to say my var dump can ouput this input type but does not show my <td> $row[] </td> in var dump
 
8:16 AM
Generally you use name[] when the data you have is a true array, like a set of checkboxes
 
You should see my search history
I think i have tried searching every way of formatting my question lol
Is this neccesary no right? Use input tags inside the td(s) where the attribute value of each input should be the value that you want obtain later.
i thought you just said you did not need input tags in td
 
user4328677
$sql2 = " WHERE legality.format='MTGO Heirloom'
AND card.name LIKE CONCAT('%',?,'%')";

if ( isset($_GET['color']) ) {
$sql1 .= " INNER JOIN `card_color` ON card.name=card_color.card_name";
$colors = array ();
foreach ( $_GET['color'] as $index => $selectedColor ) {
switch ( $selectedColor ) {
case 'W':
$colors[] = 'White';
break;
case 'U':
$colors[] = 'Blue';
break;
case 'B':
$colors[] = 'Black';
break;
case 'R':
$colors[] = 'Red';
break;
case 'G':
$colors[] = 'Green';
break;
case 'C':
$colors[] = '';
 
meurnin
 
user4328677
Is the if index == 0 else fine?
 
When you submit a form only the values inside selector elements gets submitted not all html elements. However, if you can add an input tag inside <td> tag you'll be able to submit the values.
'0' right
Arturo if you are not sure if an if statement works put things in there that are noticable like change backgroudn color or echo something
i am not sure but i think you have to change your 0 to '0'
 
Wes
8:31 AM
mornings
 
good morning
 
Good Morning Friends
are there anybody in prestashop here?????????????
I'm new in prestashop and in very big problem
 
@DaveRandom @Gordon i am getting sick of so posts. everyone in the comments ans answers says u need to use input fields hidden inputs.. you cant post without input etc
 
@Tomm this is true, unless there is an <input> with a name and a value, it won't be sent back to the server
what are you trying to do, make the table contents editable?
 
@Tomm you dont need hidden inputs necessarily, but you need inputs
 
8:35 AM
This is what i have been discussing with you for the whole time now :D
remember this
<td>" . $row['Kaart'] . "</td>
this is not an input
 
I tuned in near the end and didn't read back up :-P
@Tomm no it is not. Do you want the user to be able to edit it?
 
while($row = sqlsrv_fetch_array($stmt)){ //Creates a loop to loop through results
echo "<tr><td><input type='range' name='data[]' value=" . $row['Beoordelingnumeriek'] . " id='myRange' class='slider' min='0' max='7' data-show-value='true'>

</td>
<td>" . $row['Kaart'] . "</td><td>" . $row['Personeelsnummer'] . "</td>
<td>" . $row['Naam'] . "</td><td>" . $row['Werkdatum']->format('Y-m-d') . "</td></tr>"; //$row['index'] the index here is a field name
}

echo "</table>";
this is my while loop
there is 1 editable data on top
my rangeslider
which var dumps data back
as supposed to
but i also need my other data back
 
why?
why can't you just go get it from the database again?
if the user cannot edit it, then it will not change
 
cause when i insert into the database i have to make a statement saying where date is date and id number is id number
i cant be updating this data to random useres
users*
 
so all you really need is the primary key of the database row, and a new value for the specific column you are allowing the user to change the value of
what is the name of the primary key column for the table?
 
8:38 AM
I need to fetch the data from my range slider which shows up in my var dump but i also need a other value from my table to make my value stick to something cause if i do not take a extra value with me the slider data means nothing its just a number
 
yes, you need the primary key
does the table have a primary key?
 
no
which it should not have
 
every single table should have a primary key
 
It should not
and i am willing to argue that
 
Hello, I have a question about php 7.1 syntax.
We upgraded recently from php 5.6 to 7.1.

We used to have some function calls like "$this->$array['index']()" and "self::$array['index']()".

Now I have to replace this calls to "$executable = $array['index']; $this->$executable()"
 
8:40 AM
it doesn't necessarily need to be a single column, but you need something to uniquely identify a record in it
it might be a composite primary key, but you need a primary key
for every table
 
look at this
 
@GiwrgosGkogkas congratulations to upgrading to 7.1
 
this is my table
well not everything but you get what i mean
 
@Gordon thank you!
 
This table is being fed by all different values through parent tables
 
8:41 AM
@Tomm What uniquely identifies a row?
There is a minimal set of columns that uniquely identifies a row
 
every user has a unique personid and kaart
but they are in the table x1000000
 
note: "primary key" does not necessarily mean "auto-incrementing integer column"
 
since this table is showing what day someone worked
so this repeats every day
the goal of this table is to change to null values
those are the sliders
its like a rating system on peoples work that day
 
@Tomm OK, then your primary key is a composite of personid/kaart/date
 
yes
 
8:43 AM
OK, so you do have a primary key :-P
 
haha srry
 
OK I recommend you do this:
 
Anonymous
!!wotd
 
earthshine Astronomy. the faint illumination of the part of the moon not illuminated by sunlight, as during a crescent phase, caused by the reflection of light from the earth.
 
@samayo did you see the date solution i came up with yesterday :D
 
8:45 AM
<input type='range' name='data[" . $row['Beoordelingnumeriek'] . "][" . $row['Kaart'] . "][" . $row['Werkdatum'] . "]' value='" . $row['Beoordelingnumeriek'] . "' ...>
 
Anonymous
Yeah. good job @Tomm
 
ty
 
Anonymous
Next time ask a clearer question
 
hmm il try that @DaveRandom
yeh @samayo my language barrier is really annoying
 
@Tomm this will give you a multi-dimensional array, that you can use to build the primary key reference from the keys, and the inner-most layer will have the values
 
8:46 AM
hmmm
 
note also that your id='myRange' is at best useless and at worst going to break stuff
id must be unique in the page to be useful
 
yeh it was just a test id since i was trying alot
 
OK no worries
 
can i add this without worries
->format('Y-m-d')
cause i have that added behind werkdatum in my other td
since the timeformat gives a error
error is gone
lets see the var dump
@DaveRandom this does not work
 
8:53 AM
@samayo Don't support that. Varianto:25's cards are really low quality.
 
@DaveRandom nevermind it gives back the data in the multidimensional array, i did not edit the values so it did not give anything back
but if you change values it does
 
Anonymous
@kelunik you knew about that already?
 
but @DaveRandom the sliders dont have values anymore now for some reason they are just the row number now
 
@samayo No, but I have some of their previous card decks, the one with programming langs.
 
Anonymous
I was not going to support btw, I thought about it though. But let me know if there are other git cards with better quality. I would like to order one.
 
Anonymous
8:55 AM
I think that is a good way to memorize some stuff
 
how long has nightly on travis been not nightly ?
 
@Tomm can you show the full html it generated in a pastebin please
 
dated september
 
Oh, you can certainly do that, but if you want to have fun with your playing cards and they're the same quality as the ones I ordered, then don't.
 
sure @DaveRandom
 
8:57 AM
@JoeWatkins About one month after branch off.
 
Morning.
 
can someone do harassing them to fix it please
 
Unfortunately I woke up and can't fall back asleep so here I am.
 
@JoeWatkins What's there to fix?
 
8:57 AM
@DaveRandom want me to break the line for every row so its better readable
 
What to work on... probably should work on short closures.
 
@kelunik nightly build is 7.3, but from sept, there are changes in master, so we got broken builds of extensions that use those changes ...
 
@Tomm however it comes out is fine, I can reformat it in 2 secs (and I will no matter what you do :-P)
 
@JoeWatkins Well, nightly is always master. If you want 7.2, use 7.2.
 
no I want it to be master, but up to date
nightly
 
8:59 AM
It should be up-to-date, let me see.
 
I just ran ci for php-ds on nightly ...
$ php --version
PHP 7.3.0-dev (cli) (built: Sep 10 2017 16:05:24) ( ZTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.3.0-dev, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.3.0-dev, Copyright (c) 1999-2017, by Zend Technologies
$ composer --version
Composer version 1.5.2 2017-09-11 16:59:25
 

« first day (2581 days earlier)      last day (2360 days later) »