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

phpmailer from header

I'm new to PHP and working on a mailform with phpmailer with attachment. Everything works fine but the received mail keeps having my Gmail address in the from header. The AddReplyTo address works fine...

View Article


Image may be NSFW.
Clik here to view.

Add word to .txtfile after buttonclick

Hi there,   I've searched around for the same problem that i'm dealing with, but i couldn't find the exact answer yet.   What i want, is that if an user clicks on a button, the word in front of it has...

View Article


Problem of member searching php code.

Look at this code. This is for member search. Hear are sex, district, ,, age search function but it's only work sex function. I try to fix it but I can't. How can i fix this problem? <?php //allow...

View Article

Problem with sessions and table data.

Hi, I'm looking for help with my sessions and table data So far I have 2 tables, one named: userlogin which contains log in information listed by 'user_id' my next table is called userinfo which at the...

View Article

Probably simple, but I'm new at php

Ok I am needing to create a simple function to change text submitted by a form.   I have a form with a drop down select. This form is posting to another page and I am getting the data using the...

View Article


Image may be NSFW.
Clik here to view.

Form Validation for Phone Field

Hello,I'm creating a form using code I obtained from an online tutorial.  It works perfectly and validates as it should.  I would like to add a "phone" field which would also need validation.  So far I...

View Article

How to create a real-time JavaScript,php and mysql progress bar?

I have been struggling with this progress bar for a while now I need to know whether it is possible to have a real time progress bar for MySQL insertions since database operations are relatively very...

View Article

Image may be NSFW.
Clik here to view.

how to detect MULTI TEXT BOXES in an image?

Recently i try to detect one text box with this code for uploded imege no 1....and sucesfully . <?php $im = imagecreatefromgif('1.gif'); $iw = imagesx($im); $ih = imagesy($im); $wht =...

View Article


How to debug inside a while loop

Hey guys,   I am trying to grab and loop data from my DB with a while loop and extract() function.   right now i have something like this:   echo '<div>'; // CONTAINER DIV echo '<h2>News...

View Article


Problem of member searching php code.

Hi friends, This is the member searching code which I use in my client's site www.bd5000.com It's have Seaking: District: Age: but it's only work on Seaking search function. If you see the form you...

View Article

ultimate seo url in oscommerce

i have used "ultimate seo addons" in my oscommerce site. all options are visible in admin panel. but frontend is not showing the seo generated url.   it shows the default url www....

View Article

mysqli_close() does not exist?

Can anyone enlighten me I just went to php.net and search for mysqli_close says it does not exist??   mysqli_close($db_con);   I have been using this to try to close a connection any advice?

View Article

Image may be NSFW.
Clik here to view.

Action for every key and value pair in multidimensional associative array of...

Hi there,   I've posted this at stackoverflow but did not receive any replies so far so I'd like to try here as well. ------ I have an array of variable dimensions and namings. Sometimes associative,...

View Article


Date difference calculation

I am trying to track the time of resolution of complaints in my application, so i have tried to get the difference between the time a problem was reported and date it was resolved as shown in code...

View Article

time based actions

What I am trying to do is,   I am building a game right now that works on user building, buildings in there "town", for each level of the building in the town it cost money and power.   I have done all...

View Article


simple htmp post-get (noob question)

i'll looking for a snippet of code in php to post a set of variables to a url and then display the return data. example:   &field1=a&field2=b&field3=3 https://www.example.com/dir/   i...

View Article

Image may be NSFW.
Clik here to view.

Email sales reports with while statment

Hey Guys. I have written some code that mails out sales reports for the past week that stores has done. In my while loop it goes through all the stores and query's their sales reports and then stores...

View Article


quick question

$query_TopNumbers = "SELECT Number1, COUNT(Number1) AS CT FROM Draws GROUP BY Number1 ORDER BY COUNT(Number1) DESC";   I am curious if it is possible to set up "Number1" in the query to be dynamic. i...

View Article

Stupid cookies are stupid

Why doesn't   setrawcookie('saved_game', $data[0]['data'], time() + (10 * 365 * 24 * 60 * 60), '/');   Overwrite the existing saved_game cookie?  It simply refuses to overwrite the exsting cookie data....

View Article

php included files overwriting each other

I have two folders, one is called "ajax_poll_1" and the other is "ajax_poll_2". They are basically a script for a quick poll. I wanted two polls on my site so I copied the first one and made some...

View Article
Browsing all 13200 articles
Browse latest View live