PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Jun 17, 2016 11:59
problem was i overwirte it in the foreach every time :)
Jun 17, 2016 11:59
so found the solution on my own
Jun 17, 2016 11:27
i got with the print_r "2" and "Test1" and "Test2" back
Jun 17, 2016 11:26
i got that so far:
<?php
$descriptiontrim = "Test1 Some Text some text some text Test2";
$keywordall = 'Test1, Test2';
$keyworarray = explode(',', str_replace(' ', '', $keywordall));

$count = '0';
foreach ($keyworarray as $keyword=>$key) {
$description = preg_replace('/('. $key .')/i', '<b>$1</b>', $descriptiontrim);
$count++;
print_r($key);
}
print_r($count);

echo $description;
?>
Jun 17, 2016 11:25
so i want that all keywords from $keywordall are set bold in the $description
Jun 17, 2016 11:24
I try to loop trough all items and add to the text <b> </b> do a set keyword
Jun 17, 2016 11:24
can someone help me with a forech?
Jun 17, 2016 11:24
Can someh
Mar 29, 2016 06:24
Have someone time to help me with a array problem?
Mar 28, 2016 21:10
<?php foreach($wiederholungen as $wiederholung){

if ($this->ausgebucht == 1 || $wiederholung[reason] == 1 ){
echo 'Ausgebucht';}
else {echo 'Anfrage';}

};
?>

I want that if all reaseons and the one "ausgebucht" is 1 echo "ausgebucht"
Mar 28, 2016 21:09
Can someome help me with a forech in a if statement
 
May 1, 2016 16:36
0
Q: After change to https ajax function don't work right

user1898361I'm using wordress and i wrote a small script to compare posts. After i actived ssl it brokes my script. I got this error in the developter consol. Uncaught SyntaxError: Unexpected token < jQuery.ajax({ type: "POST", url: "<?php echo admin_url('admin-ajax.php') ?>", dat...

Mar 28, 2016 19:47
done :)
Mar 28, 2016 19:40
can i give you some points here for the help?
Mar 28, 2016 19:18
oky so totaly false? :)
Mar 28, 2016 19:18
i forgot a div jsfiddle.net/u0w5ergx/1
Mar 28, 2016 19:15
You can check my code here -> jsfiddle.net/u0w5ergx
Mar 28, 2016 19:14
I try but i can't find i solution to toggel it
Mar 28, 2016 19:13
Yes.
 

Java, Spring,JPA, PHP, jQuery & Javas

This room is for Java, ,Spring Framework, JPA, Javascript, jQu...
May 1, 2016 16:34
0
Q: After change to https ajax function don't work right

user1898361I'm using wordress and i wrote a small script to compare posts. After i actived ssl it brokes my script. I got this error in the developter consol. Uncaught SyntaxError: Unexpected token < jQuery.ajax({ type: "POST", url: "<?php echo admin_url('admin-ajax.php') ?>", dat...

May 1, 2016 16:33
Is here someone how can help me with jquery ajax and ssl?
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Apr 12, 2016 06:44
I try to use onMouseEnter on a path which is create with matrix points
Apr 12, 2016 06:41
Has someone experience in paper.js?
Apr 12, 2016 06:41
Hello.
 

CSS & SVG Shapes and Designs

Here we're all about making the most out of CSS, SVG, creating...
Apr 11, 2016 15:00
I add if ie is evt.target.setAttribute on mousover
Apr 11, 2016 14:59
ok found a way.
Apr 11, 2016 14:42
Yeah me too :)
Apr 11, 2016 14:36
In all other browser it works but not in IE.
I try with -ms-
Apr 11, 2016 14:36
And i try with :hover to animate it
Apr 11, 2016 14:35
No its inline CSS.
Apr 11, 2016 14:32
so as i told you is complex svg
Apr 11, 2016 14:32
They are defined in CSS and also there are clip path
Apr 11, 2016 14:29
i have that
Apr 11, 2016 14:29
I try that an got some problem with gradian fill
Apr 11, 2016 14:27
So you use <svg> directly in the HTML?
Apr 11, 2016 14:24
I will try the solution.
Apr 11, 2016 14:24
its a extrem complex SVG i got from the graficdesigner
Apr 11, 2016 14:23
With Safari browser
Apr 11, 2016 14:23
Cause i got some problem when i use it as SVG
Apr 11, 2016 14:22
i gave them a class
Apr 11, 2016 14:22
Yes.
Apr 11, 2016 14:21
I use it embended in a object tag
Apr 11, 2016 14:21
and Edge
Apr 11, 2016 14:21
I test it in IE11
Apr 11, 2016 14:20
Have someone a idea why that dont work in IE
Apr 11, 2016 14:18
.mainelement:hover .path {

-webkit-transform: scale(1.1,1.1) translate(-43px,-22px);
-ms-transform: scale(1.1,1.1) translate(-43px,-22px);
transform: scale(1.1,1.1) translate(-43px,-22px);

}
Apr 11, 2016 14:17
in every browser it works only in IE not
Apr 11, 2016 14:16
i make some hover animation (inline css)
Apr 11, 2016 14:16
I have a svg and i loead i with a object tag
Apr 11, 2016 14:16
Hey all.
Have someone time to help me? :)