All Questions
123 questions
0
votes
3
answers
647
views
Is it possible to hide or show links in laravel after login
I am new to Laravel. I am now able to register users, log them in. But after login, I don't want to display register and login pages. I want to display logout link. This is easy for me with core php.
...
0
votes
0
answers
112
views
image don't show up with laravel 8
berita.blade.php
img src="{{ asset('/img/'. $berita->foto )}}" height="50" width="50" alt="" srcset=""
BeritaController.php
public function ...
0
votes
1
answer
394
views
Missing required parameter for [Route: rekap.laba] [URI: rekapan/laba1/{tanggal}] [Missing parameter: tanggal]
Hello i have a problem in my code to show a detail from data-tables, the error say "Missing required parameter for [Route: rekap.laba] [URI: rekapan/laba1/{tanggal}] [Missing parameter: tanggal]&...
0
votes
1
answer
1k
views
How to Show Data After Login in Laravel
After successfully login from auth, I wan to show the data from database. But I got an error like this.
Undefined variable: barangs (View: C:\xampp7\htdocs\example-app\resources\views\barang.blade....
-1
votes
1
answer
122
views
show data from 2 tables laravel 6
I have a problem showing data from 2 tables with an id, in laravel 6. My tables are "users" and "companies".
users
id
name
last name
companies
id
company
address
id_user
Model ...
1
vote
2
answers
390
views
How to hide a button until a selection is made in the dropdown in jquery?
I have three dropdowns on the page. Upon selecting a value in the first dropdown, the other two dropdowns gets populated. Now, I want to have a button appear upon making a selection in either second ...
2
votes
2
answers
344
views
Jquery not showing button
Trying to show the submit button when the login fails, but unable to show it.
My Code:-
<html>
<head>
<script src="https://code.jquery.com/jquery-3.5.1.min.js" ></...
2
votes
1
answer
3k
views
Call to undefined relationship [users] on model [App\Team] laravel 6
Hey i am pretty new in coding and laravel.I am trying to build an app here i think i messed it up but cant find a way around it.I am getting Call to undefined relationship [users] on model [App\Team] ...
0
votes
3
answers
51
views
Can't show another checkbox by clicking a checkbox dynamically & individually
I have a first checkbox with a list of several schemas.
Want I want to do is simple:
When I check a schema, I want to make appear his individual div "list-right" right below, which is ...
-2
votes
2
answers
126
views
How to count and show duplicate in php string? [duplicate]
To create a ranking, I would like to count and then show duplicate entries in a string
<?php
$orgasql = "SELECT organisateur FROM events ";
$orgareq = $bdd->...
1
vote
1
answer
1k
views
Show/Hide records PHP MySQL
Since i can't find anything about this, i thought i should ask for help here.
I'm working on a table (PHP/MySQL) which currently looks like this:
https://i.gyazo.com/4115cf6fb14921ea9109580ec9c6c531....
0
votes
2
answers
449
views
Show/Hide div id from input value form previous page
I find it difficult to solve this problem. I want to use the form input data data from the previous page to show or hide a particular div id.
<form action="http://example.com/example/" method="...
0
votes
2
answers
61
views
Hide form and show div
So I have this
<?php
if(isset($_POST['submit'])) {
$error = "test";
}
?>
<div id="first" class="1">
<form action="" method="post" id="myform">
<p>
&...
0
votes
1
answer
274
views
Show / hide php mysql results with loader
I have MySQL database results.
I want to show 3 rows and then hide rest.
When the user clicks to load more data then to appear all rows.
The problem is when I click show more, then only one more ...
-1
votes
3
answers
68
views
Show data from database in ajax
I want to show data from database into ajax.
function Data_Table() {
$.ajax( {
url: "<?php echo site_url('admin-spot/company/FieldTable')?>", type: "GET", dataType: "JSON", success: ...
0
votes
2
answers
305
views
How can i show only certain columns of data table in sql?
I created table in php and want to show only some of column names in this table. I used SHOW Statement, but it shows all columns. This is my code:
$result = mysqli_query($con, "SHOW COLUMNS FROM ...
0
votes
1
answer
73
views
Show/Hide rows with JQuery AND scrolling to anchor
I have a question about toggling rows with JQuery. In fact, the toggling works, but when I click to toggle, the page always jumps to the top of the page. When I have a long list, the row is showed, ...
-1
votes
1
answer
173
views
Show content if user_type is equal to X
I have a question.
How can you show content on a webpage if a user type is equal to value admin?
I want to show content only if the user had user_type admin.
I've this code rightnow but it isn't ...
0
votes
1
answer
496
views
hide/show php checkbox by id like www.anysite.php?id=10
I have a form and a checkbox. By click on the checkbox, a div within some other divs will show up or hide. This works! But, if i visit my page with an id like xxxxx.php?id=10, the checkbox is checked ...
1
vote
0
answers
65
views
Display Media in show action
I use Sonata to make an app and I am facing some problem with MediaBundle.
I Have two entities :
Product & ProductImage
Inside Product I have this :
/**
* @ORM\ManyToMany(targetEntity="...
1
vote
0
answers
354
views
show cities from state id in database PHP
I'm trying to make a php website
in the register page I user must choose the state (select input) then the cities input will appear after he chose the state.
this is my work but not work, I need ...
1
vote
1
answer
669
views
mysql php jquery hide show select
I know a little bit of PHP programming, but none of JQuery.
I have build a <select> dropdown menu with data from MySql db.
But now I want a button or something next to the <select> option,...
0
votes
2
answers
2k
views
Add foreign key to request Laravel
what i am trying to achieve is :
User create a Delivery by a title input,
When the user send the request i want to get the users_id to add it to delivery table as a foreign key.
Here is the deliveries ...
0
votes
1
answer
6k
views
Display image from database in Php page
I try to make online quiz with images questions, and i need your help/advice. My images is stored on database where have an id "image". My upload works fine, image is stored on database...but i can't ...
1
vote
0
answers
252
views
Showing categories and their respective subcategories in a specific html structure
<ul>
<li>
<a href="">Category 1</a>
<ul>
<li><a href="">Subcategory 1</a></li>
<li><a href=""&...
2
votes
3
answers
551
views
fetch data from a table having foreign key in yii1
I have a table name business and second table address. Business table has attributes, id,buisness name,image and address table has attributesaddress_id,business_id,street,city,house.
In my business ...
-1
votes
2
answers
57
views
If on this site don't show This? [closed]
I have a problem showing some piece of code on all pages but one, how can I achieve this?
I have this droplet, that is showing on all pages, but I would like it to be shown on all but the first page. ...
0
votes
2
answers
583
views
how to show/hide div based on selected option's id?
I have this vehicles invoice form with 5 rows. each row can be a different vehicle but if a car is selected, it shows you a second select list to chose its color.
here is my javascript:
<script&...
0
votes
2
answers
79
views
php popup window issue
i have three popup windows, that are supposed show if the $_GET variable $message is: changeSuccess or changeSuccessMenu or changeSuccessEvent. The problem here is that even if this value is ...
0
votes
0
answers
47
views
<PHP> The images doesn't appear when I use include
I want to make the images to appear from another directory, instead of copying the whole images folder.
The images folder bath is correct
http://store2.up-00.com/2015-07/1436323416451.png
<img ...
0
votes
1
answer
204
views
show message success when confirm a form by ajax & jquery
when user write her email for Newsletters, i want to show them a suuccess message
newsletter.php
<?php
$templates="templates/";
require_once 'includes/init.inc.php';
//require_once '...
0
votes
1
answer
123
views
text show and hide with button php/js
How can I apply the multiple texts? With a text it works:
<dl>
<dt>
<img class="empfehlung-bild" style="max-width: 300px; height: auto; float: left; margin-right: 15px; ...
2
votes
1
answer
526
views
How can I use MySQL statement 'show index' with PDO?
I am trying to use PDO and prepared statements to get the primary key of a table. From other questions I saw that this is possible when executing something like this:
show index from TABLENAME where ...
-1
votes
2
answers
195
views
Show text if date is today
I need to show (today) text if date is today. How do I do that!
I tried everything but cant find the right anwser that's why Im asking here.
Here is the piece of codeI have right now.
$mod_list.= '&...
0
votes
3
answers
69
views
Php style show function
Hi guys I want that on click of the button "show" the following inputs became visible, can someone help me?
<input id="show"type="submit" value="change" >
<input id="oldpass"TYPE="text"value=...
-1
votes
1
answer
207
views
How to create pagination to display array using "for" loop?
for($i=0; $i<sizeof($allTags); $i++) {
if($allTags[$i]!='') {
$qa_content['custom'.++$c] = '<article>// <div class="custom.."
<header><a href=...
-1
votes
1
answer
2k
views
Show More and Show less in PHP
I really need help to show only 90 words or 400 characters of text from MySQL database. Currently my code shows everything and i was hoping to truncate and give the reader the option to see more or ...
0
votes
0
answers
88
views
How to show dropdowns with selected options if form is submitted and have validation errors
I have a form with radio buttons first. When you choose a radio button, it is shown different dropdowns for different radio buttons. They are dependent dropdowns. First I hide them all. It's working, ...
0
votes
0
answers
81
views
Output Users ISP on Webpage
I am trying to display users ISP.
I managed to get their IP and their hostname but I'm having trouble displaying only their ISP.
The PHP code I used for hostname is:
<?php
$hostname = ...
0
votes
1
answer
2k
views
Display field set based on dropdown selection yii 2
I am new to javacripting and Yii2 Framework. Can anyone please help me just to display a set of field values depending on the dropdown selection.
For example, I have in dropdown "If you are a student ...
-1
votes
1
answer
63
views
POST data is not submitted a situation where I have two alternating forms chosen with show() and hide()
I have 2 forms in a program whereby the second form when showed and then filled up but the keyed-in information never get captured by the POST variables.
Upon click Submit on 2nd form it always go ...
0
votes
1
answer
843
views
CKEditor will not show echo function
I implemented Ckeditor into my blog , and I have an "Edit Page".
In that page I want to get the text that I wrote so I can obviously edit it, problem is it doesn't show up , like the rest of the text ...
1
vote
1
answer
673
views
curl result within a div not show up
I hope someone can help..
I'm trying to get shipping information from other site.
The tracking result is fine on the original site by using http://www.cekresi.com/?noresi=MXGAA08491431715#
But when ...
1
vote
1
answer
538
views
Show checkbox array values
i'm trying to loop inside my checkbox array and show the value of each element, but its returning 0, and the real value are emails. (lucas.ro****@gmail.com) and (thatian****@gmail.com)
These are my ...
0
votes
3
answers
162
views
MySQL Data show by php. If select show selected data, If no select; show whole data. How can I do this?
This is a blood donation web site. If anybody want to see his areas donor; he select blood-grp, district and area. But if he do not select area field, He see nothing. But I want He see whole districts ...
1
vote
3
answers
105
views
Uploading an image of any format and showing it irrespective of the extension codeigniter
I have a folder where Im uploading images of different format.The file extension can be jpg/png/gif.
Eg : id_proof.png
id_proof.jpg
id_proof.gif
but the file name remains the same.Now how ...
-3
votes
2
answers
527
views
How can I call a php script from another file and display it on the current page? [closed]
I'm working on a custom contentlocker, where I display contents based on: Mobile/desktop platform, the operating system and the country of the user.
I'm stuck at the part where I want to show the ...
-1
votes
2
answers
413
views
jQuery .show() multiple tags with the same name
I have my jQuery code setup so when a span is clicked, the is hidden and an input box is shown it its place. From here the input box can be typed in and the value is passed back to the .
My problem ...
0
votes
1
answer
40
views
Fill a php array with the content of other php arrays
I've been searching for a while now to accomplish my question, so I decided to ask it here.
My problem.
I've filled 2 arrays with content from a database like this:
$query = "SELECT table_1, ...
1
vote
3
answers
133
views
Show content Jquery
I'm trying to show content from a gallery in a #showcontent div. Currently i have this set up
The Js
<script>
$(document).ready(function() {
$('.gallery-item').on('click', function(...