I'm trying to retrieve hierarchical data from a table but am failing to do so. The table has (for now) the following columns: ifc_key, ifc_name, ifc_parent. ifc_key is not used. (primary key, but not used for this function.
The purpose is to get an array. Each element is a "parent" interface. (so all these root elements are ifc_name v...
I have webmail setup similar to what hostgator has (I host with them and looks like they use their own system). I'm trying to customize the login page of webmail, but am a little stuck.
When you go to webmail page/port below, you get a popup login form, not a web login form. If you hit cancel, it finally loads the web login form.
htt...
Here is what I have tried thus far:
> cd /Applications/MAMP/bin/php5/bin/
> ./pear channel-discover pear.phing.info
> ./pear install phing/phing
Installation ran.
I can run the following:
> ./pear/ info phing/phing
About pear.phing.info/phing-2.4.0
=================================
Release Type PEAR-style PHP-based Package
...
I have developed a Flash based chat client that displays messages posted by users belonging to a group along with their username and time of writing. The data is stored in a mysql database with the group id, user id and message so that it persists beyond chat sessions and allows users logging in at a later time to see the discussions, le...
I'm currently working on a PHP application that uses a MySQL database for its backend
All of my queries contain backticks to escape the field names. This is so I can have fields like "password" in a query without causing issues (see example)
I know that backticks are not universal between relational-database engines (SQLite uses a doubl...
I am making a decision tree in php and trying to get it to display right. It starts with a root node which is the initial gamestate. Then you are able to create more gamestates and connect the nodes together to design what will happen if the user makes a choice and what node it is supposed to go to. Right now the display is getting me...
I have an arbitrary number of nested arrays in php. For example:
Array
(
[0] => Array
(
[0] => 36
[0] => 2
[0] => 9
)
[1] => Array
(
[0] => 95
[1] => 21
[2] => 102
[3] => 38
)
[2] => Array
(
...
I have a PHP script which creates and listens on a port for connections from multiple clients.
I need this socket server to also act as a client, and connect to another server. (multiple other servers).
All connections need to be able to receive/send data without "locking" up any of the others.
...
Hello guys,
I have a very simple question. I just need to determine the codification (UTF8, latin1) of a text stored in a MYSQL table field.
Thanks for you help!
Guillermo
...
I'm reworking some PHP code to use PDO for the database access, but I'm running into a problem with a "WHERE... IN" query.
I'm trying to delete some things from a database, based on which items on a form are checked. The length and content of the list will vary, but for this example, imagine that it's this:
$idlist = '260,201,221,216,2...
Hello
here is the problematic page:http://sideradesign.com/eco-art/gallery/
The gallery displays in IE8 and Firefox, but not in Chrome, Opera or Safari.
Let me explain : first of all, I'm not an expert in javascript, I have just copied a wordpress plugin code into the functions.php file and hacked away at it until it worked in Firefox.
...
Hi,
usually i have no problems parsing xml in PHP 5 by using Xml to array class.
but now, i have a server with PHP 4.4.8 , and i really don't know how to parse it using built-in functions.
the xml is like that :
<?xml version="1.0" encoding="utf-8" ?>
<?pageview_candidate?>
<SearchResponse Version="2.2">
<web:Web>
<web:Results>
...
I want to create a form in PHP that will load a .sql file, read its contents, and execute those statements against a MySQL database.
Currently using function get_file_contents but it's not working. What can I do?
...
array_key_exists($name, $defaults)
isset($defaults[$name])
...
Hi, I'm not used to work with values that should decrement every a timelapse like for a user warned, for example a warn which persist for 30 days that can reach a maximum value of 3 warns before the user get banned
I thought to design a user table like this but now I should work on it, I find it not useful on decrementing the values eve...
So I have access to a dedicated server and want to finally create my game - it's a browser based game, fairly simple. I know PHP and MySQL fairly well and would want to integrate with them on the front end.
The question is what is a good server-side language to use either as a constant process or with cron to interface with the MySQL d...
I have a website that allows users with accounts. Account profiles are displayed on the front end of a website. Users can login and update their data, but it all must be approved by an admin (on a form) before the front end content reflects their update. The "live" data is stored across multiple tables in a Postgresql DB.
I'm looking...
Now that Google Analytics has an official API, are there any implementations of a small, minimalistic "Flair" like snippet showing a customizable selection of stats, say for example, today's and the week's visitors, and maybe a chart or two - to embed into one's own admin panels and back-end applications?
I am ideally looking for imple...
hi people, my file form element is very simple:
$this->archivo = new Zend_Form_Element_File('archivo');
$this->archivo->setLabel('Archivo:')
->setRequired(true)
->setDestination(UPLOAD_PATH)
->addValidator('Count', false, 1)
->addValidator('Size', false, MAX_FILE_SIZE)
->addValidator('Extension', ...
I've run in to an issue whereby PHP and MySQL seem to disagree on which timezone they should be using when converting certain timestamps back to date and time.
The problem arises when I have a timestamp which I would like to convert back to a datetime format. PHP gives the date and time based on GMT being the timezone, but MySQL seems t...