39,323 Topics
| |
Hello everyone. Here just page refresh Counter++. $this->db->select('Counter_field'); $this->db->where('id', $id); $cnt = $this->db->get('Job_Description'); $new_cnt = $cnt+1; $data = array('Counter_field'=>$new_cnt); $this->db->where('id',$id); $query = $this->db->update('Job_Description',$data); What is wrong with above Query.. Every time i want increment and go to update results store in DB. | |
Hello, How to create paging for tables? I am having this database tables. I am afraid that the database will be too long so that I would like to limit the row number of the tables up to 5 rows for example and it has too go to the next … | |
Hi, How to create a dynamic drop down list using php. My drop down list should be: Example: if manager logins : the manager should see only the manager list of a company. if employee logins: the employee should see only the employee list of a company. Please help me … | |
Can anybody help or point me in the right direction what is missing on my code. The postcode is a mysql table and one field stores user's choice of postcodes in the form of array(a,b,c,d and etc....) Now I want to load selectedPostcode in checkboxes for user_id = 2 to … | |
Hello, I am looking for a sign-in button like this: [button](http://www.squline.com/en/) any clue how to create one like that? Thanks in advance. | |
Hi Guys I wrote simple PHP script for get value from URL and check similar values from the database. This is a code <?php include('../../datab.php'); if(!empty($_GET['ip'])) { $ip = $_GET['ip']; $ipcheck = mysql_query("SELECT * FROM `report` WHERE `ip`='$ip'"); if(mysql_num_rows($ipcheck)> 0) { while($row = mysql_fetch_array($ipcheck)){ ?> <body> <p>Report ID : <?php … | |
I need help with getting .php files to run in my browser (Chrome). If it's totally php, it just shows the code itself in the browser. And if it's php and html I get something like this: http://i.imgur.com/QwsRiVG.jpg Here is the code: <!DOCTYPE HTML> <html> <head> </head> <body> <?php // … | |
I am trying to change my ways and wonder if someone could help me find my way... LOL Honestly. I've always used forms in my scripts that a visitor had to submit, and it would reload the page and check the input and display any errors, etc... What I would … | |
I used following code for hiding **.php** extension but **mail()** function stopped working. What is the problem? RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC] RewriteRule ^ %1 [R,L,NC] RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^ %{REQUEST_URI}.php [L] **Mail function & redirect** mail($to,$subject,$message,$headers); header('Location: http://xyz.com/'); | |
<tr class="tablerow"> <td>Page Id</td> <td><select name='PageId' class="select"> <option value='0' >select any page</option> <?php $sql10 = "SELECT Id,Title FROM abc"; $rs = mysql_query($sql10) or die(mysql_error()); while($row = mysql_fetch_array($rs)){ echo "<option value='".$row["Id"]."'>".$row["Title"]."</option>"; } mysql_free_result($rs); ?> this done show all title from table but when i update form i want that the tile … | |
OK, I have the following regulare expression for phone number validation, but it doesn't really do EXACTLY what I want... What I want to see is a forced format 000-000-0000 where it needs to be entered with the area code-prefix-suffix including the dashes. I store it in a varchar field … | |
Hello all, Am trying to display records from mysql using HIghchart but for some reasons, it is not bringing out any output, please help me look into my codes. :::::::::::::::::::::::::::::::::::::data1.php :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: <?php include('mysql_connect.php'); $dept = $_POST['department']; //include('mysql_connect.php'); $stat = 'paid'; $result = mysql_query ("select category, amount, actual from budget where … | |
I have a table that logs customer data but i want to search for the customer, upon finding that customer i want to click on the name and find it in another table that store other data. But here is where i am stuck i want to check which table … | |
Hi all guys, I want to do, for the administrators, a page where are displayed all the "routes" regarding the pages etc. This is the html markup: <?php /** * @var IV_View_Base $this */ ?> <table class="table table-bordered" width="100%"> <tr> <td> <table width="100%"> <tr> <th width="13%">Path</th> <th width="13%">Module</th> <th width="13%">Controller</th> … | |
I am trying to develop a seach page to search the customer files that in the database. I want to be able to search and the result display on the same page and i can search for another customer without going to another page. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript"> $(function() … | |
Hi all, I have a joomla 3.2 site. My site's admin panel was working fine before sometime. But now it's showing blank page when i am accessing administrator account using valid admin url. When i inspected it with firebug i found that it's not getting some files. Then i checked … | |
I have a joomla 3.2 site and also have a android app for my site. Now, i want a suggestion system such that when anyone browse any page of my site from android device, it should display a popup, suggesting that please download our android app. There should have two … | |
Hi guys having a little problem getting my brain wrapped around this, im new to php and need some help, on my homepage i have a product spotlight container. In this container i would like to pull information from a table in my database and display the relevant content. I … | |
<html> <head> <basefont face="Arial"> </head> <body> <?php error_reporting(E_ALL); if (!isset($_POST['Submit'])) { // form not submitted ?> <form action="<?=$_SERVER['PHP_SELF']?>" method="post"> search <input type="text" name="search"> <select size="1" name="dropdown"> <option value="" selected>search By...</option> <option value="first">Company</option> <option value="last">Address</option> </select> <input type="Submit" value="Submit" name="Submit"> </form> <?php } else { // Server Variables $host = "localhost"; … | |
Hello, I'm new to php mysql and would like to ask if someone can point me in the right direction for a script or tutorial that could explain to me how to achieve the following. I have a page that is called "page.php" now when i click a link it … | |
Can anybody help me with this? use cakephp ajax jquery to retrieve data from db and display in textbox. any help is much appreciated! | |
/* -------------Physical Quantities------------Available Quantities * 51 50 * 51 50 * 63 62 * * ********************************************************** this is my table which confusing me too much.Error in this code is that when an order is processed it will add 1 to all the physical quantities,this product have four colours and i … | |
| Hi guys, I'll try to be as brief as possible. I have purchased a login script and I've pulled it apart. It all works nicely except for this one thing. The user logs in with their email address, and there is a forgot password page so that the user can … |
hello. i have a contact page that has a table populated by data from database. when a user clicks on a name a popup appears with that names data so user can edit/update. in that popup there is one drop down named salutations. say that drop down is not edited … | |
I am trying to put rows from my database to a select this is the code, <select name='network' id='network'> <option selected>None</option> <?php $query = mysql_query("SELECT * FROM `countries` "); while($row=mysql_fetch_array($query)) { echo $row['name'].'<br>'; } ?> </select> | |
Hi Everybody, I hope someone can help with this, it's taken so long to get this close but I just can't figure out the last small (but show stopping) detail. I start with a string of text and a font-face entered/selected via a form. I am using imagettfbbox to determine … | |
Does anyone sees any fault? <?php $sql = 'SELECT * FROM messages'; $result = $database->sql_query($sql); while ($row = $database->sql_fetchrow($result)) { echo $row['message']; } ?> and my database connection `$database = mysql_select_db(DB_DATABASE) or die(mysql_error());` | |
Hi all , I am a new in PHP my code don't save information in db and password confirmation code doesn't work correctly this is my simple code : <?php // decleration for varible $name=$_POST['nameTxt']; $username=$_POST['userNameTxt']; $passTxt=$_POST['passTxt']; $passConTxt=$_POST['passConTxt'] ; $email=$_POST['email']; $website=$_POST['website']; $errors=0; $submit=$_POST['btn_done']; // connection to mysql $con=mysqli_connect('localhost','root','root'); if(!$con){ die('Could … | |
I have come accross this website. http://en.colette.fr/women/just-in.html If you notice, the products are loaded with lightning speed. I understand they are using Magento. However, its still not clear how the products are loaded so fast. Can you guys give an idea what's hapening there. Is it the server or a … | |
Hi, Is a static server ip a requirement of openssl? Can I install openssl on a shared server? I know less than nothing about SSL. I'm staring my journey to implement openssl and use it in my php project but before I do I want to make sure I don't … |
The End.