39,316 Topics

Member Avatar for
Member Avatar for shrikanthnk

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>

Member Avatar for minitauros
0
160
Member Avatar for branding4you

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 …

Member Avatar for minitauros
0
650
Member Avatar for davy_yg

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', …

Member Avatar for davy_yg
0
584
Member Avatar for Hassan_5

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 …

Member Avatar for minitauros
0
262
Member Avatar for urbangeek

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, …

Member Avatar for urbangeek
0
246
Member Avatar for Raju_3

How to add the string before increment values with letters like A0001 increment to A0002---- please help me

Member Avatar for AndrisP
0
470
Member Avatar for tihomir.dochev

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 …

Member Avatar for pritaeas
0
176
Member Avatar for kyle.santelices.31

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(); } ?>

Member Avatar for AndrisP
0
190
Member Avatar for shrikanthnk

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 …

Member Avatar for AndrisP
0
183
Member Avatar for abhi10kumar

/* `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. …

Member Avatar for AndrisP
0
2K
Member Avatar for shrikanthnk

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 …

Member Avatar for shrikanthnk
0
545
Member Avatar for Savita_1

Hi, I want to send a mail with attachment which was already uploaded and stored in a database using php.

Member Avatar for AARTI SHRIVAS
0
243
Member Avatar for lewashby

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 …

Member Avatar for lewashby
-1
1K
Member Avatar for best4earn

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

Member Avatar for citizensith
0
540
Member Avatar for calebcook

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), …

Member Avatar for calebcook
0
2K
Member Avatar for dstoltz

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) …

Member Avatar for Dani
0
370
Member Avatar for lewashby

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 // …

Member Avatar for pritaeas
0
378
Member Avatar for pritaeas

http://phalconphp.com/ Anybody here who has already tried this one? Am curious to any experiences.

Member Avatar for LastMitch
0
109
Member Avatar for Dani

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 …

Member Avatar for LastMitch
0
423
Member Avatar for amit.chaudhari.71

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 …

Member Avatar for veedeoo
0
6K
Member Avatar for dlmagers

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 …

Member Avatar for broj1
0
376
Member Avatar for adishardis

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----- …

Member Avatar for broj1
0
185
Member Avatar for kyle.santelices.31

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> …

Member Avatar for kyle.santelices.31
0
2K
Member Avatar for devianleong
Member Avatar for pritaeas
0
143
Member Avatar for adams2887

hi i am trying to upload an image but it doesn't work I have been trying for ages but without any luck. I was wondering if anyone would be kindly enough to take a look at it. Basicly i'm getting my echo error message "problem uploading image" displayed constantly, even …

Member Avatar for Raju_3
0
724
Member Avatar for devianleong

Here is my array: $a = array( “1” => “3”, “1” => “2”, “2” => “1”, “1” => “2”, “2” => “2”, ); and my expected output is : 1 = 7 , 2 = 3 How can I do that in foreach?

Member Avatar for pritaeas
0
14K
Member Avatar for calebcook

I'm using a plugin called [jQuery file upload](http://blueimp.github.io/jQuery-File-Upload/) to upload images to a page. Currently it uploads with the original image name as the file name (IMG_1234). I need a specific format for the image name on the server (eg 1.123456.jpg) I found this PHP code that works for changing …

Member Avatar for LastMitch
0
427
Member Avatar for klemme

Hi All, I get fsockopen warnings using drupals webform. Not my CMS, but am pretty sure nothing basic has been modyfied. I have attached screendump of error here in this msg. (Well, I wanted to but seems they have removed that feature?) Only thing is that i have disabeld smtp …

Member Avatar for LastMitch
0
152
Member Avatar for jannat1

I am trying to populate dropdown list according to other dropdown list using ajax prototype.js framework.But its seems ajax observField function is not picking the change in first dropdown list . I have two tables named mobiles and moddels moddels table has an coloumn mobile_id for association. my models are …

Member Avatar for LastMitch
1
381
Member Avatar for Rachael_1

Hi, I would like to have my pop-up(upon clicking create order) to be visible even after an error msg appears. How can I do it? <?php $selection = ''; $type = ''; $size = ''; $bidprice = ''; $offerprice = ''; $stoploss = NULL; $takeprofit = ''; //////////////////////////////// $Error = …

Member Avatar for LastMitch
0
269

The End.