Determine corner XY coordinates
I am trying to determine the four corner coordinates of a list. Any ideas? 48.010918880032534,-102.27871447619208, 48.007298546092386,-102.27871873313035, 48.007300404087175,-102.28410804755288,...
View ArticlePossible variable issue...
Hey all! I'm new to php and just ran into an issue.Anyone know what could be going on here?I've made a dialogue system, but the text I've echoed first never leaves the screen. The response text seems...
View Articlehow to show "via domain.name" in the email recipients header ?
hi, is there a way to show the e.g "via blahblah.com" in the recipients email header ? because if I do e.g "From: sender fullname <sender@email.com> via email.com" and send the mail..what...
View ArticlePHP Exec Function Doesn't work with cd Ubuntu Command
Do you know why my exec() to change directory doesn't work when the script executes? $test = exec('cd /var/www/mysite.com/mysite.com', $output); echo $test; $ls = exec('ls'); echo $ls;
View ArticleHow to keep checkboxes checked and dropdown selections on submit
<input id="auction" type="checkbox" name="auction" value="Yes" /> When I submit a checkbox or dropdown the selections don't show. Would someone mind helping me, I'm sure it's simple I just...
View ArticleSuperimposing values from mysql table onto images
Hi, I'm just after someone to point me in the right direction on this one, because I'm not sure how to go about it at all. Let's say I've got a table called "tbl_badges" with data regarding badges...
View ArticleHow to insert php values into checkbox and radio selections.
Hey guys, As you can see i have a form im trying to use for a user to change or update their profile settings. i know in using php / mysql you can set the default value in the forms for say names...
View Articleimplementing Foursquare API "trending venues"
I want to create a page that geo locates where you are and then lists the the top 10-20 trending food venues near you using "https://api.foursquare.com/v2/venues/trending" i have managed to work out...
View ArticlePassing Variables from dynamic boxes
Hi professionals I have two php webpages shown below and the the problem I am having is I can pass the variable suburb, searchfor, category and radius through no problem to the find-a-radius.php, but...
View ArticleSend-Mail.php Shows Errors
I have a contact form that uses send-mail.php. I got it to work on one site and literally copied it to another site but it doesn't work. The error shows and the success message shows and it certainly...
View ArticleLogin Issues
So I have been trying to figure out why my login page keeps logging me in with just the username. I can just type in the username without the password and it logs me in. I can type a non existing...
View ArticleRemove specific sentence
I use following code to retrieve data from a database and trim it in different ways to make it look better. and remove unwanted characters and also to be able to use some characters. Allthough in...
View Articlemysqli: select rows, update if >0 else insert
I'm trying to update a record if it exists and insert one if it doesn't. My select returns -1 results. And my database is inserting new records opposed to updating the current ones. Can anyone tell...
View ArticleMysql Select LIKE
Hey guys, not sure if anyone will be able to help with this but I have a small issue with a select filter I'm trying to use. I'm trying to select posts with the correct tag's to display a list of the...
View ArticleHow to display horizontally the values from a database
Hi there, I am working on a simple application using PHP and MySql. The main table of the database is denominated article. A second table lang is related to the table article using a lookup. I...
View ArticleCleaning new lines
Hello freaks, I have a textarea for writing comments where users can input many new lines and I'm trying to clean those lines but nothing seems to be working. I went all over all google results and...
View ArticleWhat is wrong with this syntax - code snippet
I'm getting a syntax error on line 109 with this code on Dreamweaver (not my code), the code seems to work but would like to fix the syntax if possible. <?php foreach ($gallery->images as...
View Articlexml2array issue
Hello, I have a function that converts xml2array, however it doesn't retain CDATA (multi-lines become one line). I'm not quite sure what I need to change in order to make it retain the CDATA (perhaps...
View ArticleBrowser compatibility issue with Login script
Hey all, new to PHPfreaks, seems like a very active site. Anyhow, I'm having an issue with this login script. It works just fine for me in chrome and safari, but in firefox and ie it does nothing, not...
View ArticleQuestion about using array_shift with OOP
Hey, I am new to PHP and I'm trying to understand this tutorial that instanicates a row, and assigns it to a $object[] array through a method called find_by_sql. There is another method that is...
View Article