I am currently building a web application for my work and you can add tasks, projects and clients. The dilemma I've encountered is that a client can be assigned to multiple projects at once.
The application is being built upon the latest version of Codeigniter 2.0 (if that helps). I am usually pretty good at working out problems like th...
Hi,
I have a column with serialized data in mysql table.
How to import excell file where I have column like colors where are stored serilized data for checboxes in mysql
and need to import from excel file column
colors colors colors
white yellow blue -> serialized into 1 column in mysql
structure of excell file can be differe...
I'm using php Sessions on my website and it seems like they are "disappearing" at random intervals. I don't know if they are timing out due to inactivity or if something is wrong with my code, but is there some way to control the sessions of when they expire?
Like can I put something in my code or change something in the php.ini file?
...
I am using jQuery to load the search results from a php class when the user enters a search term. The problem is that jQuery runs and executes the functions as required the first time round on the main page, but when the user enters a search keyword and the results are loaded from the class file on the same page via ajax, jQuery does not...
Despite setting directory permissions to 777, I still can't get a PHP script to write an image file that it generated to a directory on the server. So, rather than wrestling with that problem I thought, why not create a new one. Actually, I thought there might be an easier solution. Is it possible to take an image file (stream) that i...
The excellent PHP Manual is often cited as one of the reasons for the success of PHP, but it covers the latest releases of the language.
This can be quite frustrating if you are trying to use features that are under active development, and only partially exist in older versions: for example working with PHP 5.2.* but trying to use the 5...
So i have this in my database:
INSERT INTO `strange` (`id`, `myKey1`, `myValue1`, `myKey2`, `myValue2`) VALUES
(1, 'sometext', 'somevalue', 'sometext', 'somevalue'),
(2, 'movie1', 'description1', 'movie2', 'description2');
with this code:
<?php
//error_reporting(0);
include "inclusions/entete.php";
$theID = $_GET['id'];
$filename =...
Hi
was thinking about creating a Single class called 'Request' to handle and clean POST and GET variables but being new to the singleton pattern I'm not sure how to implement it. Ideally I'd like to have 2 functions post($name,$clean) and get($name,$clean) - $clean being a boolean to determine whether to trim/ escape the value
...
Hi all
i want to compare database field of date that has YYYY-MM-DD
format and i want to compare from MM-DD
actually i want to fetch records those have birthdays between month /selected week durations
and birthdate is stores as YYYY-MM-DD format in db table
how can i achieve this kindly help.
...
Hi,
I'm facing a strange problem right now...
I'm trying to use Facebook API to gather some informations on users on my App, which I can but the returning string is weird..
Here is what I have :
$params = array("method" => "fql.query",
"query" => "SELECT first_name, last_name FROM user WHERE uid = $this->userId",
...
Right now I have this:
echo "<a href='misc/removeWallComment.php?id=" .
$displayWall['id'] . "&uID" . $displayWall['uID'] . "&BuID" .
$displayWall['BuID'] . "' title='ta bort inlägg'>
<span class='removeWallComment'></span> </a>";
Its an icon with a link that removes the comment when you click.
Now, it goes to misc/rem...
Hi guys, i was wonderinf if you could help me out..
I have two classes, one extends the other.. Class B will be extended by various different objects and used for common database interactions.. Now i would like class B to handle its connect and disconnects without direction from class A or any external input..
The problem from what i ...
Hi folks,
I've written a basic 'security checker' for my webapp. I'll need to see at a glance whether user-submitted code contains evil stuff.
Here is a screenshot of the code that I'm running this against right now: http://cl.ly/677a6dc40034f096697f
Here is the PHP code I'm using against these three bits of code:
<!-- The View -->
...
I'm using the following code:
<?php
if(extension_loaded("IonCube Loader") {
// Yes
}
else {
// No
}
?>
I'm just concerned that this won't work across every server with IonCube enabled. It seems pretty standard, but I've never needed to check before. Is this the best way to check, or is there a better method I should be using?
...
I was wonder what is the maximum length of the timezone settings in PHP? I'm storing the string in a database, and would like to keep the length as short as possible, but i see timezones like "Canada/East-Saskatchewan", which goes beyond our current limit.
If I could just get a list of all the supported timezone string, I can sort them...
Right now when I use a cell with text, it all stays on one line. I know I could use the write function, but I want to be able to specify the height and width.
This is what I have now, but as I said the text does not wrap to stay in the dimensions:
$pdf->Cell( 200, 40, $reportSubtitle, 1, 1 );
...
I have a site based on php/mySQL where publishers had inserted a lot of youtube videos in a specific database column copiyng/pasting youtube embed codes. There is a wide variance of the codes reflecting the variations google made during time. Different sizes of the player window is the main variation. Now I need to uniform all the window...
Hi Friends,
AM working on a Php application, where i can see the selected youtube videos.(Like in Vtunnel.com).I have tried to implement in my application but it doesn't work for me. Can any one provide me the code to attain this functionality in my application. At this moment, it is very important for me. Any help is highly appreciab...
Hello.
I'm using mysql and php for registration on my web-site. Registration is ok. Mysql do queries immediately. But in login there strange things begin to happen. I insert a test in my php code to insert test row to database. First test code inserted immediately, but 2nd was inserted after series of refresh and relog actions only after...
Hi,
how to fetch ebay sellers location using ebay api in php..
thanks,
jitendra
...