39,320 Topics
| |
I'm having a little trouble understanding saving state data properly. What I have is 3 forms, which go into a summary, and then the user can click on register and register for the seminars. The data is then submitted to a database. Each form has a next and back button. … | |
I'm coding a simple forum, for a user system that I'm making. By simple I mean very simple - viewing categories, threads, and topics, as well as posting, editing, and reporting to a moderator. Moderators can also delete, sticky, or lock threads, or delete posts. Now, I'm doing quite well … | |
I'm trying to build a room booking web application with php+mysql. I'm close, but something keeps going wrong. The way it works is this: 1. User logs in 2. User redirects to "booking" page, where they can choose from 1 of 2 rooms to book 3. there are drop downs … | |
Hi all, taking the following function, id like to know how to get a single value out of the array (assuming 1 record is returned). i know my syntax is wrong for the function, im just typing fast....... [code] function user($id){ //connect DB SQL = "username, password, name age" // … | |
Hello DaniWeb. It's my first time to do PHP, so please bear with me. I've read books and viewed tutorials just to solve this one. I want to have a variable number of text fields. Then, I want to have the contents of those text fields loaded in an array … | |
I have a table from which I populate a list box. I need to display/edit the details of the particular record which I click on, which has to be retrieved from the same table from which the list box is populated. I need the correct coding for both the events. … | |
I have this array below. [CODE]$LOGIN_INFORMATION = array( 'user1' => 'user1password', 'user2' => 'user2password' );[/CODE] And I want to make the array so that it loads all the username and passwords from a datbase instead. How could I do that? Any help is appreciated. | |
code to link database selected through dropdownlist with corresponding database in mysql.Plz reply as soon as possible. Dropdownlist will list all database names inserted in a particular table | |
So for example I want to create a list of inputs and the user is able to choose from that list 1 option. And if that option is checked without pressing any button the image reloads or whatever. | |
i cannot pass the result of mysql_fetch_object to another function. [code=php] function sessionStartCase($challenge,$user,$pass){ global $conn; $ipaddress = $_SERVER['REMOTE_ADDR']; $url = $_SERVER['PHP_SELF']; if (isset($challenge) && isset($user) && isset($pass)) { $password = getPasswordForCase($user); echo $result->case_user_id; //if( @mysql_num_rows($row) ) { //$result = @mysql_fetch_object($row); if (validate($challenge, $pass, $password)) { echo "valid"; $result->case_user_pass; echo $result->case_user_id; … | |
How am I going to create a relationship from one table to another in phpmyadmin? Like a one to many relationship? | |
Hello.. I'm an university student and I'm developing an ecommerce system using OOPHP in MVC architecture. I find it difficult to find related articles regarding PHP in MVC. Can some one please provide me with any example or a link which would give me an idea about how i can … | |
I would like to make a tree menu with category and sub category in Php. When i click on category then display subcategory with link that subcategory page. it is with mysql database. I m tiered to make this but i can't. Please help me. I m providing a Example....... … | |
working on a form to update particular user details if required. as you can see there is also a print button. i want to know how i can print out the div=formData if print button is clicked. according to my current code when print is pressed the whole form itself … | |
I have started to code a website with a simple PHP dynamic page. I am getting a error message on the homepage "Notice: Undefined index: page in C:\w\www\index.php on line 26". However the page does come up underneath the error. Can some one please take a look at the code … | |
Hi all I'm having the most frustrating time trying to select data from two different tables that relate to each other. I have a database that has the following tables: [B]images[/B], [B]gallery[/B], [B]categories[/B], [B]news[/B] ([B]news[/B] is somewhat irrelevant to my current problem) The [B]gallery[/B] table has the following columns: [QUOTE]_____________________ … | |
hey all, i know in this day and age tech it linked with each other. is there a way to send faxes and receive faxes just using php. or if there is a service what is the cheapest. what i would need to do is have a system set up … | |
I am new to most the web programming experience and I have a php page (lets call it form.php for brevity) that posts some form information (including an attachment) to another php file that validates organizes the information (which I will call sendMail.php) and then mails it to the destination. … | |
Hi, i am trying to extract number out from a text which i grab from the database. [B]EG: ACK9734N[/B], I would like to extract just the number [B]9724[/B] from the text, how can i do so? i understand about using preg_match() but when i tried to do that, the number … | |
Hi In desperate need of some help! I'm having trouble with a mod I'm make on the threadbit template. I'd like to add some additional information from new columns added to the thread table which will show on forumdisplay. To do this I need to use the threadid in the … | |
[CODE]<input type="checkbox" name="opid[]" id="<?php echo $row['opid'];?>"value="<?php echo $row['opid'];?>"value="<?php echo $_POST['opid'];?>" /> <label for = "<?php echo $row['opid'];?>"></label> <?php $opid= $_POST['opid']; $opids =""; foreach ($_POST['opid'] as $opid ) $opids.=((int)$opid)."," ; $opids=substr($opids,0,-1); $sql="DELETE FROM opentopic WHERE opid IN ($opids)"; $res = mysql_query($sql) or die(mysql_error() ) ; ?>[/CODE] Hi, I used the above … | |
Hello, I'm new at php. I have this simple problem I can't figure out. So I have the variable $name and I want the name to appear on a page plus be linkable. But the link has use the variable.. like this: http://www.website.com/$name And also I only want $name to … | |
Good day Experts ,this form displays error as shown below [CODE] Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Tomcat 6.0\webapps\fphp\email-contact\send_contact.php on line 15 ERROR [/CODE] the code is as follow [CODE] ---------------------contact.php------------------- <table … | |
| Hi all, I am doing a website which will have a large amount of files uploaded to it which only the admin will upload files to it, users can't. I split the template in parts, the banner in its own .php file, the navigation bar in its own and so … |
Hey guys, I am really close with this but can't quite get it right... All I am trying to do is retrieve the users details based on their 'u_id' and display them. [CODE] <?php require ('dbconnect.php'); $user = $_SESSION['username']; //Get the users username $requestuid = mysql_query("SELECT u_id FROM user_usr WHERE … | |
I am working on an application in Vb.NET the pulls data from an online MySQL server. The problem i was facing was that my application had no direct access to internet. The application connects to a proxy server which was blocking access to database server because the proxy server only … | |
Hi! I'm currently using Dreamweaver as my code editor for web development but I'm considering using open source applications instead. I've always supported open source development and let's face it, Adobe's programs costs a whole lot. So I read about using Eclipse for web development and did some searching and … | |
i was just trying the new DBMS , herd it was kinda faster than MySql in some case. the below is the code i have taken (Standard example) and still i am getting error. [code] <?php // create new database (OO interface) $db = new SQLiteDatabase("db.sqlite"); // create table foo … | |
Hi all, Can anyone please help me about this problem? I want to upload file from one server to another using some sort of php class or some another PEAR file? For now I have downloaded pear file from pear.php.net. It works great but when I want to send files … | |
Hi, I am using a PHP parser to extract some contents from a RSS feed. The parser used to work just fine, but when I changed my hosting the parser stopped working and now it shows the following error: XML Error: not well-formed (invalid token) at line 11 The XML … |
The End.