39,402 Topics

Member Avatar for
Member Avatar for Ravi_39

I want to make option to approve users before they can login or to ban them. can anyone provide me the code

Member Avatar for rproffitt
-2
96
Member Avatar for Magic8Computing

I have two values in my code one is from a SQL Server query echo to the screen as formattedNum10d my second value is stored in a MySQL database and echo to the screen as formattedNum10f. In a seperate column i would like to subtract foramattedNum10f from formattedNum10d and echo …

0
164
Member Avatar for davy_yg

Hello, This is Laravel. After inputting the profile_info I wonder why after checking the dd($here) the result remains the same. I expect it to change the same just like the value that I input. setting.blade.php <div class="setting-box profile-open"> <form role="form" id="form_update_profile_info" method="post" action="{{action('AjaxController@postUpdateprofileInfo')}}"> <div class="form-group"> <div class="col-group"> <textarea style="height: 150px;" …

Member Avatar for pty
0
267
Member Avatar for Mohammad_41

<div class="content" style="margin-left:17%;"> <div class="box box-warning" > <div class="box-header with-border" style="margin-left:20%;"> <h3 class="box-title">Add Package</h3> </div><!-- /.box-header --> <div class="box-body" style="margin-left:9%;"> <div class="row"> <div class="col-md-10" > <form action="" method="post" accept-charset="utf-8"> <div class="row" > <div class="col-md-6"> <div class="form-group"> <label for="varchar">Name </label> <input type="text" class="form-control" name="name" id="name" placeholder="Name" value=""> </div> </div> <div class="col-md-6"> …

Member Avatar for alan.davies
0
356
Member Avatar for Sana'a_1

Hi, I'm trying to copy the data from a table in one database to another table (with the same fields of the origin table) in another database. And this is my code $con= mysqli_connect("localhost", "root", "") or die("error"); $sql="insert motcenter.d select * from mot_hrms.d "; $result=$con->query($sql); But nothing happens when …

Member Avatar for Sana'a_1
0
400
Member Avatar for Unknown_2

For example, in Facebook, if you enter someone's profile you can see all the user's data. I know how to get the logged in user's data. But what I don't know is how to get every single user's data and show them. I searched a lot and all what I …

Member Avatar for mexabet
0
838
Member Avatar for arnold_5

