39,326 Topics
| |
[CODE]Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^myurl.com [NC] RewriteRule ^(.*)$ http://www.myurl.com/$1 [L,R=301] Header set X-UA-Compatible "IE=EmulateIE8" # PHP error handling for production servers # disable display of startup errors php_flag display_startup_errors off # disable display of all other errors php_flag display_errors off # disable html markup of errors php_flag html_errors … | |
Hi all, I am after creating a small basic CMS sytem that will allow me to Change things after i have uploaded my site, How would i do this? I would like to change descriptions and add photos to the site? | |
I've been altering code back and forth for an hour or so to get my form to send data to a mysql database if a radio button is checked. Right now it is not filling the table. other tables are getting populated. Here is the part of the html of … | |
Hi, I managed to use the full-text search on a single table (product) and would like to search two tables (product and article) simultaneously, when user enter a keyword. Can anyone help? Thanks | |
I don't know if it's obvious but I'm not entirely sure how to delete joined table records? For example. I have a project which also has associated contracts, files etc in other tables. They are all linked using the project foreign key. How do I construct a query to that … | |
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 … |
The End.