39,323 Topics

Member Avatar for
Member Avatar for WebDevGuy32145

Hey everyone, So I've got some some code for creating a directory (folder) but forgot to implement the option with creating another folder within a folder that was already created and then displaying that hierarchy on the same page. Here is what I have so far but I can post …

0
216
Member Avatar for Acu Ci Dbuggerz

What's wrong with my code? my save button is not working.. I need help please? thanks! here's my code: <?php include('header.php'); session_start(); ?> <?php include('navbar1.php'); ?> </br> </br> </br> </br> <form class="form-horizontal" method="post" enctype="multipart/form-data"> <input type="text" name="applicant_name" placeholder = "Applicant Name" required> <br></br> Applicant Type: <br/> <select name="applicant_type"> <option value="">Please …

Member Avatar for Dani
0
525
Member Avatar for ashalatha

Controller: function addblogs() { $this->load->library('form_validation'); $this->form_validation->set_error_delimiters('<br /><span class="error"> ','</span>'); $this->form_validation->set_rules('blog_title','Blog Title'); $this->form_validation->set_rules('description','Blog Description'); $this->form_validation->set_rules('category_id','Category Name','required'); $this->form_validation->set_rules('position','Position'); if($this->form_validation->run()== FALSE) { $data['categorylist']=$this->blogs_model->categories_dropdown(); $data['mainpage']='blogs'; $data['mode']='add'; $this->load->view('templates/template',$data); } else { $this -> blogs_model -> insertblogs(); $this->flash->success('<h2>blogs Added Successfully!</h2>'); redirect('blogs'); } } Model: function categories_dropdown() { $this->table = 'categories'; $this->where('status',1); $categorylist=$this->dropdown('category_id','category_name'); return $categorylist; } function …

0
253
Member Avatar for ing

I'm looking for the best way to build a simple scheduler that will be able to render a visual calendar of the last 90 days and events that occurred during that span of time. We will need to store the contents of the calendar in a database. I'm thinking a …

Member Avatar for James_65
0
2K
Member Avatar for subhashish12

hello i need solution for to create a insert/select/delete/update stored procedure in mysql and how to call them from php currently i am using xampp 1.6.6 version of software thank you

Member Avatar for Adnan_10
0
3K
Member Avatar for Magic8Computing

Any ideas why this is not actuall writing to the database <form method="post" action=""> <p>&nbsp;</p> <table width="300" border="0" align="center" cellpadding="0" cellspacing="10"> <tr> <td width="100" align="right"> Film Title : </td> <td><input type="text" name="Film_Title"></td> </tr> <tr> <td width="100" align="right"> Film Format : </td> <td> <select name="Format_ID"> <option>- Select Film Format -</option> <option …

Member Avatar for Dani
0
312
Member Avatar for samsambm
Member Avatar for phphp

Sir I have these codes global $mybalance; $mybalance=0; $mydrcr=''; $result2 = sqlsrv_query($con,$query) or die ("Error". sqlsrv_errors($con)) ; $sno=0; while($res2 = sqlsrv_fetch_array($result2)) { echo "<tr>"; $mybalance=($res2['balance']); echo'Opening Balance='.number_format($mybalance).'<br>'; if($mybalance=0){ $mydrcr=''; } if($mybalance>0){ $mydrcr='dr'; } if($mybalance<0){ $mydrcr='cr'; } echo'Opening Balance='.number_format($mybalance); The codes PHP Code: echo'Opening Balance='.number_format($mybalance); work fine at line 11 but …

Member Avatar for Dani
0
255
Member Avatar for radkowboy

I am hosting web site using a inex.php file. I have setup a login for four different users which currently directs them to same index.php file. I would like direct each individual to a specifice index.php file based on the user. I am very new to php and coding in …

Member Avatar for diafol
0
519
Member Avatar for Aeonix

<?php if (!defined("include")) { header ($_SERVER["SERVER_PROTOCOL"]." 404 Not Found", true, 404); die; } I want to include this file, as if it's not included, it should send browser `404 Not Found` and end executing script (without true and 404 doesn't work either). While Opera fools itself, Firefox doesn't. It shows …

Member Avatar for Aeonix
0
342
Member Avatar for janicemurby

hi ive picked up a script and although ive put database details in its not picking them up heres the database file ommiting my database details of course config.php <?php ob_start(); session_start(); ini_set("display_errors", 0); $hostname = "localhost"; $database = "matureco_test"; $password = "xxxxx"; $username = "xxxx"; and heres the database …

Member Avatar for Dani
0
228
Member Avatar for chrisschristou

hello friends i'm using the boostrap menu for my website it was fine until i wanted to get menu element from database so u got the syntax error unexpected '<' in line 3 and the line 5, 6, 7, 9, 10, are shown red in my IDE i gues if …

Member Avatar for diafol
0
514
Member Avatar for jeffersonalomia

Why do selection box on HTML, when filled up with values using php and then redirect or submit, sometimes doesn't drop down? Please help thanks.

Member Avatar for jeffersonalomia
0
117
Member Avatar for Syed Azadar

I need to show excel type data for each of my website, means I want to show the sale on each date and if there is no sale on a particular day that date should be empty. Currently my data is showing like this ![XMpE2.png](/attachments/large/4/5770083e49ac1a4334d730c309c84293.png "align-center") This is what I …

Member Avatar for Taywin
0
1K
Member Avatar for rpv_sen

