39,326 Topics
| |
hello everybody im trying to compute the log(n) while n in the first time =10 and second time =100 , third =1000 and fourth = 10000 but an error still happenening the error is math domain error can anybody help in this code and error import math import logging n … | |
I have always known that urlencode() encodes spaces as plus signs and rawurlencode encodes spaces as %20. However, I always struggled to know when to use which. I just finally learned today that you should use rawurlencode() if encoding URI paths and urlencode() if encoding query strings. Who woulda thunk … | |
I am using Magento (Ver 1.9.x) If i try with my localhost success url like, http://192.168.1.65/magento/index.php/checkout/onepage/success/ and return success message with order id. if i try with live, success url like, https://abc.in/payubiz/redirect/success/ success page like blank page. How to solve the issue? Code : https://github.com/ZusZus/Payubiz | |
I have a large database of information of characters This contains "owner", "charactername" & a lot more info the owner can easily repeat as they own more then one character. what I'm trying to attempt to figure out how to do is create a list of UNIQUE names and how … | |
Connect your website you must first access HTML content on your website and add the icon. • Copy the pre-authorized icon in HTML content for your website • Then, go to your main page for AdSense to confirm the completion of this step. Copy this icon and paste it << … | |
I am still learning PHP and was wondering so don't shoot me down and was wondering why I would get the following error message? 2020-02-01 16:11:14 Error: [InvalidArgumentException] Invalid data type, must be an array or \ArrayAccess instance. Request URL: /auth/signin Referer URL: https://urlsize.com/auth/signup Which then returns "Error: An Internal … | |
Hi. Google Search Console inform us like this: Referenced AMP URL is not an AMP We do not know what that information is. Can please anyone help? My website is https://adventurejourney.vn/ Thank you in advance for your help! Adventure Journey Team! | |
<a style="position:absolute;" href='/Superuser/Plantincharge/dashboard.php'>Back</a> <h4 style="position: relative; left:95%;"> <button onclick="myFunction()">Print</button> <script> function myFunction() { window.print(); } </script> </h4> <h3 style="text-align:center; font-family: sans-serif; border-radius: 25px; border: 2px solid #73AD21; padding: 5px; width: 200px; height: 25px; position:relative; left:500px; overflow: hidden;">PROPOSAL No.</h3> <?php //////////////////////////////////////////// // Collecting data from query string $id=$_GET['id']; // Checking data … | |
How to insert data in sql server 2012 express using php pdo in wamp server 3? What connection string I need to use to connect in the database? | |
I used similar process for users to update username and email, but password is giving me a headache <?php if(isset($_SESSION['id'])){ if(isset($_POST['change_password_submit'])){ $usersId = $_SESSION['id']; include 'includes/dbh.inc.php';//connection to database $currentpassword = $_POST['currentpassword']; $newpassword = $_POST['newpassword']; $newpasswordagain = $_POST['newpasswordagain']; $currentHash = password_hash($currentpassword,PASSWORD_DEFAULT); $newHash = password_hash($newpassword,PASSWORD_DEFAULT); if(empty($currentpassword)){ echo '<p id="sorry">Please enter your current … | |
hi i was set the task to increment a number by x every x seconds and i tried to find some code off the net, but found the subject covered very sparsley so for whoevers benefit ill post the code here hope it helps :) [CODE] <html> <head> <style type="text/css"> … | |
Hello all i am a newbie and i would love to learn from you all. Please help me as i am making a project with phpmysqli where i need to approve a pending status! Here's my code. Kindly help me thanks. <?php //////////////////////////////////////////// // Collecting data from query string $id=$_GET['id']; … | |
I have a database, where I store Job Openings, Where I store Job Descriptions with formats in RichText Box like: bullet points, ordered lists and bold text etc... But when I save data in MySQL Database and Retrive it from Database it comes format less. Can anyone help me regarding … | |
Signup.php <form name="sign-up" method="post" action="process.php?action=sign-up"> <h3><span>Sign-Up</span></h3> <table width="100%" border="0" cellspacing="1" cellpadding="1"> <thead> User Details </thead> <tr> <th scope="row">*User ID :</th> <td><label for="playerid"></label> <input type="text" name="playerid" id="playerid" required="required"></td> </tr> <tr> <th scope="row">*Name :</th> <td><label for="playername"></label> <input type="text" name="playername" id="playername" required="required"></td> </tr> <tr> <th scope="row">*Mobile Number :</th> <td><label for="playermob"></label> <input type="text" name="playermob" … | |
hello, my sign in working fine..but not my logout and signin script...help please. this is my logout script: <?php session_start(); session_unset(); session_destroy(); header("Location: index.php"); and my signin script: <?php if (isset($_POST['login-submit'])) { require 'dbh.inc.php'; $mailuid = $_POST['mailuid']; $password = $_POST['pwd']; if(empty($mailuid) || empty($password)) { header("Location: ../index.php?error=emptyfields"); exit(); } else{ $sql … | |
**How to create pdf report in php easily ?** | |
Hey! Having some more fun with htaccess again! - I have tired everyhting and cant get it to play... Below is my code: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{REQUEST_URI} !(/$|\.) RewriteRule (.*) %{REQUEST_URI}/ [R=301,L] RewriteBase /v2/ RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f # Admin Pages … | |
Hi I have this script to show items in the database. but it is not showing the results. Pls can anyone help? <html> <div><br/><center><h2><font face="Lucida Handwriting" size="+1" color="#00CCFF">Casual Shirts</font></h2></center></div> <div style="width:100%;float:left" > <?php include("config.php"); $dress=$_REQUEST['dress']; $catg=$_REQUEST['catg']; $subcatg=$_REQUEST['subcatg']; $sel=mysqli_query($conn,"select * from items where catg='$catg' and subcatg='$subcatg'"); echo"<form method='post'><table border='0' align='center'><tr>"; $n=1; … | |
this is my script but cannot connect. errot message error . user root has no password. I have created databse using phpmyadmin Warning: mysqli_connect(): (HY000/1049): Unknown database 'shop' in C:\wamp64\www\online_shopping\admin\index.php on line 4 pls help <?php //error_reporting(1); //include("config.php"); $conn=mysqli_connect("localhost","root","", "shop") or die(mysqli_error()); extract($_REQUEST); if($_REQUEST['sub']) { $name=$_REQUEST['t1']; $pass=$_REQUEST['p1']; $sel=mysqli_query($conn,"select name, pass … | |
Hello, I need some help from experts. I am testing a site I have created. I have an issue with login system. It worked fine using XAMPP on my computer but when I uploaded to a live server, login has been a problem. This is what I get when I … | |
I have three tables(table, table2,table3). From table1 i want to return three rows: Title, Desc,time,'products' AS type From table2 i want to return three rows: group_title, group_desc, created,'groups' AS type From table3 i want to return three rows: name, occupation,birth,'users' AS type $sql = "SELECT DISTINCT * FROM (SELECT table1.title, … | |
Hi all at Daniweb, I'm quite new to PHP and I'm banging my head over this... query 1 WORKS: **$query = "CALL procedure_is_a_great_way_to_let_db_do_some_work('1','6')";** //both 1 and 6 are IN parameters! query 2 DOESN'T WORK: $id_pictures = 1; $id_names = 6; **$query = "CALL procedure_is_a_great_way_to_let_db_do_some_work('".$id_pictures."','".$id_names."')";** //both 1 and 6 are IN … | |
I am developed a custom PHP page with filters, addto cart module, music playlist everything. How can i implement it into WordPress? I am a newbie, any help thanks. My custom PHP work directory structure : location : public_html/my_work website URL : website.com/my_work Everything working good, but my wordpress heaer … | |
I am trying to add Jquery validation to the comments page in WordPress. Everything works except it won't post the fields. May someone help? FUNCTIONS PAGE function comment_validation_init() { if(is_single() && comments_open() ) { ?> <script type="text/javascript"> jQuery(document).ready(function() { jQuery('#commentform').bootstrapValidator({ message: 'This value is not valid', feedbackIcons: { valid: 'glyphicon … | |
Hi, I have been trying to code an timetable which allows timeslots to be booked. What I am finding difficult is the schedule settings. So three things, "schedule settings", "find common slots" and "make booking". The "find common slots" and "make booking" seems to almost work. But "schedule settings" is … | |
Hi, I need advice on how to implement a Review Management System. Something like realized on mypresences.com or brightlocal.com Not all services allow you to interact with their API. Review services are productreviews, trustpilot, tripadvisor, whirlpool, wordifmouth, seek, indeed, glassdoor. Maybe you now a script or have an offer how … | |
Hello, I'm quite nub in web development, so be gentle please. If this place is wrong for such problems point me to a more appropriate resource please. To became more familiar with web-programming I found good (as I thought) area for self-improvement. One of my friends owns web project. This … | |
Really hoping someone can help me out or point me in the right direction. This is my first ever post in a coding forum so I apologize in advance if I’m breaking any forum rules. I already have a bunch of php code sorted from modifying web resources. I need … | |
$query = "SELECT COUNT (*) AS spo FROM NAME_TABEL WHERE BEFORE_OURCE_OBAT = '1' AND ROOM = 'ORCHID' AND MONTH (DATE) = '$ month' "; $row = sqlsrv_query($conn, $query); $data = sqlsrv_fetch_array($row); $spo = $data['spo']; ?> why an error appears after the program is run, please help ? Warning: sqlsrv_fetch_array() expects … | |
Hello. I am using a lightbox form with a drop-down list. When I choose a value from the dropdown list, I want it to be assigned to a php variable which I will then use to update the total price of the form (the total price is already defined in … |
The End.