qsl : datetime that X last became true (and stayed true)
Hi all, im using the following sql query to select data from two tables where the most recent value for 'par' is > 6. SELECT patients.*, addobs.*, DATE_FORMAT(addobs.datetime, '%d/%m/%Y %H:%i:%s')...
View ArticlePHP Poll
Hello. I have been trying to get my php poll to show results if user has already voted, I have been trying for 2 months now and every thing i try doesnt work so i need help please, Can any one help me...
View ArticleFatal error: Call to undefined function seconds2human()
Hi Guys, I have a strange issue and can't get it to work properly. Here is the code that calculate the time in minutes between two dates with a 5 days work week and 8 hours a day. The script runs...
View ArticleNice Looking URLs
How would i write the php and htaccess for nice looking urls like this? http://forums.phpfreaks.com/forum/13-php-coding-help/ I have this php code function getservices(){ $db = new...
View ArticleHelp related to Print
Hello, I have working on a PHP application which would print journals. The user will type in the content (rich editor with formatting) and select the recipients. Upon submit, my code would need to...
View ArticleAnti Leech Script Help
Hey guys, I'm trying to follow a guide that's for people who have a decent degree of competency in PHP. I'm a beginner, but I really need this script, I've been researching and trying to put the...
View ArticleDisplaying random records in dropboxes
hi guys, i am creating a price comparison website and i have my main content which should display 6 random product and their details(price, image, name). i am testing this code below but i am having an...
View ArticlePHP multiple identical variables on page
I have a page on a website I am building, that has a row of 4 div blocks that each link to the page they grab information from. So in context, I have 4 div blocks with a Country name, country img,...
View ArticleAdd products along with logged in user id
hello, i have a website with 2 roles - retailer and customer. the retailer adds, deletes, updates records. different retailers can add the same product. is it possible to add the records by retailer? i...
View Articledo while (true)
Hi all, I need a little help please. I've got some code that creates a socket and a echo server, but I'm not having any luck in getting it to run. I've got the socket created, and closes, but when I...
View ArticleTwitter api notifications
Hi guys I'm happy to be a member of this forum i am wondering if there is a way to get new notifications using Twitter API this exists in facebook (i use facebook-sdk) , Twitter has some...
View Articlesomething about sessions
Hello everybody. I have a website where users can login and register. When a existing user logs in, his data (name, surname, age etc...) is saved in an object that is then saved in a session called...
View ArticleEmail Subscription not showing name and email
Hi, I am having a problem with this simple form and I can't see why the email is not showing the name and email fields. The email goes through fine and is recieved but just does not show the name and...
View ArticleReturn id number?
Hi, Firstly apologies I'm still new to php. I have a form that submits data to my DB successfully (name, dept etc..). What I want to do is, once the form is submitted a message will appear saying...
View ArticleDropdown result in textfile
Hello, I wrote a small exportscript for data. One of the values I have to export is called valuta. The export will result in an export of only the value: array. It is a dropdown menu with predevined...
View ArticleCookies or sessions?
Hi, I'm trying to create a login form so that when a user logs in, they stay logged in and I'm wondering, which is better to use? The cookie method by doing: setcookie or the session_start() method?...
View ArticleQuestion about deleting files
Hey, I know I have posted question several posts about this topic, Im just having a little but of a difficulty deleting a directory and the files at the same time. Below is the code I wrote, that...
View Articleutf8 in my contac form not working...
Hi! I have been searching on the web for solutions but for some reason it seems that I can't implement them. I am a rookie in PHP and perhaps the mistake has been under my nose all this time but I did...
View Articlemysqli prepare fails with generic error: mysql: 5.5.27
I'm trying to upgrade from mysql to mysqli and I'm having real problems. I've finally got connected to the database, I'm now having problems using the prepare with the bind functionality. $sql =...
View Articlephp shopping cart without a database
i want to design a shopping cart without using a database, presently, i have a code but users have to input the price of their product, i want to change that, so that the prices would be determined by...
View Article