39,326 Topics

Member Avatar for
Member Avatar for iso_1

Hello, if any body can help me , why in the code bello the results is always null or 0? because when i want to change the password it always shows me this message "The current password you entered is not correct!" <?php @session_start(); include("./pg_connect/pgdb.class.php"); $db = new PQDatabase(); // …

Member Avatar for iso_1
0
244
Member Avatar for ogo'

Hi, I'm trying to insert some values to database based on how many values are clicked but currently it only takes the last clicked field. I have tried hard coding with mysql_real_escape_string and the dreamweaver way. Both still give me the same last picked value instead of several values separated …

Member Avatar for diafol
0
272
Member Avatar for Aeonix

I've been Googling this one, and I've come across solutions, but they don't seem to work for me. The code is as follows: <?php $name1 = "Jack Random"; // true $name2 = "JackRandom"; // true $name3 = "Jack;Random"; // false $name4 = "JackRand;om"; // false // Accept only A-Z, a-z, …

Member Avatar for pritaeas
0
376
Member Avatar for phphp

Sir I have these codes $string = ' ab'; echo (strlen($string))."<br>"; // returns 4 $count = mb_strlen($string); echo $count."<br/>"; // returns 4 $length = count(str_split($string)); echo $length."<br/>";// returns 4 All above method return 4 But I need 2 because there are TWO white spaces in the beginning of $string So …

Member Avatar for AndrisP
0
82
Member Avatar for Mayank_6

i try to redirect one controller page to another controller page using cakePHP but it not working so please help me to solve this query....

Member Avatar for cereal
0
329
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
217
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
529
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
256
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
313
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
256
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
520
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
343
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
229
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
515
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
119
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
333
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
291
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
213
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
522
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
335
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

The End.