39,323 Topics

Member Avatar for
Member Avatar for joshl_1995

Hello Daniweb, I was wondering how come a cURL API I made to call a function from my other website (but on the same hosting plan) no longer works. I even tried making a test API to call in the same directory, eg... :api.php <?php die(json_encode("something")); ?> :testing.php <?php $url …

Member Avatar for Dani
0
3K
Member Avatar for Arsslan

Hi, Please can some one tell me is Cloud ERP Safe to use for your business ? THanks

Member Avatar for TyaSuite
0
118
Member Avatar for Eddie756

**Hello guys,** i need with something, i have aproject that am doing now and i have used php so the only challnge am meeting is to calculate grades for the following Overall marks is 100 (Has been divided into three assessments) **assignment 10% midsemester 30% and end semester is 60%** …

-1
37
Member Avatar for nihala
Member Avatar for skymhine

$unpaid1="SELECT t.id, t.year, t.property_id, COALESCE(t.amount,0) AS amount FROM tax_amount t WHERE t.status = 'unpaid' ORDER BY t.year"; $resultpropertyunpaid1 = $db->query($unpaid1); while($row = $resultpropertyunpaid1->fetch_assoc()){ $PropertyUnpaid1 = $row['unpaid']; } > When I'm making a new property and put the amount the error will show but after I paid the total amount the …

Member Avatar for Dani
1
63
Member Avatar for v1

If you plan to attract new customers, enhance sales, build your brand image or improve the customer experience, you need to own a mobile app.

Member Avatar for Dani
0
87
Member Avatar for joy3629

I like to display 5 million roWs in feW seconds in table using Laravel 7 pls help

Member Avatar for rproffitt
0
65
Member Avatar for Rashmi Ranjan
Member Avatar for dazai

Hi all, Can anyone see what is wrong with the code below? if ( $this->get( 'AuthorURI' ) ) { $value = sprintf( '<a href="%1$s">%2$s</a>', $this->display( 'AuthorURI', true, $translate ), $value ); } elseif ( ! $value ) { $value = __( 'Anonymous' ) } I keep getting an error message: …

Member Avatar for AdamFriska
0
50
Member Avatar for matei_

I am trying to use my platform's API by using PHP and cURL, but I have a problem when I try to `PATCH` some custom attributes. As the title says, I am getting an API error with code: 422 and the message: `Validation failed.`, because the `attributes` field has `Invalid …

Member Avatar for pritaeas
0
173
Member Avatar for FarrisFahad

Hello web developers, I have a small problem and I am not sure if it's doable using just htaccess or should I use php `file_get_contents();` I have 2 sites ... example-1.com and example-2.com I want the content of example-1.com, whole site, to show on example-2.com. And if someone visits example-2.com/about-us …

Member Avatar for FarrisFahad
0
65
Member Avatar for digiomate

