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

replace text with flag

Hi   I need to replace country abbreviations with the appropriate country flag.   The php line on the website is a call from an ebay api:     print "<h5>".$item["COUNTRY"]."</h5>"; so, if...

View Article


Changing error message for form validation

Hey guys. I have admin page that just says "Welcome. Please enter your username and password".   I am trying to change that message if the username and password is empty or if it is not correct....

View Article


Image may be NSFW.
Clik here to view.

How do I pull in different includes with a list of links?

I am primarily a designer with novice level php experience, so go easy on me  .   I am moving an existing site from an asp .NET server to one for which I will rebuild the site entirely using php. My...

View Article

updating mysql table

Hello, I'm making a simple program that adds homework assignments to a database table and then displays them. I'm trying to add the ability to edit them, but I can't figure it out. Here's what I have...

View Article

htaccess PHP help

I have the following HTACCESS for my blog   RewriteRule    ^blog/?$      index.php?action=blog   [NC,L] RewriteRule    ^blog/([A-Za-z0-9-]+)/?$      index.php?action=blog&name=$1    [NC,L] ->...

View Article


Requesting certain post issue with GET

Hello All!    I am having an issue with requesting some information for certain blog post. I have written a blog in PHP and have come accross an issue when trying to look up certain articles with...

View Article

Image may be NSFW.
Clik here to view.

Incorrect Comparison (logical error for sure)

I am temporarily including some extra "testing" code within my program to help me troubleshoot it.  It won't be in the final program.  I'm trying to compare the correct answer in a quiz program ($ans)...

View Article

problem with file uploading script

there is some problem with my code but i couldn't find it.its telling invalid file while i tried with .jpg file which is allowed extension in this file any help is greatly appreciated.........   html...

View Article


Array not working after moving to PHP 5.4

The array below worked fine in PHP 5.3 but it is returning empty results in PHP 5.4 What is causing it? This is the code I am using: $xaxis=array(); for ($i = 1; $i <= 3; $i++) { $chachg_time =...

View Article


Friends and Requests

Hello again everyone.  I have searched google, php freaks and many other sites and I have found some information but not what I want to do. If I am posting in the wrong area I apologize. I want add a...

View Article

Array into db

HI Chaps, im losing sleep over this...with the below code, the info is been added to the database, however each record is added twice (with the same values)..i keep looking at it but cant see the...

View Article

String formating

Guys can any one tell me how to format a string to look like this:   Original string: 531008058   Wanted string: 531 00 80-58   I can't find a proper solution...   Thank you!

View Article

Redirect or error if the code doesn't exist in code.txt

I have in promotie.php the next form: <form accept-charset="UTF-8" action="redirect.php">   <input name="code" type="text" id="code" maxlength="15" />   <input type="submit"...

View Article


Comparing two lists of email addresses with PHP

Hey again, everybody.   Need help with the solution of yet another task related to php.   I have two lists of email addresses - List 1 and List 2, so to say. The entire contents of List 2 is a part of...

View Article

form parameters in include file

Hi, please, I have a strange problem... I do not know how to solve it, I'm trying for numerous hours... And sorry for my english. I prepared the following synthesis:   ---   All file in the server root...

View Article


Error Messages not displaying

My error codes are not working ,   i declared them as follow  if(isset($_POST['login_submit'])){ $query = mysql_query("SELECT id FROM users WHERE login_email = '". $_POST['login_email'] ."'") or...

View Article

Inserting data into the same field - mysql approach?

I have a set of records which display details about various people. One column is additional information/facts. I would like people to be able to add as many facts as they like via a form and this be...

View Article


Php4 to Php5 errors

I am moving my website written in php 4 to a server that has php5. Here are the 3 warnings I have received. How do I fix this?   Warning: mysql select db(): supplied argument is not a valid MySQL-Link...

View Article

database php help

ok a few years back i had paid someone to write this code but  cant get ahold of him and honestly cant afford to pay to have someone rewrite it so i have been going through the code and got it 90...

View Article

Php Url without port on it

Hey guys, I am using wamp to test some php files... Currently my wamp is set up on my 82 port, so I have to reference like this: http://localhost:82/test/test.php   The problem is that I am linking the...

View Article
Browsing all 13200 articles
Browse latest View live