39,323 Topics
| |
On the form user enter rego no where it search database and display the output what i am looking is, if the entered data not match its should display " Record not found." <?php $search_Rego = ($_POST['RegoNo']); try { //open the database $db = new PDO('sqlite:iSearch.sqlite'); $result = $db->query("SELECT Fname … | |
I need all the possible combinations alphabets, numbers (a-z0-9) , _(underscore) and .(dot) which must satisfy the below conditions Please use between 6 and 30 characters. Please use only letters (a-z), numbers(0-9) The first character should be a letter (a-z) or number. The last character a letter (a-z) or number. … | |
Hi,everyone.. I was wondering.. Is it possible to carry out other tasks in a php application while data is being uploaded(by that application) into a MySQL database? | |
Posted earlier in the wrong forum...update here: Hey there...my code below had tradtionally only updated 1 of 4 fields. Now I want to update 2 of 8, but when I enter two variables it crashes. Any help would be appreciated. Code is here if( isset($_POST['Submit']) && $_POST['Submit']=='Submit' ) { foreach($_POST['CFHL_A'] … | |
what i'm doing wrong? <?php if (isset($_SESSION['Username']=='axxxA')) { echo '<form action="upload.php" enctype="multipart/form-data" method="POST"> <input type="file" name="file" /><br /><br /> <input type="submit" value="Upload" /> </form>'; } else { echo 'Trebuie sa fii logat ca axxxA pentru a modifica profilul.'; } ?> | |
I have a code that places the time into a database in the format Year-Month-Date Time. The time isnt in Pm or Am. I want to change the code from that into Month/Day/Year and the time in am or pm. Is this possible? Or should I be using a different … | |
Hello, This I am trying to create an effective navigation code in CI. Let's say I have 10 shared pages that have the same navigation. Do I have to add the "## navigation link" codes over and over again (10 times ?) controllers/page.php <?php class Page extends CI_Controller { public … | |
Hello, please update the code to get below mentioned output. when user role is admin display text box. else hide the text box. kindly update the code so as to get desired output. <? php ...... .... $role= $_SESSION['role'] ?> <form> <input type="text" name="bankaccount" value=""/> </form> | |
I have code that worked before so i copied and pasted into new PDO as I am upgrading my website. It displays all images in one row, even though i have told it after 4th image in row crete new row and sart putting images below the row above. <?php … | |
Hello, I revised my previous discussion code by simplifying it. controllers/page.php <?php class Page extends CI_Controller { public function index() { echo "Controller loaded"; $this->load->view('homepage'); } } ?> views/homepage.php <!DOCTYPE html> <html lang="en"> <head> <link href= "<?php echo base_url('assets/css/style.css'); ?>" rel="stylesheet" type="text/css" media="screen"> </head> <body> TEST </body> </html> assets/css/style.css $('body').css('background-image', … | |
Hey iam new in php code and i tried to created login which has two type of user(Normaluser and Amdminuser) but i tried to create query where i want when normal user has loged in, to be able to fetch specified data from database just normal user so please need … | |
Hello, there is a simple code I'm writing but can't find exactly where I'm going wrong. $data = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis eget tellus cursus, ultrices justo at, ultricies libero. Vivamus consequat ante vel nunc dapibus, non tempus elit vehicula. Nulla facilisi. Proin leo urna, … | |
How to add the string before increment values with letters like A0001 increment to A0002---- please help me | |
Hi all. I need help with one HTML form. I taked a web sie template and formed it to suit my need but at the end the form build in it was not working. I have add php file and action to use the php file from what i have … | |
i have a index.php i just want only logged in user can access the page my code . in the index page is <?php error_reporting(0); $authorized=false; @session_start(); if(isset($_SESSION['$myusername']) && isset($_SESSION['$mypassword'])) { $authorized = true; } if(!authorized) { header('location:login.php'); exit(); } ?> | |
please correct the below query. i want to display variable value to textbox using echo command. variable can have both null and non null values. <td>First Party*:</td><td><input type="text" name="firstparty" value="<?php echo is_null($firstparty)? "":$firstparty;?>"/></td> error message error message:<br /><b>Notice</b>: Undefined variable: firstparty in <b>C:\xampp\htdocs\claim\claimform.php</b> on line <b>134</b><br />none. However issue is … | |
/* `I have some dynamic checkboxes and corresponding textboxes. When a user ticks a checkbox and enters data into the corresponding textbox and submits, the value of the checkbox and textbox should be inserted into the database. I can insert the checkbox values perfectly, but the textbox values have issues. … | |
Greetings friends. Please help me to understand this issue. 1 echo"<tr><td>< a href=\"home.php?num=$num\">$num</a></td><tr> 2 echo"<tr><td>$num</td></tr>"; Basically i wanted to have link for variable $num. I couldn't proceed because of following issue. However second command worked fine for me. issue : first echo returns below mentioned output. < a href="home.php?num=23434">23434 second … | |
Hi, I want to send a mail with attachment which was already uploaded and stored in a database using php. | |
I have a very small sqlite3 database with one row consisting of three columns but I can get the page to display the row to save my life. So far all I've been able to get the page to display is the first column of the one row that's in … | |
Whats the difference between Linux and windows hosting? Which Server is Best For Wordpress and custom PHP sites . I have Choosed goodady bcz its provide ssl, domain and hostin service in one place , kindly sejust me if another hosting provider best then godady | |
I am using the [jQuery File Upload plugin by Blueimp](http://blueimp.github.io/jQuery-File-Upload/) to upload images to a server. The problem is, the sending server is `admin.example.com`, and the receiving server where the images are stored is on `www.example.com`. Same domain, different subdomain. I followed the [instructions here on setting up cross-domain uploads](https://github.com/blueimp/jQuery-File-Upload/wiki/Cross-domain-uploads#cross-site-xmlhttprequest-file-uploads), … | |
Hi all, I'm experimenting with hiding the .php extension for my webpages using the .htaccess file. Seems to work, but I have a few questions... Let's assume I have a page "www.mysite.com/test.php", and the rewrite changes it to "www.mysite.com/test" 1) I'm assuming my internal links should still reference "test.php" 2) … | |
I created a small table with one entrey with three columns but I can't get it to show up in my php code. I'm not really doing anything with the form variables right now I'm mainly focused on getting the code below that to query my SQLite DB. <?php // … | |
http://phalconphp.com/ Anybody here who has already tried this one? Am curious to any experiences. | |
This seems kinda random but basically I have the following member function in my caching class: public function increment($key, $expires = 0) { // Requires OPT_BINARY_PROTOCOL return $this->cache->increment($key, 1, 0, $expires); } So then I want to do flood protection like this: $cache->increment('foo', 10) > 50 90% of the time … | |
i have download php 5.3.27 windows installer from php.net then i download apache 2.4.4 windows installer from apache site. now i have successfuly installed apache 2.4.4. to check this i have write` http://localhost/` on the address bar and the out put is "its work". now the step to install php … | |
Hello, everyone I am going to get right to the point. I am trying to create this index.php with a discounted display of the calculation. Here is my display.php page code. I have your classic $product_description, $list_price, and $discount_present. I think it might be working well the only problem that … | |
Hi, I have a table and I want to create a field to show whether it's the first occurrence (has the oldest date) of the id in that table. the table looks something like this and it's the last field I need help with creating a update code for. ----id----date_of_trans------custom_id--------cust_type----- … | |
hello kindly help , i have a login.php <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Login Form</title> <link rel="stylesheet" href="css/loginstyle.css" type="text/css" /> </head> <body> <div id="main-form"> <form name="form1" method="post" action="checklogin.php"> <input name="username" type="text" id="myusername"> <input name="password" type="password" id="mypassword"> <input type="submit" name="Submit" value="Login"> </form> … |
The End.