39,326 Topics
| |
[B]insert.php[/B] [CODE]<?php $dbun = "$_POST[dbun]"; $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("my_db", $con); $sql="INSERT INTO $dbun (sn, date, particular, dr, cr) VALUES ('$_POST[sn]','$_POST[date]','$_POST[ptr]','$_POST[dr]','$_POST[cr]')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "1 record added"; mysql_close($con) ?> [/CODE] [B]DB name = my_db[/B] [B]user.php[/B] … | |
I need to store the values of a textarea tag using a form to submit the value and finally store to a mysql database table. Here is what I have, I am sure its something dumb, but its been a while since I have used php. [CODE] <?php if(isset($_POST['submit'])){ $con … | |
Hey Everyone Im having a lil trouble rightnow making this script work. What im trying to do is make a script that will change the bgcolor color to red if the Serving time is less than or equal to 1 hr left which is working now but in the long … | |
Kill me now! I have two tables in my DB. One has a list of certifications and one has a list of exam boards. I need to list the exam boards in a foreach loop giving each one an accordion. The certifications must be listed under their correct exam board. … | |
hi, i am new to mysql and also to php, i am trying to add a feature to a webpage, for showing some latest records from a mysql databse. i managed to show records from mysql database, but the problem is i only trying to show the first four records … | |
MVC Design Question Hello, I would like to move an web application to MVC Laravel 4 (not sure yet). The challenge is that the application is used by many customers and each customer have its own website/front-end but they all use the same backend/admin. The strucutre is something like this... … | |
Hi, I am trying to learn how to use a data base to store photos and such, I can now get info into the base and can get all the records to display , this is not what I had planed, So that lead me on a surch for answers … | |
Hi, In Virtual Box I've installed Fedora 17 and setup LAMP development environment. I've set the static ip to access the localhost and the applicaions/projects. Now I would like to configure it as to access them using the static IP from the host machine (Windows 7 OS). How can I … | |
Hello everyone! I have a question .. i have a js file (script.js) and a php file (script.php) , in the php file i have a code that verify a user and in the script js i have this: var uname = name.val(); $.post('HERE IS THE QUESTION' , {names:uname} , … | |
Attached is the code for my RSS dashboard, using the DaniWeb API. It's an improved version of the mashup I posted earlier, using jQuery to get all feeds asynchronously. The part which initially loads the forums is shown below. It creates an API object, and a Parser object. The first … | |
Hi all, I've been playing around with this for 30 odd minutes now and basically been making a right fool of myself... I want to make a function called `userInfo()` that uses the users email address, stored in `$_SESSION['auth'];`, to get any information required from sql. I'm using **MySQLi** and … | |
how it possible to create grid layout with 3 or 4 or 5 items per row in php something like this : ![a2cbc4d55772c3b0432d4392d13838e0](/attachments/large/3/a2cbc4d55772c3b0432d4392d13838e0.jpg "a2cbc4d55772c3b0432d4392d13838e0") I have this solution, do you think its effecient <? $count = 0; $num_images = mysql_num_rows($rs); while($data = mysql_fetch_assoc($rs)) { if ($count == 0 || ($count … | |
Hey, i am just starting php project and i am fresher in php so i want some good examples of cms in php language that how to create cms in php language. Please send me some good example of classes and cms. | |
hi po.. iam so interested about PHP thats why i joined, i except to learn more and help others.. | |
Hi there, This question relates to data structures, performance and approach to a problem. It is best explained with example so bear with me. For the record, I will be using a combination of PHP, MySQL and Apache server on a dedicated Linux server. The problem is how we would … | |
I get the following error message in Wordpress when try clicking on all users. Any idea how to fix it? Parse error: syntax error, unexpected $end, expecting T_VARIABLE or '$' in /home/content/50/10679250/html/krinspired.com/wp-admin/includes/class-wp-users-list-table.php on line 59 | |
I am trying to convert some webcode and am having trouble. I have a website with an admin section allowing me to upload images one at a time and am trying to change it to allow me to upload multiple images at once. I must have something out of place … | |
hi, i am new to this php scripting language. can any one tell me step by step process to run a simple "hello world" program. and tell me ..what are the software packages that i need to do this. thanks in advance. sanjay | |
Hello everyone, I have a search form that i am working on, and I have a huge array of checkboxes that I am using so people can refine the search down to just 1 or 2 things if they want to. In the search.php page, i have an implode function … | |
HELLO FRIENDS!, i have problem here, i try to show mysql data using dreamweaver, now i already change the sql statement to show data when user choose the data from select list/view and click submit, so thats mean i add 'where my_column = $_POST' and its work, but the problem … | |
I created a banner to my website with 3 images moving dynamically. I want to update the images from an admin pannel. Please help me. Thank You. | |
Hello, what is tpl extension file and what is it for ? I once open a php web script and saw *.tpl extension there. Thanks before. | |
Hello, I have a project to sent messages to HODs in an organization and I have developed a HTML/PHP/MySql app that sends the messages. What i need help now is: How to notify userB on his computer that he has a message when userA sends him a message. Any urgent … | |
Hello everybody, I want to deveop an online mobile recharge website for my recharge business. I can develop websites and have developed a few php applications. Now, I don't even know how and where to start from. So, please guide me on how can I develop such a website. Thanks … | |
I am trying to interact with my wqordpress database. I need to upload a csv file to my database but it will not run any query, no matter which way I try using the WordPress codex, I cannot get it to do what I need to. So from my Admin … | |
I have a php page (page1.php) that loads another php page (page2.php). with page2.php I have other php codes and "includes" that I want to work. I use content=file_get_contents(file_path/page2.php) to get the code from page2.php. I then use str_replace() to change the file path of the "includes()" on page2.php so … | |
Hey guys, Had a problem with Wordpress. When I click submit on a form for a plugin I made it says "insufficient permissions" So I can see that being a problem. I decided it might be best to use PHP_SELF. Just a question really. At the moment it is 3 … | |
hi..please help me to have code that will display list of folders from a given directory in php or javascript. for example i want to display in a page the list of folders in my c:\Program Files\. Thanks in advance. | |
***registration.php*** <!<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Register</title> </head> <body> <fieldset> <legend>Registration</legend> <form name="register" action="register.php" method="post"> <table width="510" border="0"> <tr> <td colspan="2"><p><strong>Registration Form</strong></p></td> </tr> <tr> <td>Username:</td> <td><input type="text" name="username" maxlength="20" /></td> </tr> <tr> <td>Password:</td> <td><input type="password" name="password" /></td> </tr> <tr> … | |
Hey Guys, I have been spending 2 hrs on this work. I just can't figure out how to get this page aligned properly. Here is the link to the html page [Click Here](http://demo.goincubix.com/exosafe/html/ver4/services.html) and here is the susbsequent wp page's link [Click Here](http://exosafe.com/site/services/) I'm so drained looking at the PHP … |
The End.