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

Image may be NSFW.
Clik here to view.

need to show acording pic from xml file

Hello ime completly new to posting on this forum and to php so i hope ime correct here i got this simple php to get the required info from a xml file but now i would like it to show a pic of the...

View Article


PHP, MySQL, Ajax Call

I am not a jquery guru in any sense, so I am seeking some help with the below code. What I am trying to do, is populate two input fields, based on what is selected from a dropdown field via a database...

View Article


Posting to the database

Hello - I am trying to learn PHP here and i have created a simple form that should be posting to the database but i cant for the life of me figure out why? If anyone could point me at what i am missing...

View Article

Conditional statements in middle of string concatenation

Hi there,   At present, I'm using the variables $nameerror and $_POST['name'], in the middle of string concatenation, but this is throwing up errors on the occasions where these variables are...

View Article

Make links open in new window

Hi everyone!   I'm using a small PHP plugin for WordPress for social sharing. The problem is, the links open up in a new tab instead of a new, small pop-up window.    Here's the Facebook code example...

View Article


Email List Cleaner

Hi All,   I've had a few reported bounce backs from an email list I've collected over the years (but seldom emailed to). I'd like to clean it up before I mail them again - just to make sure I don't get...

View Article

A question on Sessions

Hello everybody   I'm developing a website. This website neither uses framework nor uses CMS, and I'm going totally bare with PHP. My question is that, is it ok to go with simple $_SESSION['username']...

View Article

enable threads in php

Hi everyone!!   I am developing a concurrent websocket server in PHP. I prefer to implement it using pthreads rather than using fork to create new processes, because the server is supposed to handle...

View Article


Can't flush buffer with NginX

I'm trying to proof a comet style page and to start it up I thought I would set a simple counter in PHP to output 0->3 with a one second delay between each output and flush it to screen each second....

View Article


Please help my INSERT and UPDATE scripts have ceased working

I am a complete Newb where this PHP malarkey is concerned, however I have picked up a few basics and probably many more bad habits. The problem I have is the INSERT script and the UPDATE scripts have...

View Article

generate a registration id and display it after successful registration

i am trying to develop a registration form where the user fill the form and submit it then the status and the id should be displayed. i have used uniq_id function to generate a random id and with the...

View Article

generate a registration id and display it after successful registration

i am trying to develop a registration form where the user fill the form and submit it then the status and the id should be displayed. i have used uniq_id function to generate a random id and with the...

View Article

What is the best way to categorize a product

Hello everybody   I'm developing a simple product-gallery website. Due to my client request, I should code it from scratch and don't use CMS such as wordpress. I wonder what is the best way for a...

View Article


Error: Resource id #97 Warning: mysql_fetch_assoc() expects parameter 1 to be...

Hi i know am kinda new to this but i keep getting this error above how do i resolve it     <?php     //Get the database connection     $db = JFactory::getDBO();   //  if($filter == '');     $query =...

View Article

Money formatting

Could you please tell me how to make $Price below format as a money value. <?php $preowned = simplexml_load_file('file.xml'); foreach ($preowned as $preownedinfo): $ADID=$preownedinfo->ADID;...

View Article


Image may be NSFW.
Clik here to view.

Array Values Not Working In Function

This is a specific question about passing array values in functions, and I'm either not doing it right or it can't be done.  My project involves a membership directory listing which has company...

View Article

Undefined Variable

Hi guys, I have a CMS system which I've spent the last week fixing. It's built in PHP, and now I'm stuck on the most simplest of tasks. I can't figure out why I am receiving an "undefined variable"...

View Article


Storing images to directory using php

I'm creating an admin side to my website. I have created an add page and within this page is a form with a few fields. 2 of these are an upload button for me to upload an image. And the other one is a...

View Article

Need help with Arrays

Here are two example of the format of the Arrays, full code and array content in my code below.   ARRAY 1   Array ( [version] => 1.0 [injuries] => Array ( [timestamp] => 1377702112 [week]...

View Article

Label Printing

Hi,   I need to get dynamic contents (name & address) from database and have them printed in labels.    I am preparing a HTML page with the right height, width & margins defined for the type of...

View Article
Browsing all 13200 articles
Browse latest View live