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

Replacing Tags

I'm need a script that replaces multiple <a href="example.com"> tags with  <a href="example2.com" onClick='this.form.submit()'>   I have already wrote the part for grabbing the html (the...

View Article


How to align data from a database

Hi there, I am using following script to print data from a database:     //QUERY <?php try { $query_sql = 'SELECT article_name, author_name, lang_name FROM article INNER JOIN author ON...

View Article


Image may be NSFW.
Clik here to view.

showing an array by id?

I have a script that shows 1 thumbnail for every album that has been created. (figure 1.0)     I would like to be able to click on the image and be taken to that albums thumbnails. I hope the code...

View Article

Executable PHP

This is the scenario: I want to create a program on a computer which uses PHP and MySql.  I want an executable icon on the desktop that opens the php program (preferably not in a browser).  I know I...

View Article

Image may be NSFW.
Clik here to view.

Create array from csv file.

Hi everyone.    I have a csv file, im trying to read and output the number of unique row according to second column.    csv file :  2013-03-25 00:00:06,"00:0E:6D:3F:D5:76","-68","5374468","B"...

View Article


user friendly url's with htaccess

Hi, Can someone help me with User friendly URL and get variables.   My file is called test.php and i'm using htaccess to remove the .php part of the url.   In theory i want the following:...

View Article

Php form not submitting just showing code

I am new to php and want to add a form to my site to send am email to the owner on completion of the form, I have got the code but when I try to run it in chrome (through notepad++) I click submit but...

View Article

how cant i sort an array in to div in pairs (odd and even) ?

hello   how cant i sort an array in to div in pairs (odd and even) ?   so i have the numbers 1 to 50 for a book   i want the first number and last number to be front and back pages.   ie.   1 2+3 3+4...

View Article


Help with dropdown menu

Hi there so I am working on a project and I have a drop down menu created but I can't seem to get it to echo the item that gets selected from the menu...   echo "Select Id of Super or Function to...

View Article


Workaround for file_put_contents not working

Hello to the forum. I'm just learning PHP and thought it wise to use a real project as a place to start. My friend needs a script to automatically handle user profile and photo uploads. The first...

View Article

How do I pass multiple variables via querystring? Paypal IPN

<?php // Database variables $host = "localhost"; //database location $user = ""; //database username $pass = ""; //database password $db_name = ""; //database name // PayPal settings $paypal_email =...

View Article

How to extract data from CSV and Assign to Variables in PHP script?

I am very new to php and I have seen many posts on how to write to a csv file and several on how to fgetcsv data from a file, but none of it really makes sense and I cannot find a relevant example of...

View Article

Insert data stored in an array to a database

I have an array ($sm[]) which stores several decimal numbers. Now I want to insert these data present in the array to a column "SM" present under empty table "sm". So anybody please suggest how should...

View Article


can't save data to database because of session error

i can't save data to my database and keep getting an error saying thisNotice: Undefined variable: _SESSION in /home/sn027/public_html/final project/createcat.php on line 10 could someone help me with...

View Article

this code doesn't work on localhost but does on remote host

I have code to upload mp3 to a server when run from my godaddy account it works fine when I run locally I get "invalid file" which is a message generated from the script.  I looked through my php.ini...

View Article


MYSQL Pulling Values

Hello guys, my code is a 3 teir auto populate form based on the selected option. The information is pulling from a mysql DB. Everything is working fine, now I'm wanting to expand to giving the options...

View Article

Is there a way to so called compile PHP code, or have it send a more hard...

I was wondering about Efficiency. Say the user writes a script ( maybe a Function to make it easier on the User ). But the Client does Not need all of that script running over and over again to each...

View Article


Using reserved words...

Is there a work around for when I want to use construct keywords within my code?   Eg. return $array_name[quantity]="$_POST[quantity]"; $array_name[invoice]="$_POST[invoice]";...

View Article

Label printing works on linux but not windows

Hello, I currently have a php inventory program running on a nitix server (linux) but I'm trying to move it all over to a windows 7 pro machine running wamp. I got pretty everything else to work fine...

View Article

Adding Values from an array (Not Sum Select)

Hello, What I am trying to accomplish: I have a table with values. I run a Select and create an array. I would like to make my script take the number 365(days) and divide by the value in the...

View Article
Browsing all 13200 articles
Browse latest View live