39,323 Topics
| |
Like if you have to run a query for one million people, how would you display the percentage of the query finished? | |
Hi, i am trying to create a function that will allow me to update names in a textfile i got. I am actually having problems creating the function. I wAS FOLLOWING AN EXAMPLE I FOUND IN A C++ BOOK, DOING IMPLEMENTATION, BUT GOT MIXED UP. CAN SOMEONE PLEASE HELP ME. … | |
Hi I have designed a simple login area on a website that creates a few session variables to use to query a database of products which works fine: [CODE]<?php session_start(); // dBase file include "dbConfig.php"; if (!$_POST['username'] || !$_POST['password']) { die("You need to provide a username and password.<p>Click <a href='main_login.html'>here</a> … | |
Hi all, The following script works fine by allowing me to set a session variable with the users password, but i can seem to extract other information that isnt included in the $_POST. I know usually i would use something like [code] while ($row = mysql_fetch_array($sql)) { $user_type = $row['user_type']; … | |
Hi all, I'm new to this forum and have searched the web for days now trying to find a solution to my problem: function 1 builds the top of the page where the total ordered items are displayed. For example: total 10 items. function 2 (uses javascript's onchange=this.form.submit) builds the … | |
I am new to PHP and have not yet learned all the syntax and commends but was wondering if an easy script can be made to copy files of the same name from one directory over to another directory thru a PHP script in other words if I have 2 … | |
i try to validate my login page.. all special characters are not accepted but when i input a backslash ( \ ), an error message appears.. error in executing query.. please help how to validate it... tnx | |
hello........... i m facing problem regarding storing DOB of employee into database using html form m using date as a datatype and in database format for date is yy-mm-dd.... all other fields are properly working and storing into database but dob filed shown empty.... [code=html] <html> <head><title> Employee Data</title></head> <body … | |
Hi guys. i am having problem regarding of passing session data from one page to another. In start.php i have this session initialization & assignment. [code=php] session_start(); $_SESSION['course']=$_POST['course']; [/code] where the method of the form that this course menu has is set to POST and the action is set to … | |
Hi.. I am curretly developing on a site which has two dropdown lists which are linked to two database tables; one of which is 'station' and the other 'type'. I have a third table called 'stores' which includes all the information, and has Type_ID and Station_ID as foreign keys. Could … | |
Hi Dear All Is it possible to compare two PDF Image Files and if Name of Person is same in both documents only then we can save it to server and save the path to the Database. actually its about confirmation. But Problem is Both PDF are Images and name … | |
Hi, okay i've spent hours in the web searching for the right image slideshow/gallery to use for my website but in vain! Dont get me wrong the jQuery, Ajax scripts i've seen so far are so good but they all use lists to load all the images at once and … | |
good day! Please help me here, I need to count the record according to my condition but with my code it only counts the last record in the table in MySql. Here is my code.. Thanks! [CODE]<?php //establishing connection mysql_connect("localhost", "abc", "bbb") or die(mysql_error()); $submit = $_POST['submit']; $cancel = $_POST['cancel']; … | |
I want my cookie not to be reset when i close the browser. The way i have it right now it expires whenever i close the browser... I REALLY REALLY need a solution to this so please if someone could give me some time id REALLY appriciate it!! I dont … | |
Hi guys i need some project ideas for my major project... i want some innovative idea i had thought of doing image processing in PHP but it wil take tym to complete and i have to preapre for competetive exams too.. so pls tell me some good ideas for project … | |
Hi, This is what I am thinking to do. Do you think this approach is useful? Thanks index.php 1.Get user's ip 2.Get session id 3.Combine them together and do SHA1 it 4.Store result in a $_SESSION["secret"] login.php 1.Get user's ip 2.Get session id 3.Combine them together and do SHA1 it … | |
Hi I currently have date in database in this format: 11-7-2009 But I think I need to echo this in this format: 2009-11-07 | |
Hi, This is my first post so please be gentle.. I am building a site that has 100 or so pages the majority detailing a seperate training course. I have a contact.php page where visitors can fill in there details as most sites. this then gets sent via a mailer.php … | |
hi can any one tell me how to make a profile page for my website i have been tring for a bit but just can not do it sort of new to php. i have a dater base called clubwigan with a table in it called wigan_users in that table … | |
Hi Guys! I am starting a social networking web application project. I cant make up my mind whether to use PHP or ASP.NET. Which one is better, easier and more useful? Any suggestions...TY. | |
Hi i m trying to create two drop down list boxes where the second drop downl list box is populated based on the selection of the first one.I have searching the net for days and even the scripts i downloaded don't seem to be working..Can anyone help me plz.....Its urgent...I … | |
Hi, I am trying to validate email address's on my registration form. Everything works great except for checkdnsrr function. I was wondering can anyone help with this. I never used checkdnsrr before. Here is the code I'm using: //set flag that sais pwd is OK $pwdOK = true; //trim whitespace … | |
I have a multi page form that uses hidden fields to pass the submitted data. The final page displays the results to the user, this is working fine. If the user is happy they submit the form which is then emailed to me and they are forwarded to a thank … | |
I am going start a project that will create a pop-up window with a list of part numbers, prices , etc form another site. The listings will be selectable and then stored in our site database. I have never done anything like this before, so I would like to know … | |
Hi, Can we make secret.php bit invisible in action attribute of a form? I don't want users seing my post pages. [CODE]<form name='form1' method='post' action='secret.php'>[/CODE] Thanks | |
Hi there everyone, I really need some help. I have a load of PHP pages that generate XML feeds that need to run hourly for my site to function. Problem is I have run out of cron jobs with my hosting. I wondered if there was a way of creating … | |
hi guys, How to set html element value using php??? if it's not possible how to do this?? Thanks | |
Hi, What is the best way of securing $_SESSIONs in PHP page that prevents $_SESSION spoofing? Any example! Thanks | |
<?php class UserSession { public $php_session_id; public $native_session_id; public $dbhandle; public $logged_in; public $user_id; public $session_timeout = 3600; # 1 hour inactivity period public function __construct() { # Connect to database // $conn = mysql_connect($_ENV["DATABASE_SERVER"], 'db54496', 'HQe9rpTS'); $conn = mysql_connect('localhost', 'root', ''); if (!$conn) { die('Could not connect: ' . … |
The End.