39,326 Topics
| |
I get this error message: Insert Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'testing this thing again' at line 2 NOTE: the 'testing this thing again' is $body This is my … | |
I'm new to PHP.. I want to know how can you apply a function on a specific value of Array I've attached the code & SQL file, since this codes uses PHP classes, I'm not able to convert my DATE fields while displaying them from the DB & inserting them … | |
i have two sub-domains pointing at the same file.the sub-domain's are test.test.com and fail.test.com and the file is index.php. Now i want to be able to work with both of those domains within the same file so i used this code: [CODE] if($_SERVER['HTTP_HOST']=='test'){ echo"test"; }else if($_SERVER['HTTP_HOST']=='fail'){ echo"fail"; } [/CODE] but … | |
It was not time ago that I realized that those that I consider standards for MVC implementation with PHP are not standards for all. I would be very happy to read different approaches of how to implement MVC architecture with PHP, not just frameworks but the all idea that you … | |
Ok, I currently have three different pages in play here. [LIST=1] [*]Cigar.php - This is the individual cigar page, dynamically generated based on a GET Value [*]Cigarreview.php - This is where a user goes to review a cigar. It has a drop down menu that pulls from the DB and … | |
Hi, I am fetching date from the database which is submitted by user while form filling. The date came from database 2011-11-15. What i want to do,show date in below format. 2011-dec-15 or dec 15 2011 need help?? | |
Please I need help, I don't know what I'm doing wrong here, [CODE] $query=( "UPDATE $tblname SET totwrong =".$wrongAnswers."', SET Test_score ='".$percentage."' WHERE UserName = '".$UserName."'"); [/CODE] It does not update the table, please please | |
Does anyone know how I would go about storing something from my database into a variable to use elsewhere on my PHP code? | |
I am trying to print a label and a textbox together in a HTML file that I am trying to write using fopen, fputs in PHP. For some reason the output is just a text box and not the label along with the textbox. This is the piece of code … | |
I'm not sure how to write this in php, so any help will be appreciated - In vb6, I would have had a function similar to this code - [CODE]Function GetReserve() Dim xAmount As Integer, xValue As Integer Select Case xAmount 'Where xAmount is an Integer Case Is = 0 … | |
Hello, I am writing a code to for a registration form in php,i am done with adding field to database the problem is "validation" there are msnu feilds in the form .I have to validate two feilds in my form username and email before submiting (in short i have to … | |
Hi I am using Xampp Server in my machine, i used php mailer (class.phpmailer.php), when i run the mail file, i am getting the below error msg Could not execute: /var/qmail/bin/sendmail Please help me to solve this issue. | |
Hi, I have 3 feilds in my invoice processing Table. [LIST=1] [*]Submet [*]Return [*]Resubmitted [/LIST] Now I am using this query [CODE=mysql]SELECT `SRNo` , `VenName` , `Submet` , TO_DAYS( NOW( ) ) - TO_DAYS( `Submet` ) AS Days FROM `invmain` WHERE `Status` = 'SENT TO PAYABLE' AND `Submet` != '0000-00-00' … | |
Hi. Im working on a tumblr like website application. The users will be able to comment on a posted article etc. At the moment, the site uses gravater to retrieve users gravater photos. However, the requirements has changed, and now i need, if possible, to get the users facebook profile … | |
Dear All, I am using third part tab. So I have build the tabs nicely and include the code like below. The problem now is that when one of the tab is press it call the javascript. So that is when I dont know how to pass the $dD or … | |
I am beginner in Web Development and I just wonder what's the use of having people registered on your site. So, you will have theirs emails, passwords , etc. Maybe this sounds stupid for some experienced developers, but I really don't understand it. Do they make money this way somehow, … | |
hi i'm working on codeigniter for now.and i got some problem with the user login system. basically user can login using his/her email address, and then the login system will retrieve the user corresponding "username" base on the email address entered.This username will then be stored as session and will … | |
I've been trying for about 2 days with 12 hour stretches of time trying to solve this problem and am completely out of energy after not getting anywhere so please help with any information you may have. Basically, for the website I've built, there is a box which is placed … | |
I was just wondering if anyone knew how to make a WordPress menu item only show to an Administrator. | |
[B]hi since I began programming in php the most thing I used is form but today I wanted to use form inside an html page that have a css style BUT THE FORM INSIDE IT DO NOT WORKED IT IS VERY SIMPLE AND RIGHT BUT IT DON'T WORK i used … | |
Hello, I am building a stock market website and i want to show all commodities prices rise fall even charts later .first of i want to know whether it is possible or not.If yes please guide me through.Please help any kind of help appreciated | |
Greetings, This problem kept me searching for a solution for days. I hope someone can help me. I can't find spelling errors Below is part of the form. (The whole form can be had at [url]www.pebesoft.co.nz/ir4312.htm[/url] The other part of the form works OK A Var dump does not show … | |
[QUOTE]Warning: fopen() expects parameter 1 to be string, array given in /home/speedycm/public_html/speedyautos/carphoto.php on line 42 Warning: filesize() [function.filesize]: stat failed for Array in /home/speedycm/public_html/speedyautos/carphoto.php on line 43 Warning: fread(): supplied argument is not a valid stream resource in /home/speedycm/public_html/speedyautos/carphoto.php on line 43 Warning: fclose(): supplied argument is not a valid … | |
Hi, Im working on an application that works on a timer. There is a timer on a product, and when the timer expires, the application dispatch the NextProduct method that set the next product in queue to be the active one and resets the timer. The timer is basiclly an … | |
Hi, I have been searching here and Google for the past few days but I haven't been able to find an answer. I want to have a script that will download one page of a website with all the content i.e. images, css, js etc... I have been able to … | |
hi All I have script that dont has any forms but there used $_POST method I dont understand that function and why there used $_POST method if there is not any Form here is script [CODE]<?php define('INCLUDE_CHECK',1); require "connect.php"; if(!$_POST) { if($_SERVER['HTTP_REFERER']) header('Location : '.$_SERVER['HTTP_REFERER']); exit; } ?> <!DOCTYPE html … | |
Ok so let me start off by saying I am not a NOOB. There... So i need help trying to figure out an export of just my 2 colums from a table. Got it done. Now i need to make sure that I only export from a date range and … | |
Hi ppl, I have a dynamic form, where user can add/remove rows and enter data. This form is basically a invoice. On clicking save button, the data should get saved into db, also a pdf file containing the details of the invoice should be generated. I came across this [CODE] … | |
| Hello, I have a form from which I post some data into 3 tables: when I click on the submit button I don't get any error message from mysql_error(); but when I look to my 3 tables I see no one of them has received the data I just posted … |
[CODE]<tr> <TD VALIGN = 'TOP'> <a href="sendGift.php" TARGET = _BLANK><font color = "#0000FF" size = "3" face = "verdana"> <b>Send Gift </b></font></A><BR></TD> <TD VALIGN = 'TOP'> <a href="sendMoney.php" TARGET = _BLANK><font color = "#0000FF" size = "3" face = "verdana"> <b>Send Taka </b></font></A><BR></TD> </TR>[/CODE] when i click first link(send gift), … |
The End.