What is web Development Web advancement is developing and growing its margin from computerizing web connection points to creating critical applications, web improvement is transforming dreams into real factors. The segment incorporates articles, guides and contextual investigations about [web improvement](https://www.digiomate.com/), application advancement and site planning. Analyze on to find master …

Member Avatar for Gamerseo
0
20
Member Avatar for matei_

If you download multiple files with the same name, a number is automatically added to the file name, for example: filename(1), filename(2) etc.. What I am trying to do is when I am creating a name and there is already a same one, the name I create to appear in …

Member Avatar for matei_
0
127
Member Avatar for David_239

Hi may i ask if someone can help us about where we can create a token payment system for our gaming system in vb. I want to create a payment system in vb using token in registration through online payment and user can set the token they wanted after playing …

Member Avatar for Hemangi_2
1
68
Member Avatar for 09jesses

I have what I call a buildList, or better yet a Wishlist or cart. Inside this "buildList.php" is roughly 10 links, +ADD, that basically act like a button and categorized "part-1, part-2, part-3...etc. When a user chooses one button, lets say "part-1 +ADD", it links to the "contents.php" page to …

0
735
Member Avatar for Raju_3
Member Avatar for matei_

My question is simple: I have a text area that is filled with IP/CIDR's and I want to know how I can retrieve an IP from there and then check the IP as used. The text area (which is implemented in plugin's page configuration and I can edit the configuration …

Member Avatar for Josh Connerty
1
376
Member Avatar for Alican_2

Hello, I want to display the results of the relevant student by querying the student's number from the site, the student exam results that come as a PDF file. Is there a wordpress plugin that can do this? Or basic code.

Member Avatar for rproffitt
0
58
Member Avatar for KnowledgeMan

Hello everyone So, my objective is to update four rows in my database (id-> int , status->tinyint) from 0 to 1 and vice verca using a checkbox. This should be done without refreshing the page and using a form without submit button. Based on my research, I was able to …

Member Avatar for Josh Connerty
0
5K
Member Avatar for cokerz_written

Hy, i have code with php to update data in database mysql, i don't have any error in my code and it succesded to update data, but why the data in database is not change? its same with data before update please help me, this is my update.php code : …

Member Avatar for Nkem_1
0
267
Member Avatar for Ethan_17

Becoming a successful freelance PHP tester is not an easy task by any means. With an increasing focus on PHP development, the testers have to be equally adept with PHP to identify possible bugs and errors. As the competition among freelance testers is growing, you should fine-tune the below skills …

Member Avatar for LoanHensley
2
117
Member Avatar for Vaske_1

I'm making a movie website and want to make the limit of movies for example 10 per page but every pagination tutorial or guide I find shows only how to do this with lists, I want to do this with cards so it looks like it does on other movie …

Member Avatar for ishu_1
0
198
Member Avatar for nur_721

![Screenshot_2021-12-13_112253.png](https://static.daniweb.com/attachments/4/2dbd2f0854c2ff6b22c4e671497ad947.png) <?php // This page is for editing a user record. // This page is accessed through view_users.php. $page_title = 'Edit a User'; include ('includes/header.html'); echo '<h1>Edit a User</h1>'; // Check for a valid user ID, through GET or POST: if ( (isset($_GET['id'])) && (is_numeric($_GET['id'])) ) { // From view_users.php …

Member Avatar for Schol-R-LEA
0
156
Member Avatar for rabbit07

<?php if (isset($_POST['submit'])) { session_start(); include('connection.php'); $email = mysqli_real_escape_string($conn, $_POST['email']); $password = mysqli_real_escape_string($conn, $_POST['password']); $hash_password = md5($password); $sql = "SELECT * FROM users WHERE email = '$email' AND password = '$hash_password' "; $result = mysqli_query($conn, $sql); $row = mysqli_fetch_array($result); if ($row['email'] == $email && $row['password'] == $hash_password) { echo '<script …

Member Avatar for Biiim
0
435
Member Avatar for SimonIoa

Does anyone now if google requires parameters on .htaccess file for php function calls? I used to have a different .htaccess file and my google sign in used to work. Now i changed it and it doesnt. htaccess RewriteEngine On #RewriteBase /api/ Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type" Header add …

Member Avatar for Dani
0
55
Member Avatar for allalhill

Hi all, My name is Mike and am a completely blind gamer/computer hobbyist. I am attempting to create an online web based single player game in which people can register so the stats, currency etc gathered are safekept and retrievable when someone wishes to continue playing. The data is stored …

Member Avatar for Josh Connerty
0
35
Member Avatar for forgot

> Hi, please advise how to resolve. I want to print the receiptno on a receipt and it prints "receiptno". I don't know how to define "receiptno" to use the value in the table. I'm working with mysqli and having trouble with this code: $receiptno='receiptno'; $sql = "UPDATE numbers SET …

Member Avatar for Schol-R-LEA
0
56
Member Avatar for oninchan

Parse error: syntax error, unexpected variable "$sql" in C:\xampp\htdocs\ProjectIT12\LR\controller.php on line 38 <?php include_once ("connection.php"); // connection created succesfullly session_start(); //store all erros $errors=[]; //When sign up button clicked if(isset($_POST['signup'])){ $fname = mysqli_real_escape_string($conn , $_POST['fname']); $mname = mysqli_real_escape_string($conn , $_POST['mname']); $lname = mysqli_real_escape_string($conn , $_POST['lname']); $street = mysqli_real_escape_string($conn , $_POST['street']); …

Member Avatar for pritaeas
0
73
Member Avatar for skymhine

if (count($_FILES) > 0) { if (is_uploaded_file($_FILES['userImage']['tmp_name'])) { $imgData = addslashes(file_get_contents($_FILES['userImage']['tmp_name'])); $imageProperties = getimageSize($_FILES['userImage']['tmp_name']); $sql = "INSERT INTO trial (imageType ,imageData,uploaded_on, user_id,tax_payer_id) VALUES('{$imageProperties['mime']}', '{$imgData}',NOW(),'".$_SESSION['id']."','".$_GET['id']."')"; $current_id = mysqli_query($db, $sql) or die("<b>Error:</b> Problem on Image Insert<br/>" . mysqli_error($db)); $current_id = mysqli_insert_id($db); if (isset($current_id)) { echo "Upload Succesfully"; }else{ echo "There is a …

Member Avatar for Dani
0
45
Member Avatar for ChrisJ

Can you please tell me what these lines of code do? $sub_category = 0; if (!empty($_POST['sub_category_id'])) { $is_found = $db->where('type',PT_Secure($_POST['category_id']))->where('lang_key',PT_Secure($_POST['sub_category_id']))->getValue(T_LANGS,'COUNT(*)'); if ($is_found > 0) { $sub_category = PT_Secure($_POST['sub_category_id']); } } I look forward to any assistance

Member Avatar for Dani
0
59

The End.