39,316 Topics

Member Avatar for
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
518
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
511
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
329
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
282
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
518
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
356
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
427
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
427
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
446
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
744
Member Avatar for Ashley_12

I am using the Ionic framwork for the mobile app and Bootstrap for the web app, this has been set by my University as what we have to use, so we can't change them, but is there a way to link the data base to both services? Thanks in advance …

Member Avatar for rproffitt
0
420
Member Avatar for Mushfik

Hi, Can someone guide me on how to have php code echoing inside javascript <script> var cc1 = '<?php $_GET['cc1'];'; </script> <script type="text/javascript" language="javascript" > $(document).ready(function() { var dataTable = $('#employee-grid').DataTable( { "processing": true, "oLanguage" : { "sProcessing": "<img src='https://mir-s3-cdn-cf.behance.net/project_modules/disp/585d0331234507.564a1d239ac5e.gif'height='130' width='130'>", "sLengthMenu": "Show _MENU_ Records", "sZeroRecords": "No matching records found", …

Member Avatar for diafol
0
1K
Member Avatar for Hilal2009
Member Avatar for pritaeas
0
110
Member Avatar for Aeonix

<?php $not_an_int = "sa';';';'sd12340asd"; $actual_int = "12341234"; var_dump(is_int((int)$not_an_int)); echo "<br />"; var_dump(is_int((int)$actual_int)); echo "<br />"; echo "<br />"; var_dump(is_int($not_an_int)); echo "<br />"; var_dump(is_int($actual_int)); ?> Returns: true true false false Without casting, real integer is seen as false. With casting, a non-integer is seen as true. What would be a real …

Member Avatar for diafol
0
324
Member Avatar for Nunix

Hello guys, I am here to ask for help, which it is a very problematic (for me) question: I went to the phalconPHP references and put it inside the controller (I don't know if I had to create a new controller or not, maybe yes) but I put it inside …

Member Avatar for Nunix
0
463
Member Avatar for Anmol_4

i have a array like array(2) { [0]=> array(18) { [0]=> array(8) { ["attandance_id"]=> string(3) "162" ["entry_date_time"]=> string(19) "0000-00-00 00:00:00" ["attandance_date"]=> string(10) "2016-04-06" ["class_id"]=> string(5) "11232" ["user_id"]=> string(5) "53697" ["status"]=> string(1) "3" ["timestamp_key"]=> string(27) "99b2f75ac6de8a52_1460025757" ["create_by"]=> string(1) "0" } [1]=> array(8) { ["attandance_id"]=> string(3) "163" ["entry_date_time"]=> string(19) "0000-00-00 00:00:00" ["attandance_date"]=> …

Member Avatar for ryantroop
0
212
Member Avatar for zebnoon1

dear friends, I have created Php form to store data in my mysql database. But i am facing problem in updating file data to store in database. Please check my code below $edate=$_POST['edate']; //$edate=date("d-m-y h:i:s a",time()); $ldate=$_POST['ldate']; //$ldate=date("d-m-y h:i:s a"); $cdetail=$_POST['cdetail']; $tenNo=$_POST['tenNo']; $tdetail=$_POST['tdetail']; $name = ($_FILES['uploaded_file']['name']); $mime = ($_FILES['uploaded_file']['type']); $data …

Member Avatar for diafol
0
406
Member Avatar for janicemurby

im attempting to add date of birth and age to a form and database the date of birth works fine and shows in database as it should be but the age is showing 0 in age column ive tried different things after searching and its staying the same heres the …

Member Avatar for janicemurby
0
204

The End.