39,326 Topics
| |
Hello everybody, i learned the basics of php a while ago, and as a first project, i want to create a website where anybody can rate pictures or upload his own. The hosting isnt a problem, i want to know if a db is necessary, if its i will have … | |
Hi, I have a complicated (for me) question and it is driving crazy... I just can't find the issue. Basically I'm trying to enable the browser cache for a certain php file. I'm using a script called osdate but don't have much success getting help on their forum. To explain … | |
I have been doing some research on how to go about using a random salt per user's password. There are a few things that I am still unsure about. It is easy enough to store a random hash using something as the following: [CODE] <?php $password = 'MySuperSectretPassword!'; $salt = … | |
I need dropdown menu with this options, just each of them have to show data from base where is = location [CODE]<p>Mesna zajednica <select name="mesto"> <option value="donji_grad">Donji Grad</option> <option value="karadjordjev_dud">Karadjordjev Dud</option> <option value="plavinac">Plavinac</option> <option value="seone">Seone</option> <option value="ladna_voda">Ladna Voda</option> <option value="lestar">Lestar</option> <option value="zlatno_brdo">Zlatno Brdo</option> <option value="slavija">Slavija</option> <option value="papazovac">Papazovac</option> <option value="carina">Carina</option> <option … | |
Hi all, How can I make this nonsens i have written work? I have 2 tables, one containing the urls I need to echo out in links - But I am not echoing out all of them. First I have to check in another table if there are any products … | |
change password.php [CODE] <html> <head> <title>Change Password</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="pwd.css" rel="stylesheet" type="text/css"> <link type="text/css" href="menu.css" rel="stylesheet" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="menu.js"></script> </head> <body> <style type="text/css"> #menu { top:5px; margin:0 auto; width:80%; left: 40px; } #copyright { margin:100px auto; width:80%; font:12px 'Trebuchet MS'; color:#bbb; text-indent:20px; padding:40px … | |
Hello there, anyone can help me with my problem? my problem is, i want to display a "please complete all the fields" when the user inputs incomplete data in the textboxes and i want to display it in the same form. im new in php. These are my codes [CODE]<?php … | |
Hello, I'm working on a website which requires ALL fields to be filled before a user can download stuff. How can i code the web form as such a user has to fill in their details before the download button becomes active or usable? Help greatly appreciated. regards, Pabbzmike | |
I have two relation table and I've made a php sql query out of it ... What I need is to insert the sql result into a new database table... Anyone ? this is my code [CODE]<?php $con = mysql_connect("localhost","sample","sample"); if (!$con) { die('Could not connect: ' . mysql_error()); } … | |
hi there can anyone tell me if its possible with php to use certificate to autenticate to a web application admin area instead of using common username and password? and is there a vps web server that can encrypt the whole drive and database of my application, for it may … | |
I am trying to install pyrus.phar from the command line but I keep on receiving the next error. c:/www/wamp/bin/php/php5.3.8 php pyrus.phar You must compile PHP with the following extensions enabled: sqlite3 or install the necessary extensions for your distribution. I checked the php.ini file and the sqlite3 is enabled. I … | |
hey m making a website which use to tel the daily report. there are many other functionalities as well. i have three tables concerned with this problem 1. shift 2. molding section 3. intermediate store on the basis of date and shift num, shift ids are assigned now i want … | |
I am using Zend Framework with the Doctrine ORM and was wondering how I would get Doctrine to recognize a database schema I already have made to automatically read it and handle the relationship mapping, etc. Any ideas? | |
I need some ideas in regards to the database management of the email alerts that my website is sending out. [url]www.gubbit.com[/url] My website sends out deal alerts of the products on deals everyday. Typically a product deal stays ON for 3-4 days and my script is sending the same deal … | |
| I am writing a simple program where i have a HTML page that gets the username and password from the user and sends it to a PHP page. The PHP page connects to an MS access database and retrieves the stored password, compares it with the password given by the … |
Hello,i have the following html page. [CODE]<html> <head> </head> <body> <div class="container"> <div class="8"> <?php $firstname['1']; ?> </div> <div class="8"> <?php $firstname['2']; ?> </div> <div class="8 last"> <?php $firstname['3']; ?> </div> <div class="8"> <?php $firstname['4']; ?> </div> <div class="8"> <?php $firstname['5']; ?> </div> <div class="8 last"> <?php $firstname['6']; ?> </div> … | |
HI I have a drop down box after selecting it page must be refreshed and it must show the selected value. How to do it example I select one item in a dropdown and page must be refresh and show the selected value in drop down after refresh? thanks | |
i wish to post a xml data using php ; but wihtout cURL? what are the options available. | |
Hello all, I've been searching all day for a solution to this. I have the following code: [CODE] <?php foreach ($software_serialRecords as $record): ?> <?php $programLimit = array(); ?> <?php $programLimit[] = $record['program']; ?> <?php $programLimit = array_unique($programLimit); ?> <?php for ($i = 0; $i<count($programLimit); $i++) { ?> <option value="software_serials_program.php?program=<?php … | |
Hi, I'm trying to sort out the names from the database based on the first letter by using (addr WHERE LIKE 'A%'). This gives me the following error message: [B]Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in...[/B] Does anyone know what’s wrong here? Everything works great when … | |
Hi all, I use codeiniter framework and I am still new to the framework. I settup a project in a localhost in my pc and I use netbeans id. I setup route.php in config folder , as $route['default_controller'] = "welcome"; when the project is started it shows the url as … | |
Hi everyone, i am trying to develop a website in php by reading the discussion and tutorials available on the internet and i have completed it almost, its working well we can register and data base working well, but problem is that i want to display user name on all … | |
Hi, I want to parse all <iframe> tags with DOMDocument: $videos = $doc->getElementsByTagName('iframe'); echo $videos->item(0)->nodeValue; Unfortunately, thin only gets me the value between the opening and closing tag. How to display a full tag with all attrbutes and values with this method? Thanks | |
Needs to achieve such an effect: [CODE]$dateall=$year.$month.$day; $arr_from=array('20120401','20120416','20120510'); $arr_to=array('20120405','20120425','20120515'); if($dateall>=$arr_from[0] && $dateall<=$arr_to[0] || $dateall>=$arr_from[1] && $dateall<=$arr_to[1] || ...) { $calendar .= '<td class="reservation"><span title="reservation" id="id'.$year.$month.$day.'">'.$day.'</span></td>'; } else if //other conditions [/CODE] The above code works fine. But I need to rewrite this code as: [CODE]if($dateall>=$arr_from[$j] && $dateall<=$arr_to[$j]) // something like … | |
[CODE]<?php include_once ('connection.php'); include_once ('session.php'); if(isset($_POST['submit'])) { $title = $_POST['title']; $content = $_POST['content']; $metatitle = $_POST['metatitle']; $metadescription = $_POST['metadescription']; $metarobots = $_POST['metarobots']; $metatags = $_POST['metatags']; $categoryname = $_POST['categoryname']; if(empty($title) || empty($content)) { echo 'A valid title and some content is required to ceate a post'; } elseif(empty ($categoryname)) { $category … | |
Hi about 7 days am experiencing this problem if you can help me out this is the code; it's not updating at all it's just redirecting me to the page this is my code [CODE] function editcat($cid,$catname,$catdesc,$ok=false) { global $db; $id = intval($cid); $result = $db->query("SELECT * FROM category WHERE … | |
Hi, I am new to Wordpress. I am using latest version of wordpress. I am launching new designing blog. I want new user to register on my blog so they can post blog post on my blog. I use PIE REGISTER Plugins. I have done all the settings. But i … | |
| Hello, I have setup a wordpress locally in WAMP. Every user is given points for writing. I want to write a piece of code that will add two points to the user's existing points every time he writes a blog. Can this be done usng php? Also, where should I … |
Im building a control panel on my website to cover a bunch of stuff for my website. It makes viewing each member and video, website etc alot easier. But im building a table for my members. And i have it layed out pretty good. but there's one issue. When you … | |
Aside from sql injection if I sanitize data before querying or sending it to a database are there any issues that needs to be addressed concerning security of a web app? im building an e commerce from scratch as part of a school project using notepad++ and xampp. any recommendations? … |
The End.