10,932 Topics

Member Avatar for
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
387
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
232
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
367
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
293
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
7K
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
452
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
337
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
203
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
587
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
Member Avatar for PoroUsedSnax

Hi All, I'm currently designing a website for my business and would like to have a system that pulls products from my database via PHP and adds them to my products section, but I'm unable to find anything that explains how to do it for the kind of setup I …

Member Avatar for diafol
0
431
Member Avatar for UI

Hi, I am using php 7 and I do not know why the following 2 different codes for user the user registration page is not working.*The login page php is working, though. I would appreciate the communities feed-backs. Thank You!

Member Avatar for UI
0
131
Member Avatar for UI

<pre>Hi, I'm a beginner in php. Starting my learning at php 7 and not 5 or earlier. I don't understand why php 7 is acting weird. It give different result at different time. Do you guy mind checking if I got the coding wrong or if I've come across a …

Member Avatar for diafol
0
542
Member Avatar for abubaker_2
Member Avatar for jeffersonalomia

How do facebook, twitter, and other social media app store the data of the user's chat history or chat log? Is it on the database or on a separated file? How can i create a professional chat application on my website?

Member Avatar for pty
1
366
Member Avatar for Dylan_11

HI, I have the below php code that i am attempting to use to search the database for a value that has been inputted in the form. This connects to the database and works fine but brings back no results. I found the following error: Warning: mysqli_num_rows() expects parameter 1 …

Member Avatar for abubaker_2
0
547
Member Avatar for Dylan_11

HI, I have attempted to put a login page on to my web page that i am developing as a learnig curve. I am almost there i think, i have created a table in my database that stores the username and passwords and i have a php script that i …

Member Avatar for diafol
0
1K
Member Avatar for janicemurby

hi im attempting to add mysqli_real_escape_string into form to make more secure and after i added it in code below $event_type = $_POST['event_type']; $event_date = $_POST['event_date']; $event_country = $_POST['event_country']; $event_postcode = mysqli_real_escape_string($conn, $_POST['event_postcode']); $event_title = mysqli_real_escape_string($conn, $_POST['event_title']); $event_description = mysqli_real_escape_string($conn, $_POST['event_description']); $event_ltm = $_POST['event_ltm']; like so and go to fill …

Member Avatar for janicemurby
0
250

The End.