Sorting Array
Greetings all, I have a script that creates an array from a folder of images. // Create Array $files = array(); if( is_dir( $thumbs_dir ) ) { if( $handle = opendir( $thumbs_dir ) ) { while( ( $file =...
View ArticleAjax RPG Game Map - With PHP and SQL (a push in the right direction)
Just need someone to show me in what area I should start looking todo this just need a helping hand to start on the basic I would like to have an Ajax based map, where the player explore the maps...
View ArticleAdmin User
Hi.. How can i create admin user? i Added a table named "admin" i want it to be.. if its 0 user is a simple member.. if its 1 user have admin. if user have admin... he will have a link "CP" that will...
View Articlecookies are not being stored into the specified txt file on a php curl script
this login script takes me to the logged in home page. but it's unable to browse any other pages since the cookie.txt file remains empty. why this script aint storing cookies ? i checked file...
View ArticleContact Form | HTML Contact for to php or email
Hi i am looking for someone who can make a contact form that goes to an email i would like my contact form to have round corners like this site http://www.grahamdaledriving.com/#!contact/c24vq and...
View ArticleDownloading a file from an API
Hey all! I have a web app that uses cURL to connect to a PHP API. Everything is working fine, but now I need to be able to download a file. My users are able to upload files to the API and they are...
View ArticlePULL Profiles from WordPress Database and Display them on WP Page
I am building a WordPress website where I want profiles to be displayed directly on the Home page from the Database as members add their profiles. What I have so far is this: If anyone register through...
View Articlesupplied argument problem in php/mysql
Hello, I'm a beginner php developer so I might sound stupid x.x I'm working on a website on my local computer using xampp and the website is fine. But then when I tried runing the website online using...
View ArticleDoes something like HTTP_GET_RESPONSE exist?
I was curious about getting the result of this http://api.hostip.info/country.php?ip=141.100.10.49 (Result = DE) into a variable i can use to write into my DB (last thing is easy for me but i am...
View ArticleAdd common questions to pinned post
Can someone please add common questions to pinned post: http://forums.phpfreaks.com/topic/273121-readme-php-resources-faqs/ Warning: some_db_func(): supplied argument is not a valid someDB result...
View ArticleError Unexpected ending line 53
<?php /* __PocketMine Plugin__ name=Muter description=Mutes Players version=1.0 author=SUPERDJKING class=mute apiversion=9 */ /* Small Changelog =============== 1.0: - Release */ class...
View Articleusing part page url as reference
Hi Please can someone tell me if possible and how to reference part of a page url in <code> <?php include('includes/content.php'); ?> </code> so for example if my page is called...
View ArticleMoving a div with PHP
On this page I have a bunch of contact information for each individual employee in the company:http://www.kamentertainment.net/contact Everything is grouped together properly except when a category...
View ArticlePHP code inside an echo?
I'm having a conditional echo inside my php code, that outputs certain HTML if the condition is met. echo" <html-here> Everything's great, I'm escaping all double quotes in the html itself,...
View ArticleRandomizing questions order in quiz
Hey guys. As you can see from my post count i am new here and also new to php. I am trying to modify a code sample of a quiz system that uses mysql database to store all the info such as...
View Articlemysqli prepared statement select null query problem
Hello, I have no idea what I am doing wrong. I am trying to return the matching $prefixphone value only if there is a "null" value found in the column. I have been stuck on this for 2 hours, I...
View ArticleInside a function return vs echo
I have been always questioning myself which should i use return or echo inside a fuction can somone clear this up for me . Thanks in advance. Audittxl
View ArticleNeed Help in Creating Run Time PHP Pages.
Hello All, Well I am new to this forum and just came to get the answer of one question. :cool: I am working on building one PHP based site and have to add one feature to it. But I am not sure how I...
View ArticleUploading file and sending as attachment in e-mail
I want to create a form where you can upload a file and that can be sent as an attachment of an e-mail. I've have two alternatives, one using PHPMailer, and the other not using PHPMailer. My...
View Articleadd alt and title tags to php array
Good day. I am trying to add alt tags and title tags to these navigation images. For example, the "about us" navigation link is an image (aboutus.png). I want to be able to assign this navigation...
View Article