39,316 Topics

Member Avatar for
Member Avatar for baig772

I am using `passport` in `laravel` for authenticating my users in APIs. I am able to authenticate different types of users from different tables and generating different token for them but the routes are not protected. For example. A user can access the routes like this Route::group(['middleware' => 'auth:api'], function …

Member Avatar for PARDEEP_2
0
971
Member Avatar for Amaina

I have been cracking my head on this mater in the past couple of days. I am faced with a situaton where i need to write a MySQL equivalent of PHP code to loop through sql select results. The Php code looks like this $query = "SELECT pubid, author FROM …

Member Avatar for flashx4u
0
19K
Member Avatar for anitg

I have two tables like below tb1 Date Cr Dr 2018-04-29 100 50 2018-04-30 0 150 2018-05-01 250 100 2018-05-02 150 100 2018-06-10 300 250 2018-06-11 0 50 tb2 Date Cr 2018-05-01 350 2018-05-02 250 2018-06-10 300 2018-06-11 100 2018-06-15 200 2018-06-18 100 I need the following Result Apr May …

Member Avatar for flashx4u
0
550
Member Avatar for terrymold

Hi everyone I have a little problem that I'm sure someone here can help me with. I have a web page with a text input field and a couple of submit button. The user would enter something in the text field and then click on one of the buttons. Each …

Member Avatar for deep_7
0
7K
Member Avatar for anitg

I am trying to get access toke from FB through Developer App. But I am not able to json_decode the call back response. If I use the token_url call from browser, it returns the access token. But from within the script it does work. I searched online and foun that …

0
266
Member Avatar for Dave_20

Hey guys. So this should be a pretty simple question (but doesn't appear to be) that I'm hoping some of the database wizards out there can help me with. I'm not too long outta university with a BSC in Computing, I didn't get a full classification due to the fact …

Member Avatar for overwraith
0
614
Member Avatar for janicemurby

hi all i have recently purchased a script and im attempting to fix it would anyone know how to solve these 2 errors which appear to be coming from this function [09-Jun-2018 12:40:57 UTC] PHP Warning: Division by zero in /home/public_html/includes/functions.php on line 126 [09-Jun-2018 12:41:19 UTC] PHP Fatal error: …

Member Avatar for rproffitt
0
316
Member Avatar for Stefce

Is there possible chance of changing the WooCommerce "Add to Cart" button functionality or removing it and creating new button, inside the item page? I found this code but it only replaces the button on the item itself and not in the item page add_filter( 'woocommerce_loop_add_to_cart_link', 'replace_default_button' ); function replace_default_button(){ …

0
344
Member Avatar for gdi888

`Hey guys!` For the past few days, my database was working fine for both tables but just recently (I must have done something to my code but can't remember), my memberships table has stopped inserting information from my sql query. I am also trying to get my multiple select option …

Member Avatar for benanamen
0
304
Member Avatar for janicemurby

hi all im getting the following error PHP Notice: Array to string conversion in /home/public_html/includes/database.php(23) : eval()'d code on line 1 in this file <?php $link = @mysqli_connect($hostname, $username, $password, $database); if (!$link) { die('Could not connect !'); exit(); } else{ mysqli_set_charset($link,'utf8'); } $sqlcf = 'select Variable, Value from '.$table_prefix.'site_settings …

Member Avatar for alan.davies
0
3K
Member Avatar for Asim_10

I want to ask that " In some sites we see that when some peoples comments or share or click they got coins or points" so how to make this type of scirpts ?

Member Avatar for Dani
-1
508
Member Avatar for Sergi_1

I am looking for an API that will be easy to use, also allows me view reports of sended SMS, that also has documentation and examples to how manage it.

Member Avatar for Tran_10
0
300
Member Avatar for Narayanan_1

echo '<td><a href="details.php?id=' . $row['ServerName'] . '">' . $row['ServerName'] . '</a></td>';--> it's working as expected( but it always display the one table value without any matching criteria hence i am trying with if condition as below) if($row['ServerName']=='DataBase')<< curly start brace>> echo '<td><a href="db.php?id=' . $row['ServerName'] . '">' . $row['ServerName'] . …

0
160
Member Avatar for Publitio

Hello, I would like to introduce myself and share a bit of information about the new API we are developing. The product was just launched in February and is in the beginning phase. I would highly appreciate any kind of comment or advice when it comes to improving the development …

Member Avatar for Bivhab
0
913
Member Avatar for tscina

I have a php script which requires phpmailer and I got it to work already but I need to send the email to 3000 persons. How do I do that? I've tried searching over the net but all the examples show only to enumerate the emails addresses. Mine comes from …

Member Avatar for navjot_2
0
3K
Member Avatar for divinity02

hi all presently am doing an assignment. for the past hour or have been experiencing one error to the next with it. it is website am doing where a user can register, login, view their profile etc. one part of the assignment is where u have to insert and display …

Member Avatar for EvolutionFallen
0
282
Member Avatar for ychan623

Hi Im working on using 2 drop down menu to filter mysql query. Here is the drop down menu <form action="showJobs.php" method="post"> <select name="Locations"> <option value="All" selected="selected">All states</option> <option value="arizona">Arizona</option> <option value="alaska">Alaska</option> </select> <select name="Jobs"> <option value="All" selected="selected">All jobs</option> <option value="arizona">Carpenters</option> <option value="alaska">Plumbers</option> </select> <input type="submit" value="search jobs" /> </form> …

Member Avatar for teja_2
0
2K
Member Avatar for jeffersonalomia

How can i send email using php on our hmailserver? this hmail server has a host ip for example, 192.16.1.1 and outgoing port of 110. what should i do to send email on that host? All your response are very appreciated. Thank you

Member Avatar for Maleck
0
232
Member Avatar for Akinjide

I'm developing an online shopping website using HTML, CSS and Bootstrap. I just got stuck. * How do I create a responsive shopping cart that adds up all the shopping items/products and gives a full details and total price of items bought at checkout? * How do I access the …

Member Avatar for Akinjide
0
464
Member Avatar for Andy_10

Hi, i'm trying to enable users to upload to my db. at the moment i've just got a folder called 'uploads' in my root directory... (i'll worry about getting them into the db once i can uplaod to there!) here's my php... <?php $target_dir = "http://www.XXXXXX.com/uploads/"; $target_file = $target_dir . …

Member Avatar for PARDEEP_2
0
629
Member Avatar for Dani

I recently had to mass insert a really large text file of strings into MySQL. Here's how I did it.

Member Avatar for PARDEEP_2
1
1K
Member Avatar for durgeshmandal

I am using two database one is default which I would like to set db name as per session value, second database I am using to login and registration and set session once user logged in. Can anyone have solution to manage this database name after login of user based …

Member Avatar for rproffitt
0
445
Member Avatar for keerthi_3

<?php session_start(); if (!isset($_SESSION['id'])) { header('location:login.php'); } ?> <?php $nameErr = $emailErr = $usernameErr = $DateOfBirthErr = $departmentErr = $ageErr = $fileToUploadErr = $fileToUploadErrr = $fileToUploadErrrr = $fileToUploadErrrrr = $fileToUploadErrrrrr = "" ; $name = $email = $username = $DateOfBirth = $department = $age = $fileToUpload = $filename = $file …

0
228
Member Avatar for Katie_2

Hi I have a php page called "list.php" which allows the user to select from a list of options to perform a filter query on a table. At the bottom of this page I have created an href link to a page called "create-file1.php". I would like to pass the …

0
106
Member Avatar for procreagency

Hello, i want create a class to manage tertiary tree. i mean tree which each node have only at most 3 childrens

Member Avatar for JamesCherrill
0
94
Member Avatar for Cara_1

I want to view records based on the selected drop down value so I used sql query with WHERE clause. When I echo that query, it is fetching the drop down value which I selects but it isn't showing me the records in the table. When I give the values …

Member Avatar for rproffitt
0
335
Member Avatar for Syntax_1

Hi how do i automate data sharing or airtime using php. E.g i want a third party to able to share my airtime or data from my website. For instance if i dial *600*mobileno*amount*my secret pin# will automatically share my airtime with d owner of this mobile number. So my …

Member Avatar for Syntax_1
0
257
Member Avatar for DavidCorbin

Want to check function source code using eclipse. Help pls I'm curious on how certain php functions are implemented internally. e.g. array_values(). So in eclipse, I control click on the function name, which took me to a page that contain function prototype definition,[ ](http://offingapp.com/)but contains no internal source code. ![eexm.png](/attachments/large/4/b25980a2e0f3d1b4e7d405a10afc23c2.png …

Member Avatar for rproffitt
0
464
Member Avatar for divinity02

hi I have a login form, when i tried to login i got this two errors: **Notice: Undefined index: username in C:\wamp64\www\FormTutorial\php\luana_login.php on line 6** ** Notice: Undefined index: password in C:\wamp64\www\FormTutorial\php\luana_login.php on line 7 ** I have been busting my head to figure out how to solve it so …

Member Avatar for alan.davies
0
242
Member Avatar for Mr.M

Hi DW. Today just came across with something I didn't know of and it may be easy to someone else who had workded with it or had came across it. Look at this example code snippet: $a = '1'; $b = &$a; $b = "2$b"; echo $a. ", " .$b …

Member Avatar for JamesCherrill
0
357

The End.