778 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for rebootnewbie

Hi, everyone: I am having trouble with a javascript and would greatly appreciate any help. The script is supposed to select a random video on page load, then continue to play a video that follows it when it ends. When all the videos have been played, it is supposed to …

Web Development javascript
0
550
Member Avatar for davy_yg

Can anyone help me explain what is Machine Learning? I have been googling for the subject and still do not understand what it is. Please help. 1) How could a Machine learn about information? By finding an equation of a pattern? or by having the user inputing a new information …

Web Development
Member Avatar for Reverend Jim
0
515
Member Avatar for larry29936

I'm creating a report page and can't figure out how to convert the array (row) to just get the ip_address. I'm a newbie to php and can't figure out how to accomplish this. Here's the code that I have so far: <?php $filename = NULL; session_start(); // start of script …

Web Development mysql php
Member Avatar for larry29936
0
466
Member Avatar for Alyana Diao

my system is savings account system, in which i tried to redirect to another php page with the same user id that i want to manage his/her account yet , when i deposit all of the users have the same fk, here is my code, hope you help me with …

Web Development javascript jquery mysql php sql
Member Avatar for Dani
0
421
Member Avatar for Nishant_8

it come to my email id but i am getting this error...Syntax error '$names' 9T_VARIABLE) plz help me here is my code <? php $names = $_POST['name']; $visitor_email = $_POST['email']; $visitor_phone_no = $_POST['phone']; $message = $_POST['Message']; $email_from = "rkenterprises9083@gmail.com"; $email_subject ="New Form Submission"; $email_body ="User Name: $names.\n". "User Email: $visitor_email.\n". …

Web Development php
Member Avatar for Dani
0
227
Member Avatar for iraberyl

Hi, its me again. I've seen the other code for looping textbox but it goesn't seem to apply in our script. What we need is a specific text box that loops when the user inputs a certain number of textboxes that he want to put. Example: there's a text box …

Web Development php
Member Avatar for Dani
-1
3K
Member Avatar for Pirakavi

