Quantcast
Channel: PHP Freaks: PHP Help
Browsing all 13200 articles
Browse latest View live

Real Escape String - can't get it to work

I am having issues with apostrophe's when using a form to insert/update/edit information in my database. My original code works unless an apostrophe is used: <?php...

View Article


form thank you on same page

Hi guys, my form works fine but I want the thank you message on the same page in red font, At the moment I am redirecting to thanks.htm and my form is on contme.php, how do i do that? script below:...

View Article


how to display date in dd-mm-yyyy

Hi there,   I am still new to PHP and having trouble trying to format a date.   When the form data is saved; it is saved as YYYY-MM-DD.   Then, when you view a page to display all the records, it shows...

View Article

Fixing SQLi Vulnerability Help

Greetings <? mysql_connect("xxx","xxx","xxx"); mysql_select_db("name"); if (!isset($_POST['submit'])) { print "<h1>"; print "Welcome"; print "</h1>"; print...

View Article

Image may be NSFW.
Clik here to view.

Is this a functional way of exploding userID+update mysql DB CONCAT

I didn't know how to phrase the title correctly.. I'm creating a friends list for players in my game. I could easily create a table and have fields "players_id" and "friends_id". so my table "friends"...

View Article


Changing text colour of an error

Hi Guys,   I have this code; <html> <head> <style> stuff { color:#FFF } </style> </head> <body> <div id='stuff'> <?php session_start();...

View Article

Image may be NSFW.
Clik here to view.

forget password, send password to gmail

i do not know how to do the forget password,   the doForgetPassword php page. which is once i click the submit buttom then will go to the page that shows the message: the password has already send into...

View Article

error 406

I get a 406 not acceptable error when I post to my mysql db a string containing "https://.....   The strange thing is that I only get it on one of the values, but it accepts it on another field. The...

View Article


cURL, Wargaming API

Hi there,   I'm looking for a way how to obtain data for World of tanks account. I'm using Wargaming API and cURL.   Address example with data looks like this:...

View Article


form success filure

I can't seem to see the problem with my success and not success form below. The form is sent successfully but keep outputting oops try again   <?php   if ($success) {   $message = "Message sent...

View Article

How do I limit my ctype_alnum validation

Am Creating a login Script and i do not want users to put in number or alpha numeric characters in the username field and i use the the ctype_alnum function the problem is that the validation is also...

View Article

Search form

Can someone maybe help me. I am new to php mysql and I am trying to create a search form where a user type in a name and the record of that name is displayed. Here is the error I get:  Undefined...

View Article

Data Erase From Fields

I need Code for this problem If Query not Execute due to some Reason then Username and Password should be stored in Fields user should not need to enter again and again user name and password actually...

View Article


multi Email from a php script using pear

I need some help with a problem that's frazzling my gray matter. I'm rewriting my website with Apache, PHP, PEAR & MYSQL the old version was written with Microsoft technologies IIS, ASP, VB &...

View Article

Image may be NSFW.
Clik here to view.

Help needed on a simple question

Hi Guys,   I have a very basic question that I cannot seem to answer ... so would appreciate any help / advise.   Code snippet: $Text1="Hi, how are you"; $Text2="Hey there stranger"; $Text3="Its about...

View Article


Connecting to CANVAS LMS API with PHP?

Hello, I was studying through the CANVAS LMS and looked at a few demonstrations that were at dev cons. The problem is the canvas LMS is built with Ruby I believe so all the demos to connect to the API...

View Article

Image may be NSFW.
Clik here to view.

Shopping Cart Min Order Problem

I have a php shopping cart that I am editing that someone else developed.  My php skills are still very beginner.  Currently the customer must order  $500 to place an order if their cart contains less...

View Article


Image may be NSFW.
Clik here to view.

PHP Script for 30 days premium

Hello! I have a site with premium memberships, but PHP script is not working well..   I the table accounts I have a column called reset_timer(default value is 0). When someone purchase a new premium...

View Article

Multiple session_start, regenerate_session. Trying to do a Secure Login.

Hello everyone! Im learning how to create a "secure" way to login... But for the moment Im stuck with a couple of things. Here's the files. I'll be explaining what's wrong in each part... Here's my...

View Article

display url abcd.php?id=1 as abcd.php/1

Dear All     Can I display display url   http://www.mywebsite.com/abcd.php?id=1 as http://www.mywebsite.com/abcd.php/1     or   http://www.mywebsite.com/contact.php as http://www.mywebsite.com/contact...

View Article
Browsing all 13200 articles
Browse latest View live