39,320 Topics
| |
Heya guys, i just had a quick situation i wanted to ask about. I've got a form created and when i submit it, $_POST contains 4 identical sets of data. Basically i had 3 separate table forms. One to collect information and enter a query, one to post the results … | |
[CODE]$filter = $HTTP_POST_VARS['att']; $result = mysql_query("SELECT * FROM postingbob WHERE category ='{$filter}' ")or die(mysql_error()); [/CODE] That's my php code which basically takes values from 'att' in my html form [CODE]<div class="vx_two" style="float:right"> <select id="two" title="Select a category" class="pinkselect" name="att"> <option value="Addictions">Sort By Category</option> <option value="Addictions">Default</option> <option value="Addictions">Addictions</option> <option value="Animals">Animals</option> <option … | |
Hi people I have a basic shopping cart here, taken from a book "Build Your Own Database Driven Web Site Using PHP & MySQL" basic catalogue [CODE]<?php session_start(); if (!isset($_SESSION['cart'])) { $_SESSION['cart'] = array(); } if (isset($_GET['buy'])) { // Add item to the end of the $_SESSION['cart'] array $_SESSION['cart'][] = … | |
Hi, im having a mental breakdown, iv created a script where a user will type a password into a box and if it matches the one in the config file then it creates a session. on all of my pages i have the following code. [CODE]<? session_start(); if(!session_is_registered(admin)){ header("location:login.php"); } … | |
how to get coresponing value present in database through radio button selection | |
Hi, I am tryin to store the time a user logged in into a session. However everytime the user logged out, the time stored is the logged out time. Can someone advise me how i should done it in order to store the time the user logged in? Thanks [CODE] … | |
I have 2 pages called email.php and sendmail.php.email (email.php directs to sendmail.php).I want to print the URL of email.php in sendmail.php How can i do it? | |
I am new to AJAX and I am trying to create a script that will change content of a div. My scenario I am using is an index page with the list.php script included in the div I want content changed in. The list.php script will pull 8 newest titles … | |
is there any way to move files from old host to new host without upload the files from my computer i have asked my hosting about FXP but they doesn't support it can it be done by any way or by PHP script to archive the files in zip file … | |
I want insert some rows into mysql, each row shold be like this: [code] <input name="code[]" value="{code item dari data mysql}" /> <input name="name[]" value="{nama dari data mysql}" /> <input name="hrg[]" value="{harga dr mysql}" /> <input name="qty[]" value="{qty diinput sendiri}" /> <input name="subt[]" value="{autocalculated saat mengisi qty}" /> [/code] The … | |
hi i have a html page with a form. you enter information into the form then have a choice of 2 buttons. depending on the button you press you get taken to a different page. the php page commits the data you put into he form to the database then … | |
Hi all, I have a form that works great, thats updates mysql db\table But id like the end user to enter his/her D.O.B. for that I have created 3 dropdown menus one for day, second for month and third for year..since I'm new to php Id like to understand \ … | |
Hi, Is it possible to let my php script save the output that normally should appear on my screen, save it as an html page? | |
Hi, I need a PHP IDE that has versions for Linux and Windows and runs without wasting a lot of memory. Also, i want it to show what variables, class and function names are already in use. Am I asking too much? Thanks | |
Hi all, I just fired Mandriva 2010 from my external HDD. I need to run PHP IDE and PHP/MySQL server running. I'm new to Linux so I need guide from you guys Thanks | |
Does anyone has "Leave Application Format" where leave is categorised into SICK & EARN LEAVE, here one needs to enter information into mysql throught PHP and retrive it. I have few queries, how do I take care of following - (1) If any public holidays comes between SL or EL … | |
Hi, I am currently trying to work on a multi search post method on my php script and incorporate with the pagination script too. At the moment, my single post method works well with the pagination script. However when i tried to add another search query where user is able … | |
Hi everyone, first of all, I'd like to wish everyone a very merry festive season and a happy new year for 2010 .... ;-) I am working on a registration that is going fine at the moment, when all fields are populated and the submit is pressed, the script checks … | |
I've got a simple PHP page with a list of events that are taking place at certain times on certain days, and this is my code: [CODE] <? //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","root","PASSWORD"); //select which database you want to edit mysql_select_db("events"); … | |
Theres a functionality that I need that is not built into the PHP source code. I would like to modify a .c file in the code, recompile, and then be able to execute the php function with the same name as the one I added to the .c in my … | |
Hello friends, I have a very minor error, but i am not able to figure out which one is that. I have a simple form page and it goes to the another page and insert the values in database. But the thing is it inserts multiple rows in the database. … | |
I have a situation where I am updating a config file and I need a following include('config.php') to pick up the latest version of the file. Presently what I am getting is that the include picks up the previous version that had been included earlier. Here the scenario index.php: [code=php] … | |
First: Yes I'm comparing apples to oranges but in this case it is kind of possible to compare them Context: I'm a php-developer for 3-4 years I think and I really like php, I also use python for 2 years. I recently came in contact with django (python framework) and … | |
Hi I have windows XP on my intel pc. I have installed Apache2.2 and it work fine. Then I installed PHP 5.3.1. So do I have this setup in httpd.conf. LoadFile "C:/Program Files/php/php5ts.dll" LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll" But I can't start apache with this two entry in httpd.conf When start … | |
This tutorial shows how to greet your visitors depending on what time of day it is. If it's morning, it greets your visitor with "Good Morning!" If it's afternoon, it greets them with "Good Afternoon!" Magic? Noooo! Just PHP! We will start by looking at the entire script and then … | |
I got my database table named as section_master with attributes id, section, sectiontype. I have 3 radio buttons in sectiontype as office chamber residence I have created a select list for section. When i wish to choose the radio button office. i want to show only those sections in the … | |
anyone can tell how to add mins in php.? i have values in Db in this format 00:10, 4:05 etc i want to add mins...!!! can anyone guide me little bit Thanks | |
Hi frnds... i have been completed my project...now, i need to add the LIKE/DISLIKE for each & every article. How can i do that..i think its better to do in AJAX...but i dont know how? plz give me suggestion.... Is there any readymade scripts available on the net...i used only … | |
The title is pretty self-explanatory. I'm working on a PHP engine, and I'm trying to implement a SQL query generator. The hardest part of this will be designing the system for using the SELECT command. Are there any practices that I should try to follow when designing this, or any … | |
ok i have a problem and it does not seem to be the php.ini problem. what would cause my upload script for files to not completely execute and then just show me a blank page. not file uploaded and no record to the DB. i am giving the upload code … |
The End.