q2.Upload image to dynamic path in django like this —> Media/ads/<<ADD_ID>>/header/ and this path will have 3 images with different sizes
PHP Support is a place where users can ask questions from experts and develop their knowledge. They can also answer other users questions and can earn points. The aim of Php Support Online Desk is to provide resources and connecting users from all around the world which helps each other to grow their knowledge.
phpsupport | phpsupportdesk Latest Questions
how to save post request data in database(sql) in the way where keys of “request.POST” will be the database columns and values will be the column’s values
“invalid literal for int() with base 10: ” Error coming while using dynamic ” **{ column: new_email_or_phone} ” field in django update query Update query is :- user = models.users.objects.filter(token=request.POST[‘token’],otp=otp).update(**{ column: new_email_or_phone});
hello, please let me know what is Reverse Routing in Laravel?
How can be calculate the number of strings, entered by users in textarea? We need to count NEW LINE character as 2 number of charaters.
How can we save The Meta Box Data ? How can we use The Metadata From Meta Boxes ?
I facing issue related PHP. Anyone tell me clearly about put question. Why request not working centos php5.6?
get attribute
Sorry it's a private question.
first do this in your form: <form class="form-horizontal" enctype="multipart/form-data" method="post" action="/details"> and this for multiple selection: <input required type="file" class="form-control" name="images[]" placeholder="address" multiple> Now do this in your controller: public function store(request $request) { $input=$request->all(); $images=array(); ...
Your js file <link href=”{{ asset(‘assets/mdi/css/style.css’) }}” /> replace with secure asset <link href=”{{ secure_asset(‘assets/mdi/css/style.css’) }}” />
Try this <input name=”titles[]”> var data = []; $(‘input[name^=titles]’).each(function(){ data.push($(this).val()); }); $.ajax({ url: ”, type: “POST”, data: {data:data }, success: function(data){ console.log(data) }, error: function(msg){ console.log(msg) } }); I hope it’s work
First we need to run a commant in your laravel setup php artisan make:notification MyFirstNotification now you can see new folder will create as “Notifications” in app folder. You need to make following changes as like bellow class. <?php namespace AppNotifications; use IlluminateBusQueueable; use IlluminateNotificationsNotification; use IlluminateContractsQueueShouldQueue; use ...
First you need to convert image into base64 decode. $image = $request->file(‘YOUR INPUT FIELD NAME’)->getRealPath(); $get = file_get_contents($image); $blodimage = base64_encode($get); And if you want to show the blob image then you just need to add the base code in image src ...