Cannot Modify Header ERROR
I integrated Login with FB and Twitter; but I'm getting error when I click Login in Facebook link Warning: Cannot modify header information - headers already sent by (output started at...
View ArticleListing items with different links
I've got 3 listed items, like this: Item one Item two Item three each one of this items have a link, but all the 3 items are different rows from the same table, but all the links open the same...
View ArticleSelecting information from 2 tables in 1 sql statement PDO
[edit] i believe ive posted this in the wrong section D: please could a mod delete or move it! thanks! ----------------------- Hi Im trying to get : - title, newstext, authorId from indexNews...
View Articlemysqli and arrays
Hello freaks. Im new to OOP and I'm just starting to practice using this mysqli object. What I want to do is fetch a bunch of results and store them in an array and what I've done is this...
View ArticleHow to do multiply or similar with variables?
Hello I am having difficulties getting the right result (basically I get the value "0") when trying to get the right value. $result=mysql_query("SELECT...
View ArticleCheck if row exists
I am having problem with checking if a row exists with no errors being displayed: $queryged = "SELECT * FROM `gedcom` WHERE `client`='$loggedin' limit 1"; $resultged = $mysqli->query($queryged) or...
View ArticleCombining strings in a genetics script
I am currently developing an online horse game where players can breed horses using real-to-life genetics. In the past, I have distributed the alleles in separate columns (allele 1 and allele two, for...
View Articleopen opened file
There is a process started by "prog.exe 2>log.txt" The process always works and writes log.txt now and then I need time after time to read file log.txt from php, but php waits while prog.exe is...
View Articlechanging directory with php
ok, so i'm kinda new to ftp with php, i'm having difficulties with getting contents of my public_html directory (i'm using a free web hosting service) when i'm using ftp_rawlist(); to retrieve...
View Articlephp mail - plain text and html
Hi Guys I am trying to setup an email template that contains both a html and plain text version in one. What follows is a simplified version but what I want to do is simply have both versions in an...
View ArticleTwo Noob coding Q's on searching URL's
I'm brand new to PHP coding (but was a old-time VB coder). I figured out how to search a URL for a string. What I'm looking to figure out is two-fold: 1. I want search a specific site and grab some...
View ArticleUser's Acess
i'm trying to creat 2 kind of acess from registered users the administrators and the normal members what I thought that I could use is the folowing: <?php // Recebemos os dados digitados pelo...
View Articlesimplexml problem
I wrote a script to check a remote xml file for the stock state of some products. I want to list all sizes ID having "available"=true and "appearance id"=2 the expected result should be 23456 but i'm...
View Articleusing SUM and GROUP BY when joining tables
Hi everyone, I'm trying to give my students points for doing various things on my website. Eg: Completing a quiz, getting a certain score, all result in points, which are thrown into a table called...
View Articleif statement error
$username = "root"; $password = "duane"; $hostname = "localhost"; $con = mysql_connect($hostname, $username, $password) or die("Unable to connect to MySQL"); echo "Connected to MySQL<br>";...
View Articlehow to use time() to count how many seconds you were here
Hi, I'm creating a script and let's say I have a user/pass to enter and once it's entered another page will be redirected and in that page will show a line sayingi you have been staying here for xxx...
View ArticleNeed Help with mysql query in PHP [URGENT] !
Hey guys i'am basically making a database driven website and i need to provide my customers a interactive form on the website . When they enter their details their info should enter my database. for...
View ArticleSession expires on form submit in IE 8.
Hello all, i have a change your password feature on one of my websites. It works perfectly in FF and Chrome but it is not working in IE 8. I have used MySQLi prepared statements and the script is...
View ArticleArrays with an image code inside help please
Hi guys im using the following code Code: <?php $questions = array('Op 5 Julie 2008 betaal Johan Steyn sy werknemers se weeklikse lone deur ‘n tjek vir R7 500 te wissel.*Watter twee algemene...
View ArticleCounting rows in table
Hi! I've made a website for our wedding and let me tell you, it's been a looong time since I did any programing in PHP and mysql. I actually managed to make a decent HTML5 page with some php elements a...
View Article