I have multiple inputs On form submit (using $_POST), i want to take all of the inputs (which by the way, we’ll never now how many will be there [dynamic jquery add/remove input form] ) and combine them into one variable, all nicely separated by ^^^. B.T.W, I am using this format to insert into mysql So…
Running code in Javascript to make a PHP and HTML file run from an ONLOAD event
As a newbie I am trying to run a PHP file and then an HTML file automatically using an onload=”Trigger();” in the body of the HTML. Enclosed is my code but it will not work even though the onload is …
Searching full name or first or last name in MySQL database with first and last name in separate columns
I’m working with an existing database that has first name and last name seperated in the database. I need to create a function that will take one search input and return results. say my database has a structure like…. How could I, using MySql, take a search input that is say ‘Joe Smith’…
What does “XDEBUG NOT LOADED AS ZEND EXTENSION” warning means?
Xdebug is loaded, but not loaded as a zend extension. What does it mean? How to resolve this problem?
Converting a UNIX Timestamp to Formatted Date String
Using PHP, I want to convert UNIX timestamps to date strings similar to this: 2008-07-17T09:24:17Z How do I convert a timestamp such as 1333699439 to 2008-07-17T09:24:17Z?
PHP recursive array copy
I have a multidimensional array of arrays (source below), where my keys and values are arbitrary strings. I want to create a new array (desired below), where the hierarchy stays the same, but every …
explode string into variables
Is there a way to explode a string into variables e.g some_function($min, $max, “3, 20”); such that $min is assigned the value 3 and $max is assigned the value 20. I know I can simply use $data = …
Inline PHP (command line)
I would like to make something like tryruby.org. I take a line from the user (e.g., echo __FILE__) and I want to execute it in PHP and return the output back to the client. I tried to do exec(‘php -r ‘…
Insert space after semi-colon, unless it’s part of an HTML entity
I’m trying to insert a space after each semi-colon, unless the semi-colon is part of an HTML entity. The examples here are short, but my strings can be quite long, with several semi-colons (or none). I found the following regular expression that does the trick for short strings: However, if the string i…
CListView in Yii Framework
I have started working on yii framework and I am following the yii blog tutorial to learn basics of yii framework in this tutorial they have used a ClistView in posts view but i am getting an exception This is the code that i have used in view file: This is what my PostsController contains: I can’t find…