hello all in my site users can insert data using tabular format. that table can be of any style. but im using regex to give those tables a standard format of our site.but when im using regex it works well but it is removing colspan. but i need colspan widout it tables looks very odd.
will anyone please tell me wats wrong with my regex??
...
Im trying to reset $i to 0 and print the word margin...is this doable the way im trying to pull it off?
class="customGal'.($i == '2' ? $i = '0' && 'margin' : NULL).'"
Thanks in advance.
...
I noticed that Joomla uses less secure var type for variables in classes
Why is this?
In my own components,plugins,modules should I follow this convention or use a more secure private, public and protected keywords.
...
This is what I'm doing right now (name is UNIQUE):
SELECT * FROM fruits WHERE name='apple';
Check if the query returned any
result. If yes, don't do anything. If
no, a new value has to be inserted:
INSERT INTO fruits (name) VALUES ('apple');
Instead of the above is it ok to insert the value into the table without checking ...
Hi!
New to Kohana... I was wondering if it's possible to use regex for setting up a route that handles all requests except for one, 'main_page' for example?
Thanks for your time
...
Hello,
I have a while statement, echoing my whole database that match a WHERE parameter. How can I make it so when I click on something (anything for the moment), it updates that specific row. Here's my code.
while($request = mysql_fetch_array( $request_db )) {
echo "<tr><td style=\"width:33%;padd...
Hi.
I want to retrieve all hashtags from a tweet using a PHP function.
I know someone asked a similar question here, but there is no hint how exactly to implement this in PHP. Since I'm not very familiar with regular expressions, don't know how to write a function that returns an array of all hashtags in a tweet.
So how do I do this,...
Hey!
I am trying to create a relationship between a Prospect List (target list) and a Contact.
I create a new contact and get the id of a prospect list all using classes I created which are just wrappers for the soap api calls sugar provides.
But the code boils down to this soap call:
$this->_sugarsoap->client->__soapCall('set_relatio...
I am trying to pass parameters from one action (foo) to another (foobar).
In action foo, I set the arguments thus:
$request->getParameterHolder()->set('arg1', 'alice');
$request->getParameterHolder()->set('arg2', 'bob');
In action foobar, I try to retrieve the params thus:
$arg1 = $request->getParameter('arg1');
$arg2 = $request->ge...
I have been a PHP developer for about 10 years now and until about a month ago I have never used a framework.
The framework I am now using due to an existing codebase is cakePHP 1.2
I can see certain benefits of the frameworks with the basic helpers like default layouts. I can deffinately seen the benefits of MVC keeping the logic sper...
Hi, i will be sending a POST request to login.php on my server
from an iphone app over HTTPS. The POST is created using NSMutableURLRequest. Is there an
example of a PHP script to process this POST on my server. The POST isn't sent as a form as
such , anyway not that i think it is. Not sure how NSMutableURLRequest formats this.
I just...
how to fetch out the index/key from an array using its value in PHP?
If i have an array say :
array{
0 => 'Me',
1 => 'You',
2 => 'We'
}
then here how to find that value "You" has key "1"? Using any php logic.
...
Hi,
I'm using jqgrid to display a list of sites and I want to do some server side validation when a site is added or edited. (Form editing rather than inline. Validation needs to be server side for various reasons I won't go into.)
I thought the best way would be to check the data via an ajax request when the beforeSubmit event is trig...
It might be a bit difficult to explain, so I'll give some example code. Note that I'm using NetBeans IDE (latest).
class Dummy {
public function say(){ }
}
/**
* Builds dummy class and returns it.
* @return Dummy The dummy class.
*/
function say_something(){
return new Dummy();
}
$s=say_something();
While developing in netbea...
Possible Duplicate:
What PHP framework would you choose for a new application and why?
Hello, Expert
I have requirement for developing social networking application using SaaS or Cloud and PHP MySQL AJAX. following are the requirment:
Application should be highly scalable.
Required high security.
Caching.
Load balancing.
Ap...
I have the current author id stored in $theauthorid I want to do a query based on the author id so I do this
query_posts('author=$theauthorid');
However it does not work unless I write the id manually. I know the id is stored correctly as I get the correct id when I echo it.
...
I am trying to run a java command like this in a PHP Joomla Component. It works, however, the files generated from the command are written to /administrator and I want them to be written to the location where the Java command resides ie. /administrator/com_mycomponent/java/MyJavaApp.jar
//run the command
$javaCom...
give me code to upload images from admin panel in phpfox
...
Hi,
Im wondering about speed optimization in PHP.
I have a series of files that are requested every page load. On average there are 20 files. Each file must be read an parsed if they have changed. And this is excluding that standard files required for a web page (HTML, CSS, images, etc).
EG -> client requests page -> server outputs ht...