$user = &JFactory::getUser();
$uid = $user->get('id'); //works
$umail = $user->get('email'); //works
$unamed = $user->get('posname'); //does not work
Why can't I use JFactory to get the fields that I have added by myself on the Joomla user table. Is there another simple way they could be gotten?
...
^.+\\(.*\\)
I am struggling to work this one out, any help would be greatly appreciated...
also is there a site that lets youu paste in a regular expression then spits out in plain text what it means?
...
Hi everyone,
I have a small survey, but when i submit it says that the msg is null, i don't see where is my error.
If you could help me i apreciate it.
Thank you
My Form with Jquery and Ajax Function
<!DOCTYPE HTML>
<hmtl lang="pt-PT">
<head>
<title>Formulário</title>
<script type="text...
Hello.
Here's a piece of PHP code I think is not very "pretty", I'm sure it's possible to simplify it with for or something. I'm trying to find and algorithm that would work for this, but I can't figure it out, please help me.
Here's the code:
if(isset($four))
{
if(isset($navi[$one][$two][$three][$four])) echo "/content/" . $one . "/...
Hi Friends,
I am having a textbox, in that i have loaded a xml file.
After editing and saving the xml content into the xml file, the content is not in the right formate.
While loading again, its not in the xml format
How to save a the content into the file with neat alignment?
Please help me
For ExampleI need to save like the following
...
How can we create a drag and drop widget in word press? I need to create a widget and also I need to drag it on my existing sidebar.Please anybody can give me a spark to go forward.
Thanks
...
My client has a google adsense account and one ad-campaign with several ads under it.
The client needs to identify the incoming users who comes through clicking each ad.
The client uses Drupal PHP site.
Is there a possibility to track incoming users who comes through google ads?
...
Hi to all,
I need to integrate available payment gateways will be: Webmoney, Liberty reserve, Perfect money in my website using php scripting. if you have all ready done please provide code to us
or give suggestions how to integrate.
Thanks & Regards
Akil
...
I can not assign a xml scripts in to a php variable.
My xml text:
<?xml version="1.0" encoding="UTF-8" ?><rss version="2.0"><channel>
<title>coolajax.net</title>
<link>http://www.hotscripts.com/listings/feed</link>
<description>Coolajax Scripts Listings Description</description>
and I want to assign this text in to ...
Hi guys,
I have another question. XMLhttpRequests haunt me. Everything is now in the database but I need this data to update my page on firt page load or reload. The XHR is triggered in JavaScript file which triggers PHP-Script. PHP-Script access MySQL database. But how do I get the fetched records back into my JavaScript for page updat...
Is it possible in PHP to extract values from an array with a particular key path and return an array of those values? I'll explain with an example:
$user =
array (
array(
'id' => 1,
'email' =>'[email protected]',
'project' => array ('project_id' => 222, 'project_name' => 'design')
),
array(
'id' => 2,...
index.php
<html>
<head>
<title>Josh's Online Playground</title>
</head>
<body>
<form method="POST" action="action.php">
<table>
<tr>
<td>"data for stuff"</td>
<td><input type="text" ?></td>
</tr>
<tr>
<td><input type="submit"></td>
</tr>
</table>
</form>
...
My PHP script serves files using readfile() and manually added HTTP headers. Files are about ~1 MB big, so no partial-reading is necessary.
What is the best way to replace this file with a updated one, but ensure already started downloads won't be broken? I'd like pending downloads to be finished with fetched old file version.
Platform...
Hi, I have a database situation where I'd like to get a user profile row by a user age range.
this is my db:
table_users
username age email url
pippo 15 [email protected] http://example.com
pluto 33 [email protected] http://example.com
mikey 78 example@exam...
Hello, I have a very strange problem which I will be very thankful if someone would help me with.
I have a form that has a textarea whose content is later transferred to a page that has a line like this (using DOM with php to change data on an XML file):
$dom->getElementsByTagName("page")->item($itemNum)->getElementsByTagName("lang...
Hi
Could any one explain me how to create a text file using php where the records should be from mysql
thanks in advance.
...
how can i be sure that someone can not use a form that accepts input on my site to execute code that performs some hack actions?
tnx in adv!
...
I've got two servers running jsp and php. I'd like the PHP page to call the JSP page for getting an output. I tried using simple Ajax and Jquery-Ajax, it doesn't seem to work. Why?
...
Hi,
I have an list of items that is stored in the $_SERVER["my_key"]. Are these items garbage collected automatically?
...
Hey all,
why is this code throwing an out of memory error, when there is only 1 row in the database..
$request_db = mysql_query("SELECT * FROM requests
WHERE haveplayed='0'") or die(mysql_error());
$request = mysql_fetch_array( $request_db );
echo "<table border=\"1\" align=\"center\">";...