39,393 Topics

Member Avatar for
Member Avatar for muralibobby2015

Can anyone please help on this. Tenanti Version: ^5.0 Laravel Version: 7.x PHP Version: 7.4 Database Driver & Version: mysql-5.7.31 **Description**: When I install tenanti version getting an error in service provider. Illuminate\Contracts\Container\BindingResolutionException Unable to resolve dependency [Parameter #1 [ array $config ]] in class App\Providers\AppServiceProvider Steps To Reproduce: "orchestra/tenanti": …

0
77
Member Avatar for R_4

I am trying to get user's information and show them in user's profile. And i found this query but it is in PDO and my work is in sqli here the query : if(isset($_SESSION['user'])){ $getuser=$con->prepare("SELECT * From users where username=?"); $getuser->execute(array($sessionuser)); Sinfo=$getuser->fetch(); And here the whole code <?php session_start(); $sessionuser=''; …

Member Avatar for Smartfitness33
1
71
Member Avatar for vindyauwu

I want to create a single login page for Admin and user.When admin lo it should go to seperate page and when user log it shoult go to seperate page.I want sample code for this.Thanks..

Member Avatar for VINITHAPRIYA R
0
36K
Member Avatar for Greg_11

I have a project where I need users to be able to save their work, then at a later date select the session/data from their previous work and continue. I have completed all of the coding (and it works) to save the current session under their userid, and populates a …

Member Avatar for JeanMilburn
1
360
Member Avatar for Alexander_26

How to remove from the Google index pages of my site that were created by a virus Japanese keyword hack? It is necessary to remove from the Google index links to the pages of my site http://quartercheapersigns.ca/ that were created by a virus - about 43 800 pages in Google …

Member Avatar for Dani
0
87
Member Avatar for sandySuper

When I access an api. it returns data in below format **n2035014,25 N2035014,25 B2035014,2944.40,250,3787.30,2400** o24,22971.20 h24,23064.15 l24,22641.40 c24,22945.05 i24,22744.40 I am clueless how to map these data and store in mysql table. First set of data highlited in bold is dataset 1, followed by second set of data which has …

Member Avatar for JeanMilburn
0
67
Member Avatar for SimonIoa

Hello i want to automatically add an id to the inserted row on my table in Mysql db. The table has no uniquie key and no AUTO_INCREASMENT. I just want a function to add the id automatically when the row is inserted. This is the statement i have $db = …

Member Avatar for twexpresscars
0
56
Member Avatar for discuss
Member Avatar for SimonIoa

i want to unserialize? and display Array from my text field in db table. This is what i use to serialize on Insert statement. `$persons = serialize(array($paymentData['anArray']));` and this returns after var_dump `["persons"]=> string(104) "a:1:{i:0;a:2:{i:0;a:1:{s:5:"value";s:15:"Producer: Simon";}i:1;a:1:{s:5:"value";s:13:"Writer: Simon";}}}" ` Now the object that i return from Select statement is memberDetails $sql …

Member Avatar for Dani
0
145
Member Avatar for jack98

hello, i have a probelm where i want to update my image in database using unlink(). The error is **Warning: unlink(images/481933.jpg): No such file or directory**. I try search the solution but nothing can solve my probelm. anyone can help me? thank you in advanced. this is my code: $upload_dir='images/'; …

Member Avatar for Dani
-1
648
Member Avatar for Botoho

For example. I have a select statement that is "select ID from students where student name ='name';" Now I don't wanna echo the student ID but I wanna store it in various where I can reuse it. How do I do it. "select ID from students where student name ='name';"

Member Avatar for Mr.M
1
448
Member Avatar for MNSRAO

Hi i am computer science students. I always confused to about php base websites or another website. Yesterday my teacher gave me assingement to check website either it is php base or other platform. But i haven't decided to give answer. I am week student in class. please help me …

Member Avatar for rproffitt
-1
45
Member Avatar for Jack_62

Hello friends, I am looking to start my career in web development. I have also learned a lot of about web development and PHP. So, can anyone let me know which is the latest version of PHP and it's featured?

Member Avatar for pritaeas
0
48
Member Avatar for gaauiop5

I'm trying to redirect user to "userinfo.php" after successful registration, but the browser terminates the redirection because it goes into endless loops.

Member Avatar for Dani
0
36
Member Avatar for Mohd Irfan

// To protect MySQL injection for Security purpose $stmt = $conn->prepare($SQuery); $stmt->bind_param("i", $user_id); $stmt->execute(); $stmt->bind_result($fullName); $stmt->store_result(); if($stmt->fetstmt->store_result() ch()) //fetching the contents of the row

Member Avatar for pritaeas
0
50
Member Avatar for Tko_1

I needed a script that would grab all the folders in the directory and add them to a dropdown list and allow the user to upload to there choosen folder. This is what i came up with. (upload script is not mine) Thought i would share.

Member Avatar for rproffitt
0
4K
Member Avatar for litlemaster

Hello to all, I am trying to execute a mysql query for selecting * rows from the table where user name = [one of the usernames stored in an array]. Ok. Sorry if I am not clear. Now I have an array naming $users[]. I want to select all the …

Member Avatar for mukesh_20
0
37K
Member Avatar for jeffersonalomia

Hi, I would like to ask for help regarding on passing multiple data or array in View Composer The error that I encounter is **Trying to get property 'settings_cust_comments' of non-object (View: B:\projects\web\redesign\resources\views\myapps\myapps\index.blade.php)** Please see code below Thanks in advance MyComposer.php <?php namespace App\Http\View\Composers; use Illuminate\View\View; use App\Model\MyApp\SettingsApps; use App\Model\MyApp\SettingsMainMenu; …

0
57
Member Avatar for Emeka_2

Hi all,` The below code is giving me problems. <?php $ddaa = $pdo->query("SELECT id, stockname, stockno, producer FROM storemaster order by stockname");; while ($data = $ddaa->fetch(PDO::FETCH_ASSOC)) { echo '<option value="'.$data['stockno'].'" data-producer="'.$data['producer'].'"> '.$data['stockname'].'</option>'; } ?> This is the script: <script> $('#stockname').on('change',function(){ if($(this).val() !=0){ $('#stockno').val($(this).val()); $('#producer').val($(this).attr('data-producer')); } }); </script> All I wanted …

0
50
Member Avatar for Greg_11

I am trying to hide a radio button based on wether or not a user is an admin <?php if (($_SESSION['admin']) == 0) ?> <script>document.getElementById('adminbutton').style.display = 'none' </script> <?php if (($_SESSION['admin']) == 1) ?> <script>document.getElementById('adminbutton').style.display = 'block' </script> Obviously the above doesn't work.. Any help is, as usual, greatly appreciated. …

0
85
Member Avatar for Onica

Hello everybody ! if (empty($_GET['title'])) { if (!empty($_SERVER['SCRIPT_NAME'])) { $a = seo($_SERVER['SCRIPT_NAME']); $c = array("php","=","?","and","&","-",$val[1]); $b = array(""," "," "," "," ","",""); $te = str_replace($c, $b, $a); if ($te == "index") { if ($settings['home_title'] != "" && $settings['url_ay'] != "" && $settings['home_subj'] != "") { $title = "".$settings['home_title']." ".$settings['url_ay']." ".$settings['home_subj'].""; …

Member Avatar for pritaeas
0
35
Member Avatar for star_lavender

Hi. I have one drop down menu and one textfield. The drop down menu will display the book's id and book's name that retrieve from the database while the textfield will automatically display the book's name based on the user selection from the drop down menu. I try to use …

Member Avatar for Emeka_2
0
405
Member Avatar for SimonIoa

Hello i have a Mysql statement that supposes to return to results. The statement is SELECT c.user_one,c.user_two,c.c_id,r.reply FROM conversation_reply r JOIN conversation c ON r.c_id_fk = c.c_id WHERE c.user_one = '3' OR c.user_two = '3' GROUP BY r.reply I have only two records in the table so the result should …

Member Avatar for pritaeas
0
32
Member Avatar for 343divyankjain

Hello, I wanted to make a unique UI for My website, which should be look like https://www.beyoung.in/ This website. provide me a valuable suggestion.

Member Avatar for rproffitt
-1
72
Member Avatar for DioneH

Hello Could I please ask for assistance? I need a file that I am able to download that holds all the streets and postal codes of the Ireland.

Member Avatar for DioneH
0
113
Member Avatar for Darren_8

Hello Member, I am doing front end development from the last 2 months. I have got 1 project from a client. Almost the work is completed but now the client is also demanding for right click disabled for all webpages something like [this](https://www.usersadvice.com/). I have done it but the source …

Member Avatar for rproffitt
0
55
Member Avatar for kiwi_

Hello, I read here on DW [Click Here]( https://www.daniweb.com/programming/web-development/threads/108189/inserting-checkbox-values-in-mysql-php) I would like to know how to insert multiple checkbox values into multiple columns with values of "0" for no or "1" for yes. If possible I would like to keep them in an array such as: <input type="checkbox" name="animal_selection[]" value="tiger"> …

0
32
Member Avatar for dado.d

Hi, I need a little help with someting I'd like to implement, but not sure how to do it. I'm running eBay like classifieds site. There are a lot of filters on my site e.g. you can filter ads by price, by category, by city, by condition... Let's say we …

0
34
Member Avatar for Iikeloa

I am trying to create an interactive terminal to use in a project that I am working on. the idea is that I will have a web page which looks like a terminal and can use it to work with command line tools. anyway I need to use php as …

Member Avatar for rproffitt
0
379
Member Avatar for baraka.arman

Hi everyone! i have Fedora 28 (with xfce) installed on my laptop. As Fedora 28 is now an old version, I'd like to know if there is a way to upgrade directly to Fedora 32, with no risk (I mean no data loss, in particular my /home dir).. Can you …

Member Avatar for rproffitt
0
21

The End.