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

Help with php forum

Hello everybody. I successfully got a forum up and running a bit ago, but there is only 1 problem. when 1 user posts, it duplicates that post from every other user registered. heres is the link you can...

View Article


Browse from root directory!

Hi there guys,   I wish if u can to help me solve a little problem. I upload my pictures into a folder on the server (website.com/uploads) using a upload script. Now i have a form with 3 fields (title,...

View Article


Replace utf8 character in a certain position of a string

I have a utf8 string and I'm trying to replace some of the utf8 charachters with equivalent "plain latin characters" in certain positions of the string. In this test i try to replace the first " î "...

View Article

How to make a multiple user level in PHP ?

i want to create login with multiple user level. i have 4 different user (admin,teacher,student,and cashier)/ please? 

View Article

Fatal error: Allowed memory exhausted

Hi guys, I'm having this every day:      Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 122880 bytes)   In my opinion, 256MB of memory shouldn't exhausted so soon, as...

View Article


Coding suggestion

I have the following code to create a report of contractor times:   I basically displays jobs serviced by the contractors during a specific time range. <?php // fetch all job_dates within the...

View Article

Parse error

Could somebody check and fix the error pls?   Error:   Parse error: syntax error, unexpected 'echo' (T_ECHO), expecting ',' or ';' in C:\wamp\www\SHP\php_echo_print.php on line 12   code:...

View Article

Image may be NSFW.
Clik here to view.

Displaying a success message on checkout page after product add

Hi all im new to the forum   Im trying to display a message on my checkout page when a customer successfully adds a product to the basket! For example I have a buy button on my product page, when the...

View Article


Showing multiple records in a row from MYSQL

I am new and trying to figure out a way to take my records from the data base and display 4 to a row instead of just one record at a time...   Here is the code I am working with. $query = "select *...

View Article


sending form results to a file to use the file include latter how pls?

hi I have been trying to get a way of building a site for a online gaming community where they can post player points to a form so that I can make them be displayed in a list on a different page after...

View Article

Closing a DB connection when not need

Hi,   I'm new to this forum and I'm looking for some assistance.       I have the following code: (just a quick example)   <?php   try {       // import Soap client...

View Article

memory and gd library

Hello I have recently been working with gd library as part of an image upload system. I noticed that one of my scripts was failing due to exceeding the available memory. Anyway researching this I...

View Article

PHP file upload

Hey guys does anyone know why this doesnt upload large files? 6/7mb... the PHP ini files seem fine... i even overdone it by  upload_max_filesize = 20M; post_max_size = 20M; max_execution_time = 400;...

View Article


Self Generating Preselected Dropdown List

Ok, I think I'm way over thinking this, and I've been sitting here for hours trying to figure out what I'm missing.   Using pdo and php to pull from a data base I want to generate a drop down list and...

View Article

How to find record in array that meets multiple comparisons

I am building a bid function that will display the best available ad inventory to the current user.   I have a record for user like so:   $user_record = interest, gender, country   I am then pulling...

View Article


PHP HeLp?

Hello Friends, There is a Question for you guys, Please tell me this code is correct or not. I want id on another page for delete the same id details. Is it wrong so please give me the correct one. I...

View Article

syntax error, unexpected end of file in....

</div> <div id="footer-container">  <?php  $displayCustomFooter =  $this->config->get('customFooter_status');   // Show custom footer if($displayCustomFooter == 1) { ?> <?php...

View Article


Time + Date Picker

Hey!   Does anyone know how to implement a date + time (hour/minute) picker? Or, at least, a time picker stand alone? Is that I have a date picker, but I cannot find a code to a time picker......

View Article

Check if custom registration form is submitted, then open SOAP/DB connection

I would like to open a SOAP connection that reflects changes to another database onlywhen the following forms has been submitted(Register & Update profile forms) through WordPress. I am able to get...

View Article

First Practical Object

And it doesn't work!  Im trying to write my first simple object which will just echo out a logo.  I don't think the var $IDSystem is being passed through.  As its my first attempted I'm struggling to...

View Article
Browsing all 13200 articles
Browse latest View live