39,323 Topics
| |
# Creating a register and login page, by creating a mysql database and all php files. # ## I was reading a [thread that is dead](http://www.daniweb.com/web-development/web-design-html-and-css/threads/97183/to-create-a-registration-page-and-login-page) now, so i started this one: ## **Simple PHP login:** Create a database (mysqladmin) Name the table "dbUsers." It will need 4 fields: Name … | |
include_once 'PATH/TO/swift_required.php'; //put info into an array to send to the function $info = array( 'username' => $username, 'email' => $email, 'key' => $key ); //send the email if(send_email($info)){ //email sent $action['result'] = 'success'; array_push($text,'Thanks for signing up. Please check your email for confirmation!'); }else{ $action['result'] = 'error'; array_push($text,'Could not … | |
Advance thanx to all, i am having problem with my multistep form when validations happened. please help/suggest any ideas to solve it. > image uploaded properly with condition but do not show messages and then go next step $filename = $_FILES['photo']['name']; // get extension of the image $ext = strtolower(substr(strrchr($filename, … | |
How can I delete a file using php? Using a linux server (if that matters). Thanks for any help | |
hi master, i have problem with my ci web, i use force_download in my controller but why redirect() cannot work, please tell me what my problem. $filedown = $this->input->post('filedown'); $datas = file_get_contents(base_url() . "down/" . $filedown); // Read the file's contents $name = "$filedown"; force_download($name, $datas); i have error, if … | |
hello friends, What is the differnece between $name and $$name? | |
Hi! I have a form in Drupal that is filled up by an user and sent as email to the server. I have created a new module to modify the values in the form after the user submit it and to send them to the server with new values. Here … | |
Hi folks, I am looking into an IPB forum to be registered at domain.com, for example. I would like a seperate forum on each sub-domain, ie. **forum1**.domain.com and **forum2**.domain.com. Would I have to purchase a seperate licence for each forum, or could I just have them licenced to domain.com and … | |
Can anyone point me to a sample use case of a very lightweight PHP-based example of a Google Analytics API pull?? I'm looking for two things: * Registering a pageview * Fetching pageviews per day/week/month/all for a particular page Thanks! | |
hi all! i have here a code to delete a record <?php define ('DB_NAME', 'vincegac_vince'); define ('DB_USER', 'root'); define ('DB_PASSWORD', ''); define ('DB_HOST', 'localhost'); $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if (!$link) { die('Could not connect: ' . mysql_error()); } $db_selected = mysql_select_db(DB_NAME, $link); if (!$db_selected) { die('Can't use ' . … | |
Hi There, I got a saved query in my database like this: # id rapport_query # 12 SELECT tablename.tablerow, tablename.tablerow FROM tablename Now what i want is to do execute this query with a php script and put the results in a array and then make an csv of it. … | |
http://codecanyon.net/item/ajax-contact-form/full_screen_preview/50846 I bought this contact form that validates and produces a message when its complete. The validation messages are all in with the form. But when I try to integrate it into my page "contact.html", the validation messages popup in a new window "contact.php" and I dont know how to … | |
Have you ever tried programming one of these: Showing Page 1 of 17 Go To: 1 | 2| 3….. Well I have written a nifty class that will take care of it for you. You can even change the formatting outside of the class. Call this class right after your … | |
which programming language would be cool for a web app that would be able to syschronize sim contacts to a server and could be retrieved should sim be missing by logging on to the web.as well should u get a new sim u can get contacts back on phone by … | |
we have a form and if we would like to pass some hidden fields.say,username is hidden but required and email and password is what the user form is about:- | |
<html> <body> <?php $username = 'root'; $password = ''; $hostname = 'localhost'; //connection to the database $con = mysql_connect($hostname, $username, $password,'contactmanager') or die('Unable to connect to MySQL'); echo 'Connected to MySQL<br>'.'<p>'; mysql_query($con,'INSERT INTO Personalinformation(Name, YearOfBirth, Email,Location,PhoneNumber) VALUES(Peter,2008-03-05,peter@hotmail.com,kasland,0269015748)'); mysql_close($con); ?> </body> </html> | |
suppose i have a account in a website, and i want to see the users who are members of this website, and my name is also listed there, but i want to remove my name from there, from my account, i can see others name without mine, and this will … | |
I want to create a form wizerd or a multi step form, there is a continue button to step forward, `<button type="submit" name="continue" onclick="return validateNow();">Continue</button>` and a previus button to step backward, `<button type="submit" name="continue" value="< Back">Previous</button>`, button type must be in submit format, because i have php in this … | |
Hi I have a issue in print data directly from clicking print button. Below is my code and working fine. if click print button system sends the data to another page not to printer directly. pls help me HTML page <style type="text/css"></style> <?php include '../templete/header.php'; ?> <Script Language="javascript"> function change_action() … | |
Can any one try to guide me through the installation of APACHE AND PHP SERVER with A DATA BASE connectivity.I am currently using WINDOWS 8 64-bit as my OS. I tried so many ways of installing.But couldn't find any way to it. I hope this forum will help me out … | |
Hi All - I am trying to find a solution to the following I am trying to update a form with checkboxes and to compare the value of the data variable $active from the db and if the value =1 then make the checked value as checked if = to … | |
Hello to everyone, I Have a table inside 2 div's and I need to get the tables id! How can I do this by javascript? | |
Hi everyone, I'm working in a project where its required a dynamic insertion of a grup of 3 textfields where one hiels dates. So far I manage to do the insertion part, but Im still with the problem of jquery datepicker only working right on the first(original) textfield. I notice … | |
Hi All We have a web application written in symfony framework (php). It works really well generally. However sometimes some users can not log in using internet explorer. If we clear the cookies / temporary internet files, then it allows you to log in. A few months can pass by, … | |
Hi, this is navigation. I am trying to utilize link_after or link_before to place a line on the right and left side of the navigation. How to do so ? I've tried this. it's only place the line before the navigation though, not in between each navigation item. header.php [CODE] … | |
hello! i have here a code <?php include("include/session.php"); ?> <?php echo $session->username; $sql = "select * from employee where fname like 'pedro'"; // CONNECT KO TO DAPAT SA FORM KO NA SEARCH-FORM $result=mysql_query($sql); $num=mysql_num_rows($result); $row = mysql_fetch_array($result); //mysql_close(); if($row) { $i=0; while ($i < $num) { $empnumber = $row[0]; $fname=$row[1]; … | |
My url's look like this //classifieds/search/region,something/ I want it to rewrite to //classifieds/state/something/ note: If i look at the url in the browser the words after "classifieds" are greyed. my .htacces has this: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule … | |
Hi, everyday I get a xml file that looks something like this: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <account-information report-date="2012-12-31T23:59:59.000+01:00" xmlns="http://www.XXX.SE/XXX"> <account> <account-number>00000001</account-number> <status>Open</status> <application-array> <application-type>NEW</application-type> <application-date>2013-01-11</application-date> </application-array> <application-array> <application-type>TOP</application-type> <application-date>2013-04-18</application-date> </application-array> <account-information-type> <first-name-main>John</first-name-main> </account-information-type> </account> </account-information> Today I import each account to our db with only the latest application-array (application-date). The … | |
{ global $wpdb; $category_id = $wpdb->get_var("SELECT term_id FROM $wpdb->terms WHERE name = '" . addslashes($category_name) . "'"); return $category_id; } function shorten($string, $wordsreturned) { $retval = $string; $array = explode(" ", $string); if (count($array)<=$wordsreturned){ $retval = $string; } else { array_splice($array, $wordsreturned); $retval = implode(" ", $array); } return $retval; … | |
Hi I am trying get a query to join 2 tables and a result on the information in both. At the moment I have the following $query = "SELECT * FROM TABLE1, TABLE2 Where 'TABLE2.field1' LIKE '%TABLE1.field2%'"; The problem is TABLE2 has a field with names in but TABLE1.field2 has … |
The End.