**how to automatically sum the scores that is being inputted in the textbox and display to the specific rows of textbox** > this is my code for inputting score while ($students = mysql_fetch_array($result)) { $total = $students['fld_quiz1'] + $students['fld_quiz2'] + $students['fld_quiz3'] + $students['fld_quiz4'] + $students['fld_quiz5']; echo '<tr>'; echo "<td>{$students['id']}<input type='hidden' …

Member Avatar for benanamen
0
193
Member Avatar for Marco_5

Hello Guys, So im a student at 12 grade and im trying to build a website from scratch and i've been successfull until now, i've been stuck in this error for 2 or 3 days, i cant send the text area + other input to database at the same type …

Member Avatar for benanamen
0
343
Member Avatar for Rajendra_2

hi, i am new to php. I am trying to fetch the image stored in database by using mysqli but couldnt fetch it. Please help me with this. Please find the code and let me know where i am lacking... <?php $link = mysqli_connect('localhost','root','','db_image') or die(mysqli_connect_error()); if(isset($_POST['btn_submit'])){ extract($_POST); $file_name=$_FILES["image"]["name"]; $file_tmp=$_FILES["image"]["tmp_name"]; …

Member Avatar for AndrisP
0
392
Member Avatar for NA

i have a two menu bar option which are home and my account after login my user and pswd its show home page but when i change home to my account page its show message below and logout Notice: Undefined index: user in folder\myaccount.php Notice: Undefined index: pswd in folder\myaccount.php …

Member Avatar for NA
0
486
Member Avatar for hrushi9

**Table: category** **table structure** id label parent **example data** id - label - parent 1 - Apparel - 0 2 - Technology - 0 3 - Travel - 0 4 - shirts - 1 **For above table I have two links** 1. First link display category with no parent (e.g. …

Member Avatar for hrushi9
0
341
Member Avatar for NA

hi everyone hope you are all well... i am login with userid and password and i want to display there username after login from my oracle database how?

Member Avatar for rproffitt
0
440
Member Avatar for nalini@121

Hello Everyone! I am unable to upload fiels using Code Igniter framework. I have one form with the help of it need to upload 4 images in fabrics folder each time. Before uploading images I need to create folder sructure also but unable to do so by giving absolute path …

Member Avatar for Mohammadjan
0
2K
Member Avatar for janicemurby

hi all im attempting to update some script and i have a undefined error in a page see coding for error $column = "select * "; $sql .= " from favorites where user_id = '".$_SESSION['userid']."' "; of which the information a want to echo shows up so when i put …

Member Avatar for rproffitt
0
461
Member Avatar for Yougesh

Hi, I just need to fetch data from data base from search button on search page and get the result displayed on form in searchresult page.... For eg , if someone has signed up using his phone number or email then whe he enters his phone number or email in …

Member Avatar for rproffitt
-2
186
Member Avatar for haimz

Hello, how can i bypass captcha images when im posting with curl ? i'm sending post but cant get the value of the captcha there some way to do this? thanks .

Member Avatar for Tatjana1998
0
4K
Member Avatar for Jiby_1

i want to change (.php) to my own extension like (.abc) and it should work like php page in lighttpd server in ubuntu os. Anybody knows how to do this?

Member Avatar for rproffitt
0
284
Member Avatar for NA

i want to display my image from a folder but its not work what i change in code to work <?php $dir_path = "/xampp/htdocs/image/"; $extensions_array = array('jpg','png','jpeg'); if(is_dir($dir_path)) { $files = scandir($dir_path); for($i = 0; $i < count($files); $i++) { if($files[$i] !='.' && $files[$i] !='..') { // get file name …

Member Avatar for hericles
0
362
Member Avatar for dpaula

i am doing a project, its a database system and i need to use fingerprint scanner.i am using php and i am new to it. is ther a way that i can use fingerprint scanner?

Member Avatar for Sunil_24
0
8K
Member Avatar for NA

hi everyone i need help in my query while user login. <?php $username = $_POST["username"]; $password = $_POST["password"]; $con = oci_connect("user","pswrd","db"); if(! $con) { die('Connection Failed'.oci_error()); } $query = "SELECT username, password FROM users WHERE username=$username"; $stmt = oci_parse($conn, $query); $row = oci_fetch_array($stmt, OCI_NUM);; if($row["username"]==$username && $row["password"]==$password) echo"You are a …

Member Avatar for rproffitt
0
587
Member Avatar for NA

hi everyone hope you all are in good. i have query while login form in php with oracle database..... i want to simple login with database html code: <p> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> Username:<br /><input type="text" name="username" size="10" /><br /> Password:<br /><input type="password" name="password" size="10" /><br /> <input …

Member Avatar for rproffitt
0
523
Member Avatar for FlOrInAs14

Hello, how to make a button for change image and upload image with database. Please help me <!DOCTYPE html> <html> <head> <div class="profile_info"> <img src="images/user_profile.png" > <div> <?php if (isset($_SESSION['user'])) : ?> <div class="box-body no-padding"> <font size="6%" face="Comic Sans MS"> <strong><?php echo $_SESSION['user']['username']; ?></strong> <i style="color: #00f7fc;">(<?php echo ucfirst($_SESSION['user']['user_type']); ?>)</i></div></font> …

Member Avatar for Shankar.Shiv
0
386
Member Avatar for htmlcoder

else{ echo "Password should not be empty"; die(); } i want to hide a button here is the full code using mysql data with phpmyadmin on online server (not localhost) <!DOCTYPE html> <html> <head> <title></title> </head> <body> <form> <input type="button" onclick="location.href='/question1.php';" value="Go to question1" id="button"> </form> </body> </html> <?php $username …

Member Avatar for rproffitt
0
850
Member Avatar for davy_yg

Hello, I am trying to understand someone else code. I find many *.tpl files. Do you have any idea how to make the websites? Whether it's using certain framework or simple php? www.soulfy.com/index.php

Member Avatar for hericles
0
172
Member Avatar for davy_yg

Hello, I try to send auto mail through laravel using gmail yet getting this error: Swift_TransportException Connection could not be established with host smtp.gmail.com .env MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=465 MAIL_USERNAME=davy.yg1@gmail.com MAIL_PASSWORD=***** MAIL_ENCRYPTION=ssl MailController.php public function SendUndangan(Request $request) { $title = "Undang Saya"; $nama = $request->input('nama'); $telp = $request->input('telp'); $email = $request->input('email'); …

Member Avatar for rproffitt
0
8K
Member Avatar for joshua john

Can u tell me how toset a reminder in a calendar and it should show out as a popup notification two hours before the event to occur.

Member Avatar for rproffitt
0
140
Member Avatar for Indians

here if i click the Generate Employee Id button it should generate the random number in input textfield and then that button should hide after generate the id. how to do that? but, i can automatically generate the random number in input textfiled without the button. that code is below …

Member Avatar for Prashant_13
0
6K
Member Avatar for davy_yg

I wonder why this minus (-) on one place is able to hide the content while the others unable to hide the content, like nothing happen. It has the same codes. You can check the button simulation in : http://fresway.com/ on the right top corner of the articles. apages.blade.php @extends('home') …

Member Avatar for davy_yg
0
437
Member Avatar for davy_yg

Hello, I am trying to understand someone else codes: articles.blade.php <div class="notes-nav"> <a href="#" class="btn btn-green btn-act-delete" onclick="deleteTimeLine(this)" data-id="{{$data->id}}" data-type="article"><img src="{{url('')}}/images//icon-trash.png"/></a> <a href="#" class="btn btn-green btn-act-edit" data-id="{{$data->id}}" data-tittle="{{$data->tittle}}" data-content="{{$data->content}}" ><i class="fa fa-pencil"></i></a> @if($data->status=="0") <a href="#" class="btn btn-green btn-publish" data-toggle="tooltip" data-placement="top" title="publish?" data-id="{{$data->id}}" data-status="1"><span class="glyphicon glyphicon-ok"></span></a> @else <a href="#" class="btn btn-green …

Member Avatar for gentlemedia
0
355
Member Avatar for mlesniak

I am trying to connect to a Microsoft SQL server database using PHP 5.6 and am getting the error "could not find driver". I am initially attempting to use PDO but I could use the procedural version if necessary. I have downloaded the SQL server PHP driver and placed it …

Member Avatar for mlesniak
0
534
Member Avatar for sushmitha_2

hi, Am a newbie in php,i want to set a countdown timer for online quiz in php. when an student login,there wil be a home page and in home page there are two php pages like quiz.php and result.php, So When the studuent selects quiz.php,he will be redirected to quiz.php …

Member Avatar for sushmitha_2
0
18K
Member Avatar for random_1

Hi, I don't know if this is possible or a really stupid question. I was wondering if after a select query has been executed can the results be filtered for specific values, and not just a single value but 7 different values. with what i want to accomplish its either …

Member Avatar for random_1
0
463
Member Avatar for random_1

Hello. I have a sorting list which is populated with the different "types" and when a "type" is chosen the images along with corresponding info should be displayed but instead the page is blank with no error. I have another sorting which is more or less the same for sorting …

Member Avatar for random_1
0
296
Member Avatar for venkatesh_12

My requirement is connect to Oracle database from PHP. XAMPP is already installed in my pc. PHP Version 5.5.11 My system configuration is Windows 7, 64-bit operating system. I downloaded 32-bit instantclient-basic-nt-11.2.0.4.0.zip file and then extracted and copied folder into C drive. I gave this folder path in Environment Variables. …

0
91
Member Avatar for Sandra_16

Hi! I have a problem with try to delete some hide suspicious backlinks. I would like try to solve this problem with the unlink() php function. So the hide backlinks should not dissapear anymore. Is this the right function that might to be work for the problem? function delete($var){ $link …

Member Avatar for rproffitt
0
234
Member Avatar for NA

i want to show calendar in php show in image below connected to oracle database table. ![ywub5.png](/attachments/large/4/10022dd703908aa37616b34022b15f64.png "align-center")

Member Avatar for rproffitt
0
251
Member Avatar for NA

hi everyone i need help in my query which is that: 1.which country name i selected from my dropdown list 2.when i select any country_name its show more info in new page.php like (this selected name show more information about country_name e.g. its captical, and cities through database in new …

Member Avatar for AndrisP
0
363
Member Avatar for random_1

Hi, so this is the most basic thing ever but i am having trouble with it. idk if its because of the code or it just can't be done or idk something. I am trying to retrieve from database by clicking on a [input type submit] button but I am …

Member Avatar for AndrisP
0
242
Member Avatar for random_1

Hello, I have a products page which lists the pics of the products. I added pagination with bootstrap classes. I have 10 products in my database. I want to limit per page to display only 6 so then the second page should display 4. The issue im facing now is …

Member Avatar for AndrisP
0
304
Member Avatar for random_1

Hello, I am trying to insert a registration form with password using `password_hash()` but I am not sure what is wrong with whatever i am doing because the password doesn't get inserted into the database although all the other values do and no errors. database : password | varchar(255) php: …

Member Avatar for random_1
0
508
Member Avatar for random_1

Hi, I have a logout script that works just fine but I don't think its actually killing the session(?). so i have index.php, login.php, home.php, session.php, and logout.php. When i logout from home.php I am redirected to index.php, which is great. But when i manually enter the home.php url i …

Member Avatar for random_1
0
447
Member Avatar for Ummu_2

Hi, I am a newbie in developing a website. i have tried to connect using mysqli conncetion Here is my simple code. // db.php code _______________________ <?php //$con = mysqli_connect("localhost","root","","bakery"); $db = mysqli_connect('localhost', 'root', '', 'bakery'); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . …

Member Avatar for Ummu_2
0
372
Member Avatar for davy_yg

Hello, I wonder how do you create auto send invoice everyyear as scheduled for each client that you have? Can you create such a program with laravel? Thanks.

Member Avatar for gentlemedia
0
219
Member Avatar for Barry_6

ok, this is possibly an unusual one... I have a friend who owns a shed-load of domain names, which he's always had the intention of setting up with full blown sites over time he isn't a coder, but he is a really good ideas guy Obviously, this means he is …

Member Avatar for john_111
0
382
Member Avatar for NA

( https://i.stack.imgur.com/1LPVk.png ) i mention my link where output show when i press drop-down button then show empty fields but i have values in my sql table link ( https://i.stack.imgur.com/YEopy.png) but it does not execute my values in drop down list..i need help...when i show error it does not dispaly …

Member Avatar for AndrisP
0
1K
Member Avatar for davy_yg

Hello, This is laravel. Please help me fix the quotation so that my program works. <button type="button" onclick="window.location.href = 'route('pemesanan')';">Beli</button> If I click Beli (buy) it should run pemesanan (order) route. I don't think the route works correctly. please help me fix the quotation around the route. Thanks in advance.

Member Avatar for AndrisP
0
297
Member Avatar for Mohd_11

Hello, I would like to change the background color for each rows in Timeline chart based on specific value I,ve retrieve from database. For example, if the $status = '1', the backgrouncolor should be #000000, or else #ffffff var container = document.getElementById('myChart'); var chart = new google.visualization.Timeline(container); var dataTable = …

0
212
Member Avatar for Magic8Computing

I have an If Statement that isnt loading the right image any help would be great <?php if($formattedNum6 > $PeriodSalesTarget):{ echo '<img src="images/TargetMetGreen.png" alt="" />';} elseif($formattedNum6 > $CummulativePeriodSalesTarget):{ echo '<img src="images/TargetMet.png" alt="" />';} else:{ echo '<img src="images/TargetNotMet.png" alt="" />';} endif; ?> $formattedNum6 = 515,839 $PeriodSalesTarget = 1,366,000 $CummulativePeriodSalesTarget = 503,600 …

Member Avatar for Anil_17
0
486
Member Avatar for rpv_sen

Hi friends i am working for an shopping cart using php script, i placed a drop down option to display currency rate as per user selection(INR and USD). By default it will display all the price in INR, if any user select USD, then it has to show all the …

Member Avatar for rproffitt
0
3K
Member Avatar for Saif_5

We have built a software web-portal (POS system) in PHP language. Which is working fine when online. But when the internet goes down in the stores, the software stops completely and the managers are not able to make bills till the time internet is live again! Hence we want to …

Member Avatar for Ashraful_2
1
2K

The End.