How can I add href link inside the eventRender and redirect another page with id? function calender(data) { if (0 !== $("#m_calendar").length) { spinner.hide(); var e = moment().startOf("day"); e.format("YYYY-MM"), e.clone().subtract(1, "day").format("YYYY-MM-DD"), e.format("YYYY-MM-DD"), e.clone().add(1, "day").format("YYYY-MM-DD"), $("#m_calendar").fullCalendar({ header: { left: "prev,next today", center: "title", right: "month,agendaWeek,agendaDay,listWeek" } , editable: !0, eventLimit: !0, …

Web Development javascript jquery
1
62
Member Avatar for bradly.spicer

Hey guys, I recently started work on Minepress again, I'm having some problems however. I am trying to make a plugin which detects the ip of a minecraft server and results in printing out if its online or not here is display on my site: http://img545.imageshack.us/img545/4404/beaa1f33dce74c6dbee14e6.png as you can see …

Web Development client-server php wordpress
Member Avatar for johnie_1
0
415
Member Avatar for R_4

How can i check if email exists i have this code but it is not working <?php include "Config.php"; function mksafe($data){ $data=trim($data); $data=strip_tags($data); $data=htmlspecialchars($data); $data=addslashes( $data); return $data; } $fname = mksafe($_POST["fname"]); $lname = mksafe($_POST["lname"]); $email = mksafe($_POST["email"]); $sql = "SELECT * FROM `users` WHERE `email`=$email"; $result = $conn->query($sql); if($result->num_rows …

Web Development mysql php
Member Avatar for R_4
0
399
Member Avatar for larry29936

I have some inline css that I'd like to add to an existing styles.css file but have no idea what the format needs to be. Here's what the inline css looks like: <style> .container { display: flex; max-width: 1350px; margin-right: auto; margin-left: auto; padding-top: .3rem; padding-bottom: 1.5rem; } .divL { …

Web Development html-css
Member Avatar for Dani
0
262
Member Avatar for johncam

Hello Everyone, I have some clients and I manage website hosting for few of them. One of my client (Ecommerce store) went live on Product Hunt on Tuesday and his website crashed. Though I have fixed the issue, but I think I cannot work with shared hosting plan in long …

Web Development
Member Avatar for johncam
0
181
Member Avatar for Nuti

<?php include "database.php";?> <?php session_start();?> <?php // Getting total rows there in table $query="SELECT * FROM questions"; $results=$mysqli->query($query) or die($mysqli->error.__LINE__); $total=$results->num_rows; $row=$results->fetch_assoc(); //Reading the rows next by next and vice versa $offset=$row["question_number"]; // when button next is clicked it will fetch the next row if(isset($_POST["NEXT"])){ $offset++; } // if previous …

Web Development mysql php
Member Avatar for Dani
0
172
Member Avatar for larry29936

I have a download page that needs to run a function when clicking on a link. The function is supposed to enter a row in a mysql database table and download the file. I don't know if I've coded the function incorrectly or I coded the onclick incorrectly. Here's the …

Web Development javascript mysql
Member Avatar for Biiim
0
540
Member Avatar for larry29936

I'm trying to pass a filename to a function but don't know how to call the function from a click on a link. The top of my index.php is: <?php $filename = NULL; session_start(); // start of script every time. // setup a path for all of your canned php …

Web Development mysql php
Member Avatar for Dani
0
364
Member Avatar for ramkrishna.dhakad

onkeypress event in javascript not showing the unicode(hindi/remingtongail) character it is only alerting 'r' on pressing a key. i am using hindi indic input 3 toolbar to type in laptop. my javascript code is function validate(){ var string=event.key; c = string.charCodeAt(1); var xyx=String.fromCharCode(c); alert(xyx); } My html text area code …

Web Development codeigniter javascript jquery php
Member Avatar for Dani
0
634
Member Avatar for Prince_31

I want to dynamically fill key and value in an associative array using for loop in PHP $ct = 4; $str = ''; for($cunt=1; $cunt<=$ct; $cunt++) { $valu= '"value'; $cuntc = $cunt.'"'; $rw = '"$row'; $fild= "field"; $cp = $valu.$cuntc."=>".$rw."->".$fild.$cuntc; $str .= $cp . ','; } //trim the , from …

Web Development php
Member Avatar for Dani
0
245
Member Avatar for Pirakavi

my Controller function public function editDoctor($id) { $doctor = $this->doctorsRepository->getDoctorById($id); return view('doctor.edit', compact(['doctor'])); } This is my modal form <!-- Edit Doctor modal --> <div class="custom-modal"> <div class="modal fade" id="editDoctorPopup" role="dialog" aria-labelledby="editDoctorPopupLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="editDoctorPopupLabel">Edit Doctor</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span …

Web Development jquery
Member Avatar for Dani
0
205
Member Avatar for omaz

I want to create a friend chat where user can send, confirm and delete request and display results. Any help?

Web Development
Member Avatar for omaz
0
204
Member Avatar for Akinjide

Hello friends, I have a website on which I embedded my YouTube channel, but I need my users to pay before they can watch live videos. Help me.

Member Avatar for Dani
0
151
Member Avatar for larry29936

I have Apache2, php 7.2, and mysql installed. At the top of my index.php I have the following script: <?php session_start(); // start of script every time. // setup a path for all of your canned php scripts $php_scripts = '/home/larry/web/test/php/'; // a folder above the web accessible tree // …

Web Development mysql php
Member Avatar for broj1
0
710
Member Avatar for Motifaithed

Hi All, I'm currently working on a church attendance monitoring project, and this community had helped me a lot during my college days in building php base projects, now I'm here again to ask for help. The scenario is I want to track every individual who are present every sunday …

Web Development php
Member Avatar for rproffitt
2
405
Member Avatar for Stefce

I need to deoubfuscate a javascript file which i need to change a link inside it can anybody help me how to do that? I can upload the file also if you need it.

Web Development javascript
Member Avatar for Dani
0
883
Member Avatar for jrotunda85

I have created a table in a mySQL DB where users are going to a form and entering ratings on 6 Categories (5 Specific and 1 Overall) for a particular item_id. On the item table, I have a column that calculates the total number of ratings this particular item_id has …

Web Development mathematics php session sql
Member Avatar for Vishwajeet_2
0
3K
Member Avatar for Ardi Daullja

Hi everybody, Im developing one html and i need to display submenu how can i change the id aria-hidden true to false and vice versa when i click the button? Thank you <div class="wprw9j-0 hFDMkC" id="navbar-subnav-menu" aria-hidden="true"> <div class="dgf6n9-0 dAiGqK"> <ul class="dgf6n9-2 csTLEY"> <li class="dgf6n9-1 izNbxb"><a class="sc-5f33yf-1 sc-12r7gm-2 fOFqvA sc-5f33yf-2 …

Web Development html-css jquery
Member Avatar for Dani
0
529
Member Avatar for larry29936

I have a download section in my index.php that I'd like to add a download counter to but have no idea how to accomplish this. The existing code works perfectly but I'd like to know how many times the file is downloaded. Would prefer not to use a database. <!-- …

Web Development php
Member Avatar for larry29936
1
604
Member Avatar for Dani

What is the difference between setting a cookie domain to `www.site.com` vs `.www.site.com` when I want to limit a cookie to the www subdomain?

Web Development web-browser
Member Avatar for macfan
0
817
Member Avatar for larry29936

My contact form starts with: <form id="form1" method="POST" action="mail.php"> I'd like to replace the last line in my contact form: <button type="submit" value="Send" style="margin-top:15px; margin-left: 500px; text-align: center;">Send Email</button> with one that contains <img src="images/button_send-email.png" alt="Email"> but have no idea what it should look like. I tried <a href="mail.php"><img src="images/button_read-the-file.png" …

Web Development email php
Member Avatar for Dani
0
702
Member Avatar for larry29936

The validation section of my contact.php page is sending the user back to my index.php instead of staying on the contacts.php page so the user can correct the reported error. How can I fix this? My contact.php code follows: <?php if(isset($_POST['submit'])) { $name = $_POST['name']; $visitor_email = $_POST['email']; $message = …

Web Development email php
Member Avatar for Dani
0
697
Member Avatar for AndreRet

My code executes as follow - 1) a Search page is loaded where session was already started, var-dump() shows the correct session info like username etc. 2) User enters a search value in a 3rd party script search box that forms part of my search page, I have no control …

Web Development javascript php
Member Avatar for jkon
0
732
Member Avatar for markii.borabon

guys! Im new in PHP and im developing a small website wherein there's many images on the page and when i click one of the image it must be shown into another page with full details.. but the problem when i click one of the image it shown's nothing! I …

Web Development display image php
Member Avatar for Ahmed_152
0
8K

The End.