I'm getting the following error: Column count doesn't match value count at row 1 from this query:
$movetohistory = mysql_query("INSERT INTO $storehistory SELECT * FROM $storetbl WHERE $time - datecreated >= 432000") or die ("Query failed: " . mysql_error() . " Actual query: " . $query);
I've echo'd out $storehistory, $storetbl, $time ...
I am using php, using mail function:
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: [email protected]' . "\r\n";
$headers .= 'Reply-To: Admin <[email protected]>' . "\r\n";
// Return Path -
$return_path = "[email protected]";
$toUser... (all necessary var...
I was wondering if anyone knew the best way to dynamically create an upload form?
Here's what I'm trying to achieve: The code shown below allows one upload, I want to have a button that when pressed, should add another form for file upload. So, if I want to upload -
let's say 7 files, I want to press the button 7 times to create those ...
Hi guys, I'm parsing wikipedia infoboxes and I noticed that some infoboxes have image fields - these fields hold names of image files stashed on wikipedia somewhere. However they just contain the name of the file as is as opposed to the actual link.
I checked the links of the images on real live infoboxes and the links do not seem to b...
This are some list of changes.
http://blog.tuvinh.com/one-minute-with-php6/
http://davidwalsh.name/php6
http://www.php.net/~derick/meeting-notes.html
Why are these changes will be labeled as v6 instead of 5.5 maybe? Php 5 gave us a new OOP approach that really changed something. The biggest change is the full Unicode support, but this i...
I keep getting this error:
Warning: preg_match()
[function.preg-match]: Unknown
modifier 't' in
D:\xampp\htdocs\administrator\components\com_smms\functions\plugin.php
on line 235
on:
$PageContent = preg_replace($result->module_pregmatch, '', $PageContent);
I do a var_dump on the $result->module_pregmatch and I get the fo...
I'm developing an application which relies heavily on jQuery for user interaction.
(and if you're browser doesn't support jQuery, then upgrade or don't use my application :)
As normal, one have functions to GET, SET and DELETE data from a table.
In my application, I'm GET'ing and SET'ing a lot of information without page reload. To do ...
Hi I would like to limit the results returned depending on what type of product a user selects, $r[1] is the type of product with the array:
foreach($list as $r)
{
$row_color = ($row_count % 2) ? $color1 : $color2;
$size2 = $r[2];
echo "<tr>
<td id=\"id\"><span id=\"non_sorting_header\">" .$r[0]. "</span></td>
<...
Hello,
When i try to execute a program from php5 on my debian, the webpage freeze and the program do nothing.
This script works when i call it from the command line. Safe mode is disabled. Echo stdout doesnt work (because of the freeze).
I read some answers in google which tells of www permissions but if someone here have a quick and si...
How to access and display the images that are located outside the application folder? Let's say I have a file directory that stores all the images and other file types, and this file directory is located on a different drive then my application folder. For certain file types ( such as .pdf, .doc, I want to prompt the user to download tho...
Like many people, I can do a lot of things with PHP. One problem I do face constantly is that other people can do it much cleaner, much more organized and much more structured. This also results in much faster execution times and much less bugs.
I just finished writing a basic PHP Socket Server (the real core), and am asking you if you ...
I have the following PHP script:
#!/usr/bin/php
<?php
echo shell_exec(
"/usr/bin/git clone --bare ".
"/home/dave/create_project/template_project ".
"/home/dave/create_project/my_test_project.git"
);
About 7 in 10 times that I run it, git gives the following error:
find: write error: Broken pipe
This error never occurs if I run...
Hello!
I would like to use named entity recognition (NER) to find adequate tags for texts in a database.
I know there is a Wikipedia article about this and lots of other pages describing NER, I would preferably hear something about this topic from you:
What experiences did you make with the various algorithms?
Which algorithm would y...
Hi
I've been using the Zend Framework rather intensively to develop my website, and I'm now designing the upload interface.
I need to allow the user to upload 1-5 images.
I need to send these images to the database as a BLOB object.
My current code is something like this:
$upload = new Zend_File_Transfer_Adapter_Http();
$upload->addVal...
<?xml version="1.0" ?>
<NBR>
<resultGroups>
<result>Hello</result>
</resultGroups>
</NBR>
i have a n xml created in PHP ike this. i am retruning this XML into javascript and is trying to acces the value of node "result" using
alert($(xmlObj).children('result').text());
In firefox its working fine. but in IE it gives o...
I know I have to consider about
mail header injection,
and are there more thing that
I need to know before I make form mail thing?
I want mail, and I feel that
I have to set up form mail thing
in my page, but I heard that
mail thing is dangerous if I
do not consider all security things.
...
Hello folks,
my boss wants me to code an URLrewriting for, let's say "http://our.domain.com/SomeText" -- that is, if the URL does NOT contain ".php" or ".html", it should be processed by a script like "http://our.domain.com/process.php?string=SomeText".
Is this possible with a simple regex? I just cannot find the right expression to do ...
I am using a virtual host, so I have a shared IP address. I would like to access my test site by sending the hostname http header to the IP address, so the server can resolve the name and send back my site page. I am using an unregistered domain name on the server so I can't just type the url into the browser. Does anyone know the easies...
I am trying to insert new lines into an Excel XML document. The entity that I need to insert is but whenever I insert that into PHP DOM, it just converts it to a normal line break.
This is what I am getting:
<Cell><Data>text
text2
</Data></Cell>
This is what I want:
<Cell><Data>text text2 </Data></Cell>
I cannot figu...
Hi,
How may I get the ranking statistics of a particular website using PHP, I'm talking about services like statbrain.com. I know I'll have to use other sources like Google, Yahoo and Alexa etc and that's what I want to know, how do I use these sources to get the data?
Things I would like to know are number of visitors, Google PageRank...