Our company wants to offer a "plugin gallery" or "app store" where users of our (packaged enterprise software) product can find, download, and share plugins to our product. I'm assuming we'll have to build our own site (although a "buy" solution would be welcome), so we're looking for inspiration. Who's done this right?
My experience w...
I am having a tough time searching by zip, which wasn't a problem before and will most likely be an easy problem for a MySQL / PHP programmer.
I have a database full of house listings that I need to search by various fields. I have no problem searching by city, until I search by zip code (which like I said used to work).
Anyways here i...
Hi my i am having problem with fetching array in the following example.though the result should return row from table but it is returning nothing.it is not entering the while($row=oci_fetch_array($r)) statement,means it's always returning flse,though it should return true..
$a=$_POST['textfield'];
$arr=explode(" ",$a);
...
i'm currently learning the yii framework and have read their documentation.
but i still don't understand the components. what are these. they talk about component events and behaviors.
could someone explain these terms for me and give me real app examples of what a component, its events and behaviors could be?
would be helpful!
...
Hi
I have a flash movie with a button to 'view items in new browser window.'
These items are all dynamically generated in flash.
So the html has to be dynamically generated as well.
Can any sugest a way to do this?
Do I need to use php or some server side script?
...
I am creating a very small database abstract layer, i want to send an array of variables that i obtained from a form, and generate an update sql statement, and eventually execute it. What do I put on the second to last line below?
for example.
$table name = "user";
$username = $_post['username'];
$password = $_post['password'];
$email ...
I have a form that performs 3 separate tasks when submitted. When the form is submitted, a lightbox/thickbox window appears to show the status.
The page posts to itself, and as it completes a task, it writes to the database containing a 'status' field.
All this is working fine.
I need the current status to appear/refresh in the lightb...
Hello,
my symfony project at production when an actions does not exist is throwing error 500 instead of 404.
At dev enviroment, it shows error 404 (actually a debug of the 404 error says action not found).
I am using custom 404 templates as manual says.
...
I'm trying to select the maximum value for a particular key in a multidimensional array. I'm having trouble "getting to" the key in question...
So, the array (which is much more lengthy than what I'm posting here)
[0] => stdClass Object
(
[id] => 70
[cust] => 4
[dnum] => 1
[upper] => Array
...
hi, is there a way to remove the test folders and files that i have committed in the google code branch ?
...
Hopefully, I can explain this correctly...
I have a multidimensional array and am trying to group them according to the value of one the keys.
So, I'm trying to group them by level, but I won't actually know the level beforehand. So, it's not like I can put it in a for loop and say while $i < 7, because I won't know that 7 is the max...
Why is it that this code prints "Hello!" four times and then prints "1":
<?php
for ($i=1 AND $blah=1; $i<5; $i++) echo("Hello!");
echo($blah);
?>
While this doesn't print out "Hello!" at all and then prints "1":
<?php
for ($i=1 && $blah=1; $i<5; $i++) echo("Hello!");
echo($blah);
?>
I know AND and && have different precedences, but...
G'day,
I'm creating an FAQ system, and the user needs to be able to see if a similar question has been asked. Just wondering if anyone knows of an scripts (php or javascript preferably, or possibly actionscript) that has some kind of AI that will do this? I've noticed on stackoverflow as a question is typed, related questions are given ...
I'm currently working on drawing a tournament bracket for one of my projects. It seems to be working drawing smaller brackets but once I get to 16 it starts acting up.
Follow through the links, and see how it falls out of place after 8.
http://www.mattdsworld.com/mmaplayer/index.php/tournament/viewBracket/2
http://www.mattdsworld.com...
I have some site metadata I'd like to be changeable... for example, in my application, if the sysadmin didn't want to use the "Inventory" portion of the site, he/she could turn it off, and it would disappear from the main site.
So I was thinking, maybe I could make a table in my database called "meta", and insert values (or tuples) ther...
I'm having trouble getting the value of the last insert Id from doctrine. I did a bit of research and I found that the following should work:
//save the store now
$store = new Store();
$store->url = $this->form_validation->set_value('website');
$store->save();
$store_id = $store->identifier();
echo print_r($store->identifier());
Ret...
I always forget to change the version number for bugfix version, when i released 1.0.9, maybe the version number in source code is still 1.0.0
So far it is not a big matter as every release was logged in SVN, i can retrieve a specified release anytime from my SVN.
But i know its not good, and in foreseeable furture it may cause problem...
Environment : PHP/MySQL/Jquery
I would like to refresh the page (ex: index.php) when new data stores in to the table (ex : new_entry_table) checking for every one minute. The same page will be opened in many machines(pc-browsers) at a time all should get refresh when new data arises.
using jquery and database check i tried the followi...
Hello,
I would like my page to be redirected to new url with some post data being sent to it.
I don't want to use curl or fsocket because they will not redirect user to that new url.
Is there any alternative for header("Location: blahblahblah"); to send post data?
I tried with document.form.submit(); and it worked but some users are fa...
Original title:
to read and count the occurrence of only limited characters of A,G,C,T present in the input text file, for example only 100 out of 500 and draw a thin verticular rectangle barcode images using gd
It read and counts only first 10 characters and draw a barcode image, instead of specified 100 characters.
<?php
$file="co3....