HTTP_REFERER Page in Contact Form
I am pulling my hair out here i want to send the page that the contact form was sent from. I have looked at a 1000 articles about how to do this (Not very good in PHP) But it isnt working for me....
View ArticleUndefined offset: 0
when i try to execute this code i always have a problem . and i can't get the element i m searching for in the database //select the CODE from nxcp_code $sql= "select value from nxcp_code...
View ArticleDomain Transfer Causing File Upload Problem
Here's the backstory: I am helping someone transfer their website to a new hosting company. I recently uploaded all of the files from one host to another, which required me to also import the database....
View Articleconfused... not sure how to go about this. do not echo if same.
list of supervisors for each building is echoed in a text box. Right now they get echoed each time for every single apartment in the building. I only want it to show up once per building. maybe an...
View ArticleSecurity
Hi, I am using PBKDF2 to crypt my passwords, but I am not sure whether or not I am using it correctly. I create a random 32 character string and use it as salt, and use it to crypt the password, then I...
View Articlesort and join (in group) in array
Hopefully, I can explain this correctly...I have a multidimensional array and am trying to group them according to the value of one the keys. input table: Array ( [0] => Array ( [0] => Kiynf...
View ArticleCRYPT_SHA512 is generating same hash value for multiple inputs
Hi, I see that when I am applying crypt function on the text 'samurai.ciscorouter1', output is same as it is for 'samurai.ciscorouter2'. Is the code I am giving how it must be? print "<hr/>"...
View ArticleConverting from mysqli to PDO
This is my first time converting code in php. I really have no idea what I'm doing and can't tell if i'm doing it right or not. I would appreciate it very much if you could help me. Thanks! From...
View ArticleGetting cURL to access this site
I'm trying to make a cool little script that reads the shoutbox on a site, and makes automatic replies with a AI API. However, when I try to access the site in cURL, it's as if it's getting blocked or...
View Articlehtml select inside table
i have a table that is built off a select statement pulling records from mysql. the table has the following fields. id,transaction_date,description,check_number,amount,transaction_category I import...
View ArticleConditional passing , but output is being skipped and returns a false result.
Hey there guys, I am trying to create a forgotten password / username file named recover.php on this page a user will be able to validate his email to see if it exists and if so will send the...
View Articlehow to safely redirect to paypal?
using paypal.class.php i can edit the amount using firebug. how to resolve it. i have attached the files. please check with the attached screen shot. after changing the amount to zero using firebug...
View ArticleBitwise with Hex && Hex to String
Hi Thanks for your help I'll just describe what I want to do any advice or if you could provide your own example it would really help, thanks again! I have a string holding hex numbers...
View ArticleFailed Attempts
How can I implement failed attempts with "x" amount of times into the login script below. Solely locking on a IP/username basis. I set up a separate DB like this failed_logins:...
View ArticleComparing MySQL Password() to PHP/Javascript, Force Different Password
I'm not really sure where to post this topic... it touches on MySQL, PHP, Javascript, and best practices. I want to force users to update their password after 90 days. I can force them to the update...
View Articlespecial characters help in feedback form
Hi On one of my customers websites, I have a feedback form that automatically adds the feedback to the testimonials page by adding it to the testimonials database table and displays it on the...
View ArticlePHP custom URL help
Hello, I have a review site and each review is sorted by their ID in a MySQL database. And to view each individual post you goto viewpost.php?postid=(ID of post)But is there anyway I could make the URL...
View ArticleFormatting Array Output
Hello all! I want to format my post array so that I can insert the data into the database in a particular way such as this: Also, I'm making this dynamic in that I'm not always going to know the...
View ArticleMysql jpgraph array
Hi all, This is a bit of a newbie question, I am trying to replace my file array with a mysql array. What I am hoping to do is return all entry's in the "total" table as an array, that I can then...
View ArticleVariable wont store in session
Hello, new to php. having trouble storing one particular variable into the session.Here is where I want to echo the result once the user has returned to the page:<?phpif ($_POST['submit']) {$show =...
View Article