39,316 Topics
| |
Hello everyone have a nice day or night where ever you are so i hope i will have a great night if i fix this problem i have right here :D i have a array list with some match tips and i have a 16 input fields so i want … | |
good day! I have a php form. I have made some ajax validation on it but everytime i click the submit button it does not validate, and when I try to issue an alert command on ajax function, it returns undefined on certain variables? Here is my present code: <Form … | |
I have a Yahoo website that uses phpMyAdmin. I've been given the directive "Please run the script mysql_fix_privilege_tables that should be included in your MySQL server distribution to solve this problem!" I do not know how to run this script (or any script) through phpMyAdmin. I've been looking online and … | |
Hi guys, im new here and new to web development. I want to build a marketplace for tutors where they can upload their profile and information. Students who want to find a home tutor can go there and find a suitable one by submitting a home tuition request. I want … | |
<?php include('connect.php'); $upid=$_POST['id']; $upname=$_POST['categoryname']; $updesc=$_POST['description']; $newupid=mysql_query("update tbl_category set categoryname='$upname', description='$updesc' where id='$upid'")or die(mysql_error()); echo "<script type='text/javascript'> alert('Updated Successfully'); window.location.href='view.php';</script>"; ?> This is updated code. It works successfully. but I want to show alert box "Nothing can be updated" if no changes made. And it should have the same . | |
Good day! I just want a little help on how to get all data from mysqltable where month=january or feb.. etc. and year =2015 or maybe 2014 I have a table with datefield(yyyy-mm-dd) example dates data are: 2015-01-17 2015-02-17 2014-12-17 2014-10-17 2014-03-17 And I have a span list of months … | |
sorry for my bad english... Is it possible to create a Pharmacy Portal(multi-Portals) online Pharmacy delivery system using Drupal commerce? It has multiple Pharmacy Portal (Pharmacy) in different locations which can be manageable by individual portal admins and Portal admin will have n number of medicals and medicals will have … | |
Currently I'm using xampp, and creating chat-app with AngularJS and integrated with Laravel framework. My AngularJS front-ends is actually placed in Laravel's views folder. And the back-ends stuff (Angular's controller, services) placed in public/app folder. I try to integrate chat-app template (front-end) into my video template. So it's actually a … | |
I have a little problem over here this code doesn't work well what is the problem if anyone know ? $getUsername = getUserData('Username'); $sql = "INSERT INTO `kladilnica` VALUES ('', '".$getUsername."', '".$betAmouth."', '".$gain."', '".$date."', '".$match1."', '".$match2."', '".$match3."', '".$match4."', '".$match5."', '".$match6."', '".$match7."', '".$match8."', '".$match9."', '".$match10."', '".$match11."', '".$match12."', '".$match13."', '".$match14."', '".$match15."', '".$match16."', … | |
Hey guys. I have a function that is returning options that the user has selected. I need to get these options in an array for matching. Here is my rough code. $test = array(); $newVals = (printList($file_names)); $newArray = array_fill_keys($test, $newVals); if (in_array("this.pdf", $test, TRUE)) { echo "Match found<br>"; } … | |
Hi all, I am using Ardent as a standalone package, together with Laravels Database package. Things are set up, and I can query just fine - But when I define my relations, I get a white screen when I try to dump the expected data. I have double checked and … | |
Hello is there a way of checking the input field have a value but with out clicking a button, for ex. if i write any letter inside the field to give me result for example `hello` or something else... | |
Is there any simple PHP based backend system that has multi user and multi roles access control? | |
i want to add another function for level of access in this code. admin=3 artist=2 client=1. like that. but need some help to to that :( thankyou in advance (: <?php include('password.php'); class User extends Password{ private $_db; function __construct($db){ parent::__construct(); $this->_db = $db; } private function get_user_hash($username){ try { … | |
Hello guys, I create an aplicattion for read value from a PLC. When I used one function socket the php page works fine, but when i put two or more I need around 20secundes to open one php. Somene Knwos i can improve my code or sockets in php are … | |
Hello i have this code and something isn't working but i dont know what, the code it does not updating the database at all and i don't get any errors. <?php if(isset($_POST['howMuch']) && isset($_POST['where'])) { $howMuch = $_POST['howMuch']; $where = $_POST['where']; if(!empty($howMuch) && !empty($where)) { $user_mBalance = getUserData('payCheck'); if($howMuch > … | |
i have a problem with generating a one time password that will expire once used or after a few miute. this is what i want to do page 1. create a captcha. if verification is valid then direct me to page2 page 2. this page asks for my name or … | |
Hi I am having two textbox, textbox1 is having autosuggest feature. i want to display related value based on textbox1 value. can any one pls help me. i collected the code from internet **Output Example** Report Name : PHP Report Version: It has to display the Verison from the database. … | |
how to change the password for already existed user in php can anyone give me the sample code? | |
How to convert php associative array to javascript array | |
How to show multiple pictures in between a period of time. Can anyone give me with example? | |
Hello, I want to fetch database table in csv file format. I tried but in my output file every fethced line is getting printed on new line. code is as below <?php $host="a.b.c"; $uname="root"; $pass="test"; $database ="TEST"; $connection=mysql_connect($host,$uname,$pass); echo mysql_error(); // Fetch Record from Database $output = ""; $table = … | |
Hello, I have just created a new page of form submittion but wanted to show different form value when different option is selected from the dropdown can any please help me out with this concirn. Here is my code <form method="post" name="form2" action="insert_report.php"> <label> <p><b>Campaign</b></p> <p> <select name="campaign"> <option value="">Select … | |
Hi guys just a quick question how do i send email from a form in codeigniter? I have searched and tried to get it right but it just keeps telling me that the page required could not be found? Here is my view: <div class="container"> <div class="row"> <div class="container"> <div … | |
how to solve or make website in dual language with all content. i want make website in two language (Gujarati Or English). it can possible in single database?.how?. please give me proper logically solution. i can't understand that how to code it. thank you so much. | |
hello, im wondering how to throw an error message to a user if the input value is a duplicate in `INSERT INTO...` I have: <?php require "connection.php"; $name = $_POST["names"]; $event_id = $_POST["events1"]; $euser_id = $_POST["sessions"]; $single_chair_id = $_POST["schair"]; $assign = $dbh->prepare("INSERT INTO cinema(cuser_id,event_id,guest_name,chair_id) VALUES(?,?,?,?)"); $assign->bindParam(1, $euser_id, PDO::PARAM_INT); $assign->bindParam(2, $event_id, … | |
I try to display a pdf document with code like this: <?php session_start(); if (empty($_SESSION['nip']) AND empty($_SESSION['password'])) { ?> <script type='text/javascript'> alert('You must login'); document.location='../../../login.php'; </script> <?php }else{ include_once '../../../config/core.php'; include_once '../../../config/functioncollection.php'; $kode_materi=antiInjections($_GET['id']); $querambildata=mysql_fetch_array(mysql_query("SELECT * FROM materi_tb WHERE kode_materi='$kode_materi'")); $file = "../../../filemateri/".$querambildata['url_materi']; $filename = $querambildata['url_materi']; header('Content-type: application/pdf'); header('Content-Disposition: inline; filename="' … |
The End.