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

Dropdown List default Value set to records value Help

Not sure how to go about this task but I imagine it requires some sort of foreach loop   I have a drop down list populated by a label called LST_Type, this table only exists to provide options for this...

View Article


PHP MySqli does not fetch last row from the table.

I noticed a bug in my script and i have been searching a lot on internet since past few hours but i could not find any information or solution. The script runs fine, no errors, but the script does not...

View Article


Requesting a little help in my bootstrap code

Hello,   I would like to request a little of help in my code, I m trying to do an database for my movies in php, instead of using an framework or just do code without any structure, i decided to try...

View Article

Image may be NSFW.
Clik here to view.

Localhost SET UP with Putty WinSCP

How one can set the localhost on WinSCP??   Tunnnel and Proxy are not working in Putty.   I would like to set up localhost:127.0.0.0 with login and password.   Thanks in advanced.    

View Article

validating number using javascript

<script type="text/javascript" language="javascript"> function checkempty() {       if(document.getElementById("title").value=="") { alert("Please enter title.");...

View Article


select menu to show record selected on same page

I have dynamic select list that is populated with countries (each country has information (shops) that is associated it. When the country is selected i want the shop information to show below then...

View Article

Requesting little help with PHP str_replace

Hi guys, I am still stuck please help me someone. The script works fine using the echo function but I cant seem to get it to work using input,  textarea fields. Also I cant seem to get it to alert user...

View Article

Multidimensional array

Hey guys, I was wondering, how would I go about it so I can have a multi-dimensional array where the first value is a string, 2nd value is a minimum amount, 3rd value is a maximum amount. And then once...

View Article


Trying to use json_encode to create an array is not working

Hello,   I am trying to create an array where by the items listed are nested with the names and the array spat out is easy to use when I am creating an ajax function with data from it all. Below is an...

View Article


Printing Multiple Pages

Good morning,   I need some help with creating sort of a Print All button for a PHP/MySQL application. I have a table that displays a list of form results from my database on a search page. Using...

View Article

Conditional redirect depending on the presence of certain element in the...

Alright, guys and gals, here's my dilemma:   I am using the Tectite Formmail script on one of my pages as a "contact form processor". I've set up the script to record the contact email of the person...

View Article

get_browser working in WAMP, but not in LAMP

I have a php page that checks a user's browser, and if they are using any version of IE earlier than 9.0, it tells them they must use a different browser to access the page they are trying to get to....

View Article

Insert Into Second Table

Hi,I paid someone $30 to create the following Cron Job on Freelancer. However when I requested further work to be added he put up the prices to $50 as if he was trying to blackmail me.All I am trying...

View Article


Collect periodic data from a site

Hi, first time visitor here! Hope I can get some help, and maybe help out too. I'm trying to collect data from a site that changes periodically. I want a script that will get a number from the url and...

View Article

Learning PHP static scope

Hello everyone,   I'm on w3schools getting used to PHP, I'm having issue getting around the following:   <!DOCTYPE html> <html> <body><?php function myTest() { static $x=0; echo...

View Article


User input

How to ensure that user input is integer Beside checking is_int(var) or intval, i also want to make sure it is not empy and not null. Only input i would like that int is between 1 and 1000. What...

View Article

Incrementing through a MySql query list

HI All, I have been searching for pointer to a problem I have for sometime and I am just not having luck finding answers.   I have a sql query that pulls anywhere from a 200 to a 2000 list of rows from...

View Article


Simple Insert Into MySQL Query

I am trying to insert some information into a MySQL database I hope someone can help tell me what I did wrong   My Code: http://pastie.org/8213129 - Before you ask $userid; is already defined on...

View Article

session variable not set at all

hi all , I have to system running Ubuntu 13.04 . on my laptop everything works fine but on my PC I can not work with session variable , I have installed Apache2 and PHP from terminal ,i'm running a...

View Article

PHP Retrieving cookies from differents pages

I want to retrieve $POST values from four Category pages and and echo user's selection in the Final page e.g Computer & Network/Components and Parts In United States / New York Example Page 1 [...

View Article
Browsing all 13200 articles
Browse latest View live