[Solved] How to change menu link color when it is clicked [closed]

AS stated, this is a job for CSS + oh man, you code is wrong. Try something like this instead: $string = ‘<ul> <li><a href=”‘ . $FromPage . ‘”>Back</a></li> <li><a href=”Talent_Hire.php”>Hire</a></li> <li><a href=”Talent_Hire.php”>Hire</a></li> <li><a href=”Talent_Hire.php”>Hire</a></li> <li><a href=”Talent_Hire.php”>Hire</a></li> </ul>’; echo $string; And in you CSS file: /** This will work only for tags `a` inside a … Read more

[Solved] Running constant scripts [closed]

Your question seems terribly inconsistent, but it appears that you have the completely wrong approach. To have expiring items, you do not manually deactivate them when the expiry date comes or something like that. You simply have the expiry date as part of the item (say, a column in your database) and you select items … Read more

[Solved] Save cache in computer of the user PHP [closed]

HTML5 LocalStorage is your answer. Literally, in JavaScript, if the localStorage object is not undefined, you can use it to permanently store variables. From there, write a JSON export and use JavaScript to dump all your data into this to re-use later. 2 solved Save cache in computer of the user PHP [closed]

[Solved] Php code Parse error: syntax error, unexpected [closed]

“It should be like <a href=”https://stackoverflow.com/questions/17663024/./student.php?id=33″>33</a> 33“ Here is the code: <?php $food = array(“clickid” => 33); $getfood = “<a href=\”https://stackoverflow.com/questions/17663024/./student.php?id=” . $food[‘clickid’] . “\”>”. $food[‘clickid’] . “</a> ” . $food[‘clickid’]; print $getfood; Prints: <a href=”https://stackoverflow.com/questions/17663024/./student.php?id=33″>33</a> 33 Mind, that I escaped the quotes and concatenated every piece of string with a dot. 1 solved Php … Read more

[Solved] SMS application in PHP [closed]

First of all you need a sms-gateway or build one yourself (using your cellphone, etc.). This article gives some examples about an existing (low-cost) sms-gateway and how to send messages thru HTTP: http://www.codewalkers.com/c/a/Miscellaneous/Sending-SMS-Thru-HTTP/ solved SMS application in PHP [closed]

[Solved] Wraping foreach loop into div doesnt work [duplicate]

Try this: function news($newsarray) { $str=”<div>”; foreach($newsarray as $value) { $str.=”<h3>{$value[‘title’]}</h3>”; $str.=”<h4>{$value[‘content’]}</h4>”; } $str.='</div>’; return $str; } echo news($newsarray); solved Wraping foreach loop into div doesnt work [duplicate]

[Solved] How to remove particular index from array

You can use array slice function: $desired_array = array(); for($i = 0; $i < count($my_array); $i++) { if($my_array[$i][“ApplicationStatus”] == 868) { $desired_array = array_slice($my_array, 0, $i); } } solved How to remove particular index from array

[Solved] How to put a image inside table from my database?

If you store your image path in the image field in your database, you can use this. $allCarsResult = query(“SELECT * FROM cars WHERE category_fk = 1″); while ($allCars = $allCarsResult->fetch_object()) { ?> <img src=”https://stackoverflow.com/questions/26971894/<?php echo $allCars->image; ?>” alt=” ” /> <?php } 2 solved How to put a image inside table from my database?

[Solved] regex with php pattern [closed]

Can try using this pattern $str=”<h3 class=”r”><a href=”https://stackoverflow.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;cad=rja&amp;uact=8&amp;ved=0CCUQFjAA&amp;url=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F18682352%2Fgoogle-search-results-with-php&amp;ei=9ptsVNivF_iTsQTv-YJ4&amp;usg=AFQjCNFdoi58ua_4oBtPM4LHybHRZVF9jQ&amp;bvm=bv.80120444,d.cWc” onmousedown=”return rwt(this,\”\’,\’\’,\’\’,\’1\’,\’AFQjCNFdoi58ua_4oBtPM4LHybHRZVF9jQ\’,\’\’,\’0CCUQFjAA\’,\’\’,\’\’,event)” data-href=”http://stackoverflow.com/questions/18682352/google-search-results-with-php”>curl – Google search results with php – Stack Overflow</a></h3>’; $re=”/data-href=[“\”]?([^”\’ ]*)[“\’ ]/is’; preg_match($re, $str, $m); $attr_value = trim(str_replace(‘data-href=”, “‘, $m[0]), ‘”‘); echo $attr_value; Output: http://stackoverflow.com/questions/18682352/google-search-results-with-php solved regex with php pattern [closed]