10,940 Topics

Member Avatar for
Member Avatar for UI

Buds! How to code so php forces mysql to show only the final row of the column ? The followings are how I coded (2 copied youtube tuts) to show all rows to allow user to delete multiple rows: SAMPLE 1 [php] <?php session_start(); require "conn.php"; require "site_details.php"; ?> <!DOCTYPE …

Member Avatar for diafol
0
443
Member Avatar for UI

Programmer Experts, I'm embarking on an interesting project to gain work experience in php. Just stuck on one thing and wondering if you can help. You probably used Team Viewer. This is where I create a Team Viewer session and get a unique number and if I give you it …

Member Avatar for diafol
0
377
Member Avatar for janicemurby

ive just done a simple register form where i can check username exists and before i put the username exists in the register works but when i have the username check in it doesnt work can someone check this over for me the script and error log are as follows: …

Member Avatar for janicemurby
0
723
Member Avatar for SARDEN

Hi i am trying to insert pdo multiple checkbox value in one column into database and display it to the user, but i am getting this error Error: SQLSTATE[HY093]: Invalid parameter number: parameter was not defined.I cant see the error and dont know how to fix it. :( That is …

Member Avatar for diafol
0
3K
Member Avatar for Catchamouse

I have a code in two files and I want to convert it from mysql to mysqli. func.php: <?php $con = mysql_connect('*','*','*'); mysql_select_db("*",$con); function search_results($keywords){ $returned_results = array(); $where = ""; $keywords = preg_split('/[\s]+/',$keywords); $total_keywords = count($keywords); foreach ($keywords as $key => $keyword) { $keyword = strtolower($keyword); $where .= "LOWER(`keywords`) …

Member Avatar for rproffitt
0
837
Member Avatar for Hassan_22

Hello Dears, I need to show all list of website authors on /author page like my website http://quotemessages.com/author here I want to show All authors can someone guide me please when I access it normally in WordPress it shows me 404 error :( I want to show alphabetical list of …

Member Avatar for diafol
0
58
Member Avatar for Lloyd_4

Hi Everyone, I have a real noob question please, I am trying to update a mysql database using the code below, I know the invoice number variable is correct, But for some reason the database is not updating, Can someone point me in the right direction please, I have tried …

Member Avatar for drmrkrch
0
316
Member Avatar for Mhecha

**I can't update inserted data via GUI, Its working well on inserting records before I modify it, and when am trying to modify in order to update inserted data its not update as I expect to happen. I can display inserted data well by echo them to GUI Below is …

Member Avatar for Mhecha
0
5K
Member Avatar for patk570

Guys, i am getting an unexpected T_While Error on my code, I cannot figure it out. can you help? ` <?php` $sql = "SELECT id, u_name, u_email, subj, phone FROM tb_cform "; $result = $conn->query($sql); echo '<table><tr><th>Name</th><th>Email</th><th>Subjec</th><th>Phone</th></tr>'; if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { echo "<tr><td>".$row["u_name"]."</td><td>".$row["u_email"]."</td><td>".$row["subj"]."</td><td>".$row["phone"]."</td></tr>"; …

Member Avatar for diafol
0
388
Member Avatar for priyanshi_1

hi..so i am facing problelm how to upload data on my websites in which format (.pdf,etc) should upload data and how to do it.

Member Avatar for priyanshi_1
-1
233
Member Avatar for reminem

Hello everybody, I'm stuck with this and I hope there is somebody who can help me. I have a Form <html> <form action="" method="POST"> <input type="text" name="credentials[firstname]"> <input type="text" name="credentials[lastname]"> <input type="text" name="credentials[email]"> <input type="text" name="game[points]"> <input type="text" name="game[wins]"> <input type="submit" name="submit"> </form> </html> and I want to post the …

Member Avatar for Isaac_4
0
369
Member Avatar for Tony_20

Hello ladies and gents, i hope you are all well! Just recently joined this site looks great and easy to use. I am just getting into php and msql i have managed to create a table that spits out the data but i am looking for a really simple way …

Member Avatar for diafol
0
3K
Member Avatar for Latrell_vie

My code works with echo but if I use return it wount display the wanted data, but i want to use code with return so the data will display wherever the shortcode is inserted and not just at the top as it is with echo. So here are the codes …

Member Avatar for Latrell_vie
0
232
Member Avatar for athanas_1

Guys,I have my table data ,I want to retrieve them to pdf file using php,The problem is,when I use 'where condition' in a select statement, I do not receive any data,but when I do not use ,I get data from one row from the database table.Any help please!! <?php session_start(); …

Member Avatar for diafol
0
295
Member Avatar for Sumier

I get the error "Warning: mysqli_close() expects parameter 1 to be mysqli, null given in" and I can't find a problem. Can anyone help, here is my code. $username = $_POST['username']; $password = $_POST['password']; $email = $_POST['email']; $CheckSQL = "SELECT * FROM users WHERE email='$email'"; $check = mysqli_fetch_array(mysqli_query($con,$CheckSQL)); if(isset($check)){ echo …

Member Avatar for cereal
0
8K
Member Avatar for SARDEN

Hi everyone hope you are ok i have mistake in my php and i cant find it. please help me I need to create 3 php . create table , insert_pdo ands select data. That is my html: ` <form action="" method="get"> <!-- Search box --> <input type="text" name="search_text" id="search_text" …

Member Avatar for AndrisP
0
465
Member Avatar for UI

Hiya Folks, Why is not mysql getting UPDATED, do you reckon ? <html> <head> <title> <?php $user?> Home Page </title> </head> <body> <body background=".png"> <?php session_start(); require "conn.php"; /*Check if user is logged-in or not by checking if session is set or not. If user is not logged-in then redirect …

Member Avatar for diafol
0
260
Member Avatar for SeanKann

Having an issue passing info from the modal to the model so that I can do a where statement. The first line below is the link to open the modal. Works fine no issues. <td><a href="javascript:;" class="openModal" data-toggle="modal" data-target="#email_details_<?php echo $SP->fit_tv_rollout_info_id;?>"> <span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span> </a></td> <div id="email_details_<?php echo $SP->fit_tv_rollout_info_id;?>" …

Member Avatar for gottaloveit
0
286
Member Avatar for Maheshwaran

**id Autor Title ** 1 xyz DCN when i click Dcn go to load book pdf url help me

Member Avatar for diafol
-2
77
Member Avatar for Marlon189

Hi, i have a db system where i fetch results from two tables. A user and transaction table. In the transaction table i have two columns which are sender and reciver id which refence in the user table. how do i get a sender name and receiver name in a …

Member Avatar for Reverend Jim
0
237
Member Avatar for UI

Hello People, Do you know why iframe is not opening to the url (variable value) ? Here is latest update of the code but still it shows not the variable value as the iframe URL. Variable calls db row data. Mysql column "Latet_View" has an entry on position zero: http://www.google.com …

Member Avatar for UI
0
372
Member Avatar for Sylvia_4

Need Help to create **Gmail** style realtime chat app for my website. I found server for realtime chat here https://xmpp.org/software/servers.html (I will go for [ejabberd](https://www.process-one.net/en/) or [Openfire](http://igniterealtime.org/) **or** which one should I choose?) **Goals** 1. send & receive chat request 2. accept or reject request 3. show sent/pending chat request …

Member Avatar for Sylvia_4
0
338
Member Avatar for ruby_2

Please guy am new to php am writing a project now.....but I want to be sure how to merge a user to another user with same amount or figure (project idea ponzi scheme like mmm)

Member Avatar for rubberman
0
119
Member Avatar for John Rwaka

I wish to get good training about HTML scripting,i need to be developing web based aps,therefore i ask for experts in scripting languages like ASP.NET,PHP&Python but first,i need to go with HTML.

Member Avatar for John Rwaka
0
205
Member Avatar for ramsiva

Hi, I have used current_timestamp, i am submitting same values then current_timestamp not updating. I have used below for updating timestamp. (timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP) Kindly help me to update timestamp, on every hit

Member Avatar for rubberman
0
228
Member Avatar for new_coder

hi im new in php im trying to create a log-in system but i got an error need your help guys THIS IS MY LOGIN PROCESS <?php require 'connect.php'; $employeeno = $_POST['employeeno']; $name = $_POST['name']; if(isset($_POST['LOGIN'])) { $query = "SELECT * FROM tbl_employee_information WHERE employeeno='$employeeno' AND name='$name'"; $query_run = mysqli_query($query,$db); …

Member Avatar for cereal
0
343
Member Avatar for UI

Programming Buddies, Looking at this youtube channel, do you think as a beginner in php (starting at php 7), the channel is good for me to learn php 7 (and no previous version to avoid learning deprecated stuffs) and pdo of php 7 ? Check his php series and then …

0
122
Member Avatar for Dani

Last night, a friend mentioned to me that one day he was trying to fetch a random 5 rows from a MySQL database. He researched online, and was eventually presented with a working solution in which he would generate five random numbers. Then, he would query the database for items …

Member Avatar for abubaker_2
4
589
Member Avatar for janicemurby

hi ive got a html table echoing through php and im having problems displaying image in the table heres what i have so far if($fetch_image['user_image']!='') { echo '<td>'.$fetch_image['user_image'].'</td>'; } else { echo '<td>'.<img src='images/blank_big.jpg' height='150px;' width='150px;' />.'</td>'; } and here is the fetch section $user_image = mysqli_query($conn,"select * from user_images …

Member Avatar for cereal
0
370
Member Avatar for janicemurby

good got job nearly finished but one slight glitch i have 2 entries in database but only one is showing twice in table results how can i get to show both results heres code fetch and connection block <?php include("config/db_connect.php"); //include("config/ckh_session.php"); $sql = "SELECT * FROM meets"; $result = mysqli_query($conn, …

Member Avatar for janicemurby
0
448

The End.