Php Help
Please i need a little php help. i have a shopping site, kinda like a online movie ticket booking system. The problem i have is when a user is trying to book for a ticket he goes through the various...
View Articlearray_rand()
as we know array_rand outputs the keys,, how to get value from it of the random element i tried this:- <?php $n = array("lions", "tigers", "bears", "kittens"); var_dump(array_rand($n));...
View ArticlePHP MYSQL
Hello: Any PHP MYSQL experts out there willing to help? I would greatly appreciate it. I built a web directory using WordPress Platform and I am trying to PULL data from my database and display it on...
View Articlephp help
Accept a colour from the user using a drop down list. When the user clicks on Submit, navigate to the next page and change its background colour to the colour selected by the user AND Accept an...
View ArticleAdding Filters to SQL database/PHP Query
Hello, I am new to PHP. Here is the code i am trying to run in wordpress site, but nothing is appearing on running neither any error message nor any form, etc. Please advise....
View ArticleMy Page Will Not Log In
My index page is set up as a basic index page where it submits to check.php, the 2 text boxes in the index.php are called EMAIL and PASSWORD which is pretty simple and basic. my set up page looks as...
View ArticleSecure Login Authentication
I've created a website where people register/login and have a profile which people can search and there's different levels of security etc. However, the login process is very basic because I dont know...
View ArticleStore User Informatio
is there anyway to store the information of users who have successfully made payment through a payment gateway i am using in a website into a table so i can see all those whose have paid successfully..
View Articlesimplexml_load_file not working with date as file name
hey guys, having issues trying to get xml to load a file that has date as it's file name. I have a script that creates an xml. <?php $companyName = ($_GET['VcomName']); $visitDate =...
View ArticleNeed help with Date in PHP
Got a question. Hope not worked with PHP too long so, I'm trying to print/echo the date but I don't understand what the hell the date is that it's sourcing. My code is; <!DOCTYPE html>...
View Articleajax chat
hello i'm creating an ajax chat system and everything is working fine but the problem, i'm facing is that i can't replace some part of the message with the emotion kept in the array... If i run only...
View ArticlePHP MYSQL Only returning 1 result?
hey, this should echo all of the results from the query, right? in the database there is more than 1 fields to echo, but it only echos 1, whats wrong with it? $getid = mysql_query("SELECT * FROM...
View Articleconvert a date to Timestamp.
Hi guys, I found that this much asked question on the net has no real straight forward answer. So i ask this again. $date = ('2013-07-08 12:30:30'); how can i change this date to a Unix time...
View ArticleIssue With Database
Can someone please help me figure out how to store customer payment info into a databse. below is the sricpt i have written but i am not able to get the infomation into the database so i see the...
View ArticleImport request variables in PHP 5.4
Hi Hopefully one of you guys can help me. My knowledge of PHP is beginner and the Dev that I use is on holiday. Just moved a clients website over to a new host and one part of it is not working....
View ArticleAllowing user to edit own entries
I feel pretty dumb asking this question but I am having the hardest time trying to figure how I will accomplish this. Right now I do have my own system I have coded but I am having an issue to where I...
View Articlemysqli_query() expects parameter 1 to be mysqli, null given
I've seen this error posted everywhere and no one's answers seem to pertain to mine. This is my code: <?php $password=$_POST['password']; $check=$_POST['checkid'];...
View ArticleIs it good to use $_Session['']?
Hi there, I need to use lots of variables globally which means I should access the variables across files and classes. So I decided to use the $_SESSION['']. But the thing is that it will become...
View ArticleUpdating 1000’s records
I am trying to update my table using while loop, unfortunately it is only updating the first record. Why can I not update the whole 27000 records? Thank you. <?php $sql = "SELECT * FROM spammers...
View Articleonly numbers or letters acepted in form field
Next form is working, buth when i enter the "nr", then I have an error message. The raison is that i can fill in only letters or only nubers. This is the number of an address. When i enter only a...
View Article