Need Help w/ imagecreate() and imagecopy()
Hello Guys, I stumbled on a problem with the implementation of imagecreate() and imagecopy(). Basically, what I'm trying to achieve is to merge 2 image... pretty straight forward, huh. image 1 =...
View ArticlePHP Help
I have a database structure as follows, Table structure for table staff Column Type Null Default id int(11) No username varchar(100) No password varchar(100) No email varchar(100) No P1...
View ArticlePHP - Auto reply help me PLS :)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta...
View ArticleInner Join Repeated Rows In Loop
I'm pulling results from two tables, which I've done dozens of times now with no issues. However on this one occasion, I am getting an odd behavior where my main table is looping the results correctly,...
View Articlecreating matrix from list of data
Hello, I'm sorry if this seems like a basic question, but I've been pulling my hair out trying to figure this out. I'm an infrequent PHPer at best, and that makes even simple stuff difficult....
View ArticleEmail help
Here is my code: $to = $UserEmail; $subject = "Invitation - $UserFirstName $UserLastName"; $body = " blah blah"; $headers = 'From: johndoe@gmail.com' . "\r\n". 'Reply-To:...
View ArticleBest way to read/write from mysql databases
Just trying to get others opinions on a subject I've thought about for a while. Lets say I have a csv full of 100k products I want to write all the products from the csv to mysql and then display that...
View ArticlePDO user id session
Hey, I'm trying to echo out user info based on user $_SESSION['user_id'], but session is not set, it says "Undefined index: user_id". Login works, but user_id is not set. Class class User { public...
View ArticlePrepare of MySQLi statement fails
//Grab Email and Expiration Code $query = "SELECT UserEmail, UserCodeExpire FROM Users WHERE UserEmail = '$UserEmail'"; $query_result = mysqli_query($mysqli, $query) or die...
View ArticleNeed Help With Mobile Detect - Specifically the Tablet code
Hi there, I've been trying to figure out some PHP that will detect mobile, tablet and desktop. I'm so close... the problem is that the 'tablet' part of the code is also reading as a 'mobile'...
View ArticleHelp building a query string (MySQL)
I am unsure as to the best way to do this. I am building a query using the following loop: for($i=0;$i<count($data); $i++) { $query .= "'{$fileop[$i]}', "; } My problem is, at this point in...
View ArticleHelp using a dropdown form within foreach loop
I have a script that pulls urls from a database and displays the corresponding image by means of a foreach loop. I am trying to add a dropdown form to each iteration but when I run the from it only...
View Articlemsqli is it wrong
OK so i cant log in i make it only to if($num_rows != 1){ my username and password are right but i keep getting user does not exist i dont get erros only warnning undiefiend index but thats not...
View Articlehow to check image on if statement?
Hi guys, I need your help, I want to create a filename for the image on the webpage and I also want to out how I can check on the if statement to see if the image on the webpage is exist. $image1 =...
View ArticleNavigation menu array
Hi, I need some help here, i cant manage to settle this problem. Wish someone can help me. I want the result as below :- <ul class="navigation"> <li><a...
View ArticlePlease help me in my Shopping Cart
Notice: Undefined index: command in D:\xampp\htdocs\cart\products.php on line 5 <?php include("includes/db.php"); include("includes/functions.php"); if($_REQUEST['command']=='add' &&...
View ArticleHelp me with this
<?php // This file is www.developphp.com curriculum material // Written by Adam Khoury January 01, 2011 // http://www.youtube.com/view_play_list?p=442E340A42191003 session_start(); // Start session...
View ArticleConverting string to json to html from PHP
I've got this use this ajax and json to pass the value of a table to server side PHP: $.ajax({ type: "POST", url: "json1.php", dataType: 'html', data: { json_1 : JSON.stringify(newArray), json_2 :...
View ArticleNeed advise on getting the reply function working
Hi, I need some advise on getting this contact form working correctly, It emails the message as it should but I need to have a reply header in there somewhere so the user can click reply in their...
View ArticlePhp.ini trouble with upload size
Hi. I'm using a script for my filesharing site. In this script there is a maximum upload size on 500MB for premium users and I want that limit higher. As the error in my admin panel says I should...
View Article