dear all,this is my code at xampp:
$sql = "INSERT INTO oqc_defect ";
$sql.= "(Problem_date, Dept_found, Line, Shift, Time_found, Model, Serial_number, DIC, ";
$sql.= "Def_class, Reject_qty, Symptom, Cause, Correction, Corr_action_pla...
Hi, I have a website live cricket scores , in which dynamically i am controlling the news section.
I have my own custom build CMS system with PHP, where admin will add the news to the web portal.
If i generate the Sitemap, all dynamically created pages wont be added to the sitemap,
is this a good practice or do we need to add the dynam...
I cant get it to submit. It will say if the email is not there but after that all the other error messages do not work and in the end it wont let you send. Any help would be greatly appreciated.
The Html
<form id="contactForm" action="bin/sendme.php" method="post">
<span>
<input type="text" name="contactTi...
In exporting CSV file using PHP, there are some records that won't be included. It seemed like while transferring, it stopped even if there are still records to be exported. What's the problem?
...
I'm using Codeigniters Active record library to carry out an update on a column on my DB.
Here's the SQL for the table
CREATE TABLE `schedules` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`reservation_id` INT(11) NULL DEFAULT NULL,
`title` VARCHAR(255) NOT NULL,
`description` VARCHAR(512) NULL DEFAULT NULL,
`start_date` DATE NOT NULL,
`st...
Hi all,
I have an email xml file like this:
<?xml version='1.0' standalone='yes'?>
<emails>
<email id="contract-expired">
<description>We send this email when we want to inform a user that a contract is coming up to it's expiration date</description>
<subject>Example: Contract Expiration</subject>
<parameters>
<par...
I have one big php application running on php 4 but I want to move this application on php 5.2 but I am not sure whether it's all functionally work on it or not as I don't want to test full application again. So I want to know is there a way to find out compatibility of application with php versions.
...
I am developing (solo web developer) a rather large web based system which needs to run at various different locations. Unfortunately, due to some clients having dialup, we have had to do this and not have a central server for them all. Each client is part of our VPN, and those on dialup/ISDN get dialed on demand from our Cisco router. A...
which is the best CMS solution for PHP mysql
...
I am currently trying to create a content uploading system and although there are error being made from the page when I check the appropriate folder for the contents it is empty
$chapterZip = new ZipArchive();
if ($chapterZip->open($_FILES['chapterUpload']['name']))
{
for($i = 0; $i < $chapterZip->numFiles; $i++)
{
$p...
Dear all,
I need to compare a value to a set of array. However, I need to compare multiple values in foreach. If using in_array, it can be slow, real slow. Is there any faster alternative? My current code is
foreach($a as $b){
in_array($b, $array);
}
Thank you.
...
In javascript there is function getImageData(), is there any function in PHP similar to that.
...
So as you all probably know already, there is no facebook API for Rails 3 (not well-supported/documented anyway). I am wondering whether porting these PHP API to ruby is a good idea or not. What I mean by porting is writing my own php function that uses FB API and use the output as the ruby input. Is this a good idea? Impossible?
...
I'm using Doctrine together with CodeIgniter.
I have can't quite figure out the logic of why the generated models from my YaML starting in 'A' crash.
For example generating a model from the following YaML will work fine:
Pguy:
columns:
ptext: string(255)
Likewise:
Zguy:
columns:
ztext: string(255)
will produce models/...
Hi everyone, I'm working on a simple templating system. Basically I'm setting it up such that a user would enter text populated with special tags of the form: <== variableName ==>
When the system would display the text it would search for all tags of the form mentioned and replace the variableName with its corresponding value from a da...
How to get width and height of an image?
I have $variable = 'http://site.com/image.png"
Want to get width of this image to $width and height to $height.
Like:
$variable = 'http://site.com/image.png"
$width = '300'; // image width is 300px
$height = '500'; // height is 500px
Thanks.
...
I'm currently creating an estate agents website with a search which returns a set of properties stored in the database.
Now I know that google has a limit on how many requests it has per day so I'm trying to think of the best way to do this process.
Basically at the moment, step one of the search is to input a town or postcode with whi...
i created an application with some models, after that, i used ACL and created some ACOs to protect my Application.
Now i wanted to add a RESTful API to my application, so i edited routes.php with something like that
Router::mapResources('routes');
Router::parseExtensions();
this also works fine, for example going to http://localhost...
I am always unsure, and I find myself playing around with it a lot.
Is this proper?
$game_name = "poker"; (Included from Config.php)
$game_name_lower = strtolower($game_name);
$sql = "SELECT * FROM `winners` WHERE `game` = '$game_name_lower'";
...
$variable = '<img src="http://www.gravatar.com/avatar/66ce1f26a725b2e063d128457c20eda1?s=32&d=identicon&r=PG" height="32" width="32" alt=""/>';
How to get src of this image?
Like:
$src = 'http://www.gravatar.com/avatar/66ce1f26a725b2e063d128457c20eda1?s=32&d=identicon&r=PG';
Thanks.
...