7,368 Topics

Member Avatar for
Member Avatar for FoxyBit

Hi all, I am working on a website that requires two queries from a table at the same time. They must select a row based on the id, and then another random one not including the row just selected. I currently have: $query = $pdo->prepare('SELECT title, content FROM cards WHERE …

Member Avatar for FoxyBit
0
214
Member Avatar for Manggala

I need help for my code after the user done register for their new account in my system. Here is the verification link that the user will receive via email for him/her to verified the email: `http://localhost/staff/email_verification.php?activation_code=49024f2e7b8c05dc1g66005g780g6060 ` But, when the user click on above link, I notice based on …

Member Avatar for Dani
0
149
Member Avatar for Adolfo_1

I have three tables in mysql which make up the dropdown menu, as below code. I would like to get a $ breadcrumb variable with link from this menu. Example: Home / Woman Home / Woman / Clothes Home / Woman / Clothes / Women T-Shirth-2 It is possible?? <div …

Member Avatar for Adolfo_1
0
444
Member Avatar for Madhvi_1
Member Avatar for Dani
0
200
Member Avatar for potato_1

Hello, I want to use the checkbox to update the status of a row in mysql using php. If it is checked and submitted, the status will change from 'collect' to 'received'. I tried many ways but I am not sure where the problem is :( please help! <?php include(config.php); …

Member Avatar for Dani
0
1K
Member Avatar for Fedwa

Hi everyone here, I'm trying to show information about the material according to the year of meeting(is a meeting when they decide to buy a new material) so I use a drop-down list and the information will show according to the year chosen by the user, but it shows the …

Member Avatar for Dani
0
6K
Member Avatar for EiBS

Which is the best user-friendly programming language to be used for developing an ecommerce website?

Member Avatar for rproffitt
0
31
Member Avatar for Dani

DaniWeb was written in Codeigniter, and when posting to the forums, we use database transactions that look like this: $this->db->trans_start(); ... insert into the posts table ... ... update the member's post count ... ... update the tags table ... etc $this->db->trans_complete(); On occassion, the error log will show for …

Member Avatar for Dani
1
4K
Member Avatar for Ayna_1

Hi! When I am running this code, the output looks how I expected it to be, but the problem is that I cannot go back to home page whenever I want to. I dont know why but when I tried to go back to home page after visiting the tips …

Member Avatar for rproffitt
0
60
Member Avatar for Donnolic

I have a VB.net project that queries my online database directly. Now I want to use API instead of direct connection. Please I have never done such before and all materials I got online are not learning friendly and some that are friendly didn't have relation with database. And secondly, …

Member Avatar for Dani
0
84
Member Avatar for GFXtm

I have the following table: my_contacts which contains the following columns: [CODE]contact_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, frist_name VARCHAR(20), interest VARCHAR(20)[/CODE] [CODE]-----------+-----------+---------- contact_id | fisrt_name | interest + ---------------------------------- 1 | smith | swim + 2 | mark | dance + ----------------------------------[/CODE] I need to move the interests column …

Member Avatar for Asish_2
0
2K
Member Avatar for pawandeep436

I got an empty file whenever i download any file. This is an php file where pateint can download his report by entering his appointment id and password. <?php error_reporting(0); include'include/database.php'; if($_POST['sbutton']) { $appid=$_POST['apid']; $password=md5($_POST['pass']); $result=mysqli_query($conn,"select patientId from appointments where app_id='$appid'") or die(mysqli_error($conn)); $row=mysqli_fetch_array($result); $result2=mysqli_query($conn,"select password from patients where id='".$row['patientId']."'") …

Member Avatar for Dani
0
42
Member Avatar for rosh988

<?php $firstname = $_POST{'firstname'}; $username = $_POST{'username'}; $emailaddress = $_POST{'emailaddress'}; $password = $_POST{'password'}; $contact = $_POST{'contact'}; //Database connection $conn =new mysqli('localhost','root','','registration'); if ($conn->connect_error) { die('connection failed : '.$conn->connect_error) }else{ $stmt = $conn->prepare("insert into users(firstname, username, emailaddress, password, contact) vlaues (?, ?, ?, ?, ?)") $stmt-> bind param("ssssi",$firstname, $username, $emailaddress, $password, …

Member Avatar for Dani
1
34
Member Avatar for tonycoleman

Hi All, I dont know if anyone could help me, I am going slightly mad. I have been following some online demos of creating a simple application using VB.NET / Visual Studio and MYSQL database. I have setup the MySQL database and that looks fine, I would like it to …

Member Avatar for pritaeas
0
49
Member Avatar for Hugo Edson

I wrote this line of code: database = {"host":host, "user":user, "password":password, "db":db, "charser":charset, "cursorclass":cursorclass} and i'm receiving this: {'host': '35.234.92.142', 'user': "b'freedbtech_'", 'password': "b''", 'db': "b'freedbtech_cursopython'", 'charset': 'utf8mb4', 'cursorclass': "<class 'pymysql.cursors.'>} i need to remove those "b's" and " ' " in the strings, but i don't know how to …

Member Avatar for rproffitt
0
95
Member Avatar for clementer

I have an array list that looks like this. 8.1,6.5,4.4,3.2,1,8.9,5,1.4,0.1,1,8.7,6.2,4.3,3.2,3 I would like that my program selects every 5 numbers randomly. for example to select 8.1,6.5,4.4,3.2,1,8.7,6.2,4.3,3.2,3 as you can see it selected 5 numbers from the begging and 5 more from the end and saves them Random random_method = new …

Member Avatar for rproffitt
0
223
Member Avatar for anneseo08

I am currently creating a simple invoice page. But I am also having a hard time retrieving and displaying the price and description of items selected by the userfrom my dropdown (dropdown is populate from database). My knowledge of jquery and php were not that deep yet. I hope someone …

Member Avatar for k99rs
0
50
Member Avatar for ibrohim2808

$ array = array ('Main', 'Photo Gallery', 120, 'Rustam', 'Services', 'Lesson 12', 'Link'); This array also contains menu items for the web page. Describe the required menu items in HTML lists.

Member Avatar for Dani
0
41
Member Avatar for derick_3

<?php $pdo = new PDO('mysql:host=localhost;port=3306;dbname=crud', 'root', ''); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $title = $_POST=['title']; $description = $_POST = ['description']; $price = $_POST = ['price']; $date = date('Y-m-d H:i:s'); $products = $statement = $pdo->prepare("INSERT INTO products (title, image, description, price, Create_date) VALUES (:title, :image, :description, :price, :date)"); $statement->bindValue(':title', $title); $statement->bindValue(':image', ''); $statement->bindValue(':description', $description); …

Member Avatar for Dani
0
37
Member Avatar for foumzeur
Member Avatar for Cyril1

I have two different files, fileA contains employee data (ID and townCode) while file B contains field office data (OfficeID, Town, TownCode, officeCapacity) and a town can contain more than one office. i want to distribute these employees to the offices in the town against their names evenly What I …

Member Avatar for Paul Norris
0
170
Member Avatar for andreal

ScanningI'm looking forward to implement a typical "nav" section for the articles in my website. Something like this: **Folder > SubFolder > SubSubFolder** To this end, I think that the best way is to create a database of two tables. The **first** one is called "*Category*": id - title - …

Member Avatar for Dani
0
68
Member Avatar for Sarahle

For example: Http:localhost:8080/api/customer/{id} If I post in postman instead of Id a parameter it will work fine , But in html I’m asking the user for an input and than I want to pass the input in the path instead of the Id Is it possible ? Only spring boot …

Member Avatar for Sarahle
0
691
Member Avatar for thomas abwango
Member Avatar for Ąfnąn_1

Create database with the name of "university". You have only two table with the name of "signup" and "student". In Student table you will collect all data of student like cms, name, address ,age, mob and cnic. Perform Multiple Task which are given below. 1) Create Login and Signup page …

Member Avatar for rproffitt
0
44
Member Avatar for codeblock

Hi all I have uncountered a problem which has me totally confused. The problem is I have created a website with a login form. Everything so far has been working fine. but then when I try to login all of a sudden I’m hit with a "Object not found! The …

Member Avatar for Dani
0
20K
Member Avatar for Bamdele
Member Avatar for Marco_18

Hello, I created a function to show data related to a database called skede with fields "name" "surname" "age" in a page called vive.php This is the code function mostraskede(){ $ricercaskede = query('SELECT * FROM skede ORDER BY id LIMIT 1 OFFSET 0'); conferma($ricercaskede); while ($row = fetch_array($ricercaskede)){ //echo $row['titolo']; …

0
35
Member Avatar for euubisse12

i am completly stuck with some problems in programming, talking exactly aboutt linked list and some others can anyone help me?

Member Avatar for Naheedmir
0
111
Member Avatar for Hafiz_6

<?php if(isset($_POST['submit'])){ $kategori = $_POST['kategori']; $nama = $_POST['nama']; $harga = $_POST['harga']; $deskripsi = $_POST['deskripsi']; $status = $_POST['status']; $filename = $_FILES['gambar']['name']; $tmp_name = $_FILES['gambar']['tmp_name']; $type1 = explode('.', $filename); $type2 = $type1[1]; $newname = 'produk'.time().'.'.$type2; $tipe_diizinkan = array('jpg', 'jpeg', 'png', 'gif'); if(!in_array($type2, $tipe_diizinkan)){ echo '<script>alert("Success")</script>'; }else{ move_uploaded_file($tmp_name, './produk/'.$newname); } } ?> **Error …

Member Avatar for rproffitt
1
272

The End.