Hi I am trying to get count based on the select query using prepare. But i am unable to get the count. Please help to fix the issue. **PDO function** public function getDistictCountRows($filname,$tablen,$condition){ echo $sql = "select $filname FROM $this->db_name.$tablen where $condition" ; $query = $this->conn->prepare($sql); try { $query->execute(); }catch(PDOException …

Member Avatar for cereal
0
332
Member Avatar for adindra

Hello everyone..it's me again..adindra i have a problem : i have 1 database name [B]manipulasiphp[/B], with 10 field (id,nama,email,alamat,umur,negara,universitas,jurusan,prodi,no_telp) i have 1 HTML script and 1 PHP script they're name are [B]index.html[/B] and [B]input.php[/B] here's the script : [B]index.html[/B] [code=php] <html> <head> <title>Form Calon Peserta Beasiswa Monbugakusho Jepang</title> </head> <body> …

Member Avatar for diafol
0
2K
Member Avatar for Bigphoto

i am just transloading multiple files from one server to another, if it comes less then this script work perfect, if its crossing to thousands URL's then requests increase and then server block for accessing files. With this script if i add 5000 URL's it suddenly starts sending request and …

0
289
Member Avatar for Rohit_31

want to create website in php using mysql. i dont know how to start i am new in php programming. Please help me!!!

Member Avatar for cereal
0
242
Member Avatar for Aarav

Hi, I am an application developer. While working on a project, I faced an issue related to validating password with regular expressions using JavaScript. I hope any tech developer may help me in resolving this issue. I have also figure out many mobile development forum to enhance my android & …

Member Avatar for Aarav
0
211
Member Avatar for showman13

Hi, I'm struggling with creating a dynamic drop down menu and hope someone can help with some direction, or possibly even a code snippet to build on. I have a table called 'cat_table' fields are cat_id, cat_name, cat_parent, create_date, last_update What I am creating is an ad page, displayed by …

Member Avatar for diafol
0
3K
Member Avatar for zebnoon1

I tried this code But does not download File while ($row = $result->fetch_assoc()) { $filename=$row['name']; echo "<tr>"; echo "<td>".$i."</td>"; echo "<td>".$row ['cdetail']. "</td>"; echo "<td>".$row ['tenNo']. "</td>"; echo "<td>".$row ['tdetail']. "</td>"; echo "<td>".$row['ldate']."</td>"; echo "<td> <a href=adminfrm.php?file=".$filename."target='_blank'>Download</a></td>"; Please, guide me

Member Avatar for zebnoon1
0
520
Member Avatar for janicemurby

hi i have the following error [09-Nov-2016 16:22:28 America/Chicago] PHP Notice: Undefined index: HTTP_REFERER in /home/matureco/public_html/index.php on line 224 [09-Nov-2016 16:22:28 America/Chicago] PHP Notice: Undefined index: email in /home/matureco/public_html/index.php on line 225 ive checked and they are in the php block see code below can anyone tell me why this …

Member Avatar for diafol
0
357
Member Avatar for Sujan_1

I am learning php from w3school and I am trying to run this code but there is shown an error when I click submit button without filling the form. Here goes my code which is in a file named "**form.php**" <html> <body> <style type="text/css"> </style> <h2>PHP Form Validation Example</h2> <form …

Member Avatar for Taywin
0
334
Member Avatar for WpExplorerr

Hello :) Around a month ago, i got a custom bookmarklet coded for my wordpress blog and on top of the bookmarklet .js code there is this line var token = 'QzEJ5PJ3/RRO4cubQQiKKNg5au6SESUSkQOK5w9HKFgH6GxVu1NNilA5TYqoMBbz6sKdZP6eQ4GeLyZ1Ht5S/VrHIISvHXKFPxXNUZmRp1M='; I think this is some sort of API key or something that’s specific to a wordpress installation right? …

Member Avatar for Taywin
0
352
Member Avatar for AntonyRayan
Member Avatar for Waqas_4

/** * A statement class that implements DB_IStatement_1 * NOTE: in most cases, you should be type-hinting for DB_IStatement_1 * @author Andrew Minerd <andrew.minerd@sellingsource.com> */ class DB_Statement_1 extends PDOStatement implements DB_IStatement_1 { } i am getting following error . Strict Standards: Declaration of DB_Statement_1::execute() should be compatible with PDOStatement::execute($bound_input_params = …

Member Avatar for cereal
0
455
Member Avatar for SimonIoa

I want to make a script that changes pictures depending on the type . I am getting a error on Sql but i dont know what i am doing wrong this is the script function Pic($profilePic) { if($profilePic) { $profile_pic=BASE_URL.UPLOAD_PATH.$profilePic; } else { $sql = "SELECT type FROM messages WHERE …

Member Avatar for cereal
0
435
Member Avatar for berserk

Hello All, i have run into an issue with my little project that i cannot seem to find much on and im at a lose for resources to check through. I am trying to get and use data that is being pulled from a json echo to my other php …

Member Avatar for berserk
0
450
Member Avatar for Nunix

Hey guys I need help because I am with difficulties on showing the arrays in my website screen. There is an attachment with my website screen so you can see what kind of error is. Here it is my **UserController.php** where I call the translation: <?php class UserController extends \Phalcon\Mvc\Controller …

Member Avatar for diafol
0
598
Member Avatar for janicemurby

Hi all im currently updating a script and repairing it after a page full or errors most ive done through searching but im stuck on this on if anyone can help be much appreciated jan PHP Notice: Only variables should be passed by reference on line 16 the piece of …

Member Avatar for ryantroop
0
745

The End.