this is what I need to genarate
<ul id="0">
<li >1</li>
<ul id="1">
<li > 11</li>
<li > 12</li>
</ul>
<li > 2</li>
<ul id="2">
<li > 21</li>
<li > 22</li>
</ul>
<li > 3</li>
<ul>
this is my "menu_item" table
id int(11)
title varchar(75)
link varchar(100)
parent_id ...
Hi!
I have this multidimensional array:
Array ( [0] => Array ( [id] => 1 [list_name] => List_Red ) [1] => Array ( [id] => 2 [list_name] => List_Blue ) )
...and i would like to create a new array containing only the [id]'s from it.
I would appreciate it alot if you guys could help me with that ^^
Thanks in advance
...
I am a beginner in PHP and I know nothing about XML manipulation. I am working on a Google CSE annotation XML shown below:
<?xml version="1.0" encoding="UTF-8" ?>
- <Annotations>
- <Annotation about="http://sanspace.in/">
<Label name="_cse_byxamvbyjpc" />
</Annotation>
- <Annotation about="http://blog.sanspace.in/">
<Lab...
Hi,
I am using PHP 5 and I want to add a link Upload photo from album,
when I click to this link a photo browsing window will open & it will only contain the specified photo album folder's photos. Just like in facebook link to Upload photo from your photo album..
Thanks.
...
I have a file upload script that works [finally] but want to have users submit pics into a folder, which I want to be created as the users name. I was thinking I could just maybe submit the file and then it would jsut create it, but it didn't, so how can I do this? This is my script:
PHP Code:
<?php
// Configuration part
$dbhost = "l...
Hi folks,
Sorry if this is a really easy question or something. As you can tell, I'm a complete novice to Subversion (but hey, we all have to start somewhere, right?).
So I've setup Subversion using Beanstalk + Coda for my webapp, which up until now I've just been managing locally and manually. So I've got it set up successfully and in...
I have a list of tweets which I want to feed to twitter every hour or so.
WHat si the best way to go about makign an rss fee where I can insert text/tweets to be randomally posted every hour??
...
I'm currently building a class in PHP that generates PDF documents using the WKHTMLTOPDF command line app.
To do this, I'm using a call to shell_exec to call the WKHTMLTOPDF executable. However, this particular call does not seem to be executed; it returns NULL almost instantly.
A small test I did gave me the following results:
var_du...
I have a form in vehicles.php:
<form name='vehicleform'>
<select name='vehiclelist'>
<option value=''>Select</option>
<option value='bus'>Bus</option>
<option value='bike'>Bike</option>
<option value='car'>Car</option>
</select>
<input type='text' name='current'></input>
</form>
When user open vehicle.php first time then in...
Hey everyone,
I have a mysqli query which i need to format as json for a mobile application.
I have managed to produce an xml document for the query results, however i am looking for something more lightweight. (see below for my current xml code)
Any help or info greatly appreciated people!
$mysql = new mysqli(DB_SERVER,DB_USER,DB_PA...
We have a CentOS 5.4 server serving a number of our websites. The server is managed by Plesk 9.2.3.
Our websites are developed in php.
We have our main domain ourapplication.co.uk in /var/www/vhosts/ourapplication.co.uk/httpdocs, and
our subdomain api.ourapplication.co.uk in /var/www/vhosts/ourapplication/subdomains/api/httpdocs
The fo...
Hello everyone!
I want to translate measurements that Zend_Measure returns.
Something like:
10 hours (en_US)
in my language
10 часа (bg - Bulgarian)
I found out that there is an archive with translations that i need - Zend/Locale/Data
There are a bunch of .xml files, many of them have translations for measurements.
My idea is to us...
If possible, how can I get (and post) data from a mysql database using javascript? I know I can use php and other languages, but I just need to know if this is possible with javascript?
Thanks in advance.
...
I have a multiple upload form, that renames images after upload:
for ($i = 0; $i < count($_FILES['images']['name']); $i++) {
$ext= end(explode(".", $_FILES['images']['name'][$i]));
$name = rand(1111111,9999999).'.'.$ext;
}
With print_r($name) the output is a string image1.jpgimage2.jpgimage3.jpg.
Why the output is a string? How can...
Hi Guys,
Can you stop your PHP Code from being delivered to your Client just like JavaEE and .NET?
As in JavaEE we can compile all our classes into .class extensions and all .jsp pages calling backend (business logic) beans can access those pages while no person can acccess or alter it.
Similarly in .Net we can compile our whole ASP.n...
I just want to generate a code that will detect the current language of my websit in joomla + php
...
I have a php script that sends SMS, the problem is that it takes some time before every SMS is sent. In my site the page will wait until this script has finished running. How can I give user a message that SMS will be sent and resume the site's normal operation.
...
I am using XMPP.php (i.e XMPP Class) to create a chat application in GTalk. i have put the correct username and password of Gtalk but it is not working.
the code i used (got it from GitHub.com)
<?php
include 'XMPP.php';
#Use XMPPHP_Log::LEVEL_VERBOSE to get more logging for error reports
#If this doesn't work, are you running 64...
Using PHP I'm populating a dropdown list with values taken from a MySQL database. The list displays fine, my problem comes when I try to retrieve the selected value. I'm defining a variable and passing it the dropdownlist name for the POST array:
$variable = $_POST['dropdownlist'];
but the contents of $variable are \{value}"
Why is i...
I have an application that is behind a login and utilizes zend_acl and zend_auth.
During pre-dispatch I have an ACL plugin that creates all the rules out for the ACL. I also have an Auth plugin that checks if you're logged in or not and if so if you have access to the requested resource according to the ACL.
As the application is entir...