39,323 Topics

Member Avatar for
Member Avatar for aecha

hi everyone. can you help me to check why this error occur and how to fix it? when i want to insert the data, this error is coming out and data not insert into database. <?php define('DB_SERVER','localhost'); define('DB_USER','root'); define('DB_PASS' ,'root123'); define('DB_NAME', 'ems'); $con = mysqli_connect(DB_SERVER,DB_USER,DB_PASS,DB_NAME); // Check connection if (mysqli_connect_errno()) …

Member Avatar for Dani
0
269
Member Avatar for Сергей_7

I hav a syntax error in While <?php $query = "SELECT * FROM users"; $sql = mysqli_query($link, "SELECT * FROM users img_file WHERE id='$id' "); $_SESSION['id'] = $id; $result=mysqli_query($link, "SELECT * FROM `textArea` WHERE id='$id'"); // запрос на выборку $result = mysqli_query($link, $query) or die(mysqli_error($link)); function get_text($id) { $singles = …

Member Avatar for Biiim
0
1K
Member Avatar for faaramin

Hi i am trying to view my blog or post in detail description at that time my browser title shows %page_title%, But it has to show my blog or post title in that place. please help me to solve this issue. My permalink settings as below /%category%/%postname%/ Note: i have …

Member Avatar for faaramin
0
252
Member Avatar for FarrisFahad

I let users earn money through my site, and I want to record their daily earnings. I want to record their earnings starting from 00:01am I don't know how to do this using PHP and MySQL. I know how to create, update, etc database. But I am streuggling with PHP …

Member Avatar for XxRedSteelxX
0
2K
Member Avatar for benson.tairuakinsola

I am trying to set up a json object.array to retrieve the data from this mysql query. the data required is posted from java and that seems to work fine, but I get parsing errors. I tried testing the php file and I get the "Parse error: syntax error, unexpected …

Member Avatar for Veera_2
0
4K
Member Avatar for FarrisFahad

My site use to work fine. But today for some reason pages with mysqli_num_rows takes a very long time to load. I can visit the page but it takes a long time to load. When it loads there are no errors but the error file in the root directory have …

Member Avatar for Dani
0
1K
Member Avatar for Varnisha Kalra

Now as the automated cms are coming in power for eg. wordpress. Is it leading to ending of web development career.?

Member Avatar for Biiim
2
2K
Member Avatar for Kathy B

Hello, I am new to this site and to php and mySQL...and I need some help. I know this topic is all over the web but after a couple of days of looking and refering to several text books it still doesn't work so please bear with me. I have …

Member Avatar for Biiim
0
1K
Member Avatar for Rizi004

hi hope you are all fine. When user login in my web site the table update in database that the user is online and when they click on logout the table updated in database that the user is offline, it working fine but the problem is that when user login …

Member Avatar for juniors464
1
6K
Member Avatar for LloydFarrell

Hi all, this is my first post and would appreciate some insight as to where im going wrong. I have the following form that successfully registers a new user to my mysqsl database via PHP - with the following $sql INSERT Function The problem im having is sending the activation …

Member Avatar for sbaset
0
14K
Member Avatar for Sam Hamilton

Hi, I am new to this community and would be grateful for any guidance you can give. I am constantly receiving a PHP warning whenever I create a post on my wordpress site. Below is a sample of the warning. **PHP WARNING ** html/thegeelongeditioncom/wp-content/plugins/df_social_media/df-social-media-oauth.php on line 533 [11-Dec-2019 02:16:53 UTC] …

Member Avatar for gentlemedia
0
1K
Member Avatar for John_74

<?php $con = mysqli_connect("localhost","root","","register"); if (!$con) { die(' connection error: ' . mysql_error()); } $name=$_POST['name']; $fname=$_POST['fname']; $dob=$_POST['dob']; $address=$_POST['address']; $ph_no=$_POST['ph_no']; $email=$_POST['email']; $zip=$_POST['zip']; $phd_marks=$_POST['phd_marks']; $ph_out=$_POST['ph_out']; $ph_study=$_POST['ph_study']; $ms_marks=$_POST['ms_marks']; $ms_out=$_POST['ms_out']; $ms_study=$_POST['ms_study']; $ma_marks=$_POST['ma_marks']; $ma_out=$_POST['ma_out']; $ma_study=$_POST['ma_study']; $ba_marks=$_POST['ba_marks']; $ba_out=$_POST['ba_out']; $ba_study=$_POST['ba_study']; $fa_marks=$_POST['fa_marks']; $fa_out=$_POST['fa_out']; $fa_study=$_POST['fa_study']; $matric=$_POST['matric']; $matric_out=$_POST['matric_out']; $matric_study=$_POST['matric_study']; $exp=$_POST['exp']; $experience=$_POST['experience']; mysqli_select_db("register", $con); $sql="INSERT INTO cv (name, fname, dob, address, …

Member Avatar for pritaeas
0
16K
Member Avatar for Ashvini_1

<form class="nice-form" action="" method="post"> <?php session_start(); // echo "<script>console.log('test')</script>"; // echo "<script>console.log(".var_dump($_SESSION) .");</script>"; // echo var_dump($_SESSION); // echo var_dump($_POST); include("../connection.php"); if (isset($_POST['action'])) { if ($_POST['action'] == "assign_user") { $doorId = $_POST["door"]; $username = $_POST["username"]; $approverId = $_SESSION["id"]; // echo var_dump($_POST); $sql = "SELECT * FROM user WHERE id = '$username' …

Member Avatar for rproffitt
-1
248
Member Avatar for Daryl_10

I am working on an app where a user registers and its passed to the server where there information is added to the database. It passes various checks along the way but ails to add the user. Code below: <?php $con = mysqli_connect('localhost', 'root', 'root', 'eat4lessaccess'); //check connection if(mysqli_connect_errno()) { …

Member Avatar for Daryl_10
0
1K
Member Avatar for aveeva7

Magento 1.9 - How to include custom PHP Script into .PHTML file My magento tracking page: https://i.stack.imgur.com/3GIoN.png Back-end magento code : https://i.stack.imgur.com/ySgMA.png How can i add my PHP script into this tracking page. Tracking page code - trackorder.phtml [ https://i.stack.imgur.com/ySgMA.png ] <?php if(Mage::getStoreConfig('trackorder/trackorder_general/enabled')): ?> <div class="page-title"><h1><?php echo $this->__('Track Your Order …

0
222
Member Avatar for Eugene_15

hi guys, i have a (searchresult.php) in the (index.php), which I trying use ajax post from (searchresult.php) to pass and ID back to (index.php), however my <?php echo $_POST["dataid"]; ?> keep showing empty result, I also check my console log it show result send through but why my <?php echo …

Member Avatar for grant.baker
0
209
Member Avatar for Kathy B

I need help on a new problem. On my women’s golf club web site I have a Members Directory page which consists of a table, 5 columns in width, and enough 2 rows sets to hold the members photo in the odd numbered rows with the members name in the …

Member Avatar for Gieroja
0
1K
Member Avatar for JamieBek04

Heres a pic of my database table ![Screen_Shot_2019-11-16_at_2_35_54_AM.png](/attachments/large/4/0749479693675147a0ccc8219b89e87f.png) Im trying to create a search page with drop down selectors to filter through each of the last 8 columns. I want the the drop down selectors to be able to select multiple entries (I have this working already) I also want …

0
601
Member Avatar for Techmed
Member Avatar for Priyanka25

Hi All, I am trying to create multiple codeigniter sessons for multiple users. I will explain my scenario. I have developed an application using codeigniter and launched in an ecommerce platfomr so that many shop owners installed my application. Now from my admin front, I have access to check for …

Member Avatar for rproffitt
1
1K
Member Avatar for Dani

Someone posted a comment in the [php usleep manual](https://www.php.net/manual/en/function.usleep.php) that usleep() consumes CPU cycles whereas sleep() and time_nanosleep() do not. Is this true for PHP 7.x?

Member Avatar for rproffitt
0
2K
Member Avatar for Muhaimin

Hello DaniWebian's, This is Muhaimin Sheik, I'm a passionate web developer as back and front end. I was very friendly and helpful person. I want more know about the techie knowledge. Please guide me. Thank you all...!Cheers...!

Member Avatar for John_165
0
236
Member Avatar for jtreyes

How do I assign a database query value in such a way that the value becomes the selected value in a drop down box.

Member Avatar for Murshid_2
0
5K
Member Avatar for lanny_1

can someone please help me with coding. I need to create a dropdown menu with the options being the category the user has inputted into a file upload page.

Member Avatar for lanny_1
0
314
Member Avatar for ayesha789

Hi, I can show data from the database using query [CODE=php] <?php $con = mysql_connect("localhost","root","root"); if (!$con) { die('Could not connect: ' . mysql_error()); } $a= $_POST["SiteId"]; mysql_select_db("abc", $con); $result = mysql_query("SELECT * FROM sitepinfo WHERE SiteId='$a'"); echo "<table cellpadding=2 cellspacing=2 width=100% > <tr> <th bgcolor=#5D9BCC>SiteID</th> <th bgcolor=#5D9BCC>Maintained By</th> </tr>"; …

Member Avatar for AhsanZaman
0
8K
Member Avatar for Princecrich

How can someone write a Php script that enable users upload image along with a short description in their member area to the database where admin can receive and treat it??? I will also like to know how history on upload can also be added after each upload to the …

Member Avatar for Dani
0
695
Member Avatar for Cheri Anne

How do I echo selected option? <?php session_start(); if(isset($_SESSION['cherianne'])){ }else{ header("Location:login.php"); } include("../includes/header.php"); // Retrieve our critical page setter variable. $char_id = $_GET['id']; //echo "<h1>$char_id</h1>"; // set this as a default value if (!isset($char_id)) { $result = mysqli_query($con, "SELECT bid FROM cde_blog LIMIT 1"); while ($row = mysqli_fetch_array($result)) { $char_id …

0
303
Member Avatar for Eugene_15

Hi guys, I have repost this problem again, which i still cant solved it , hope you guys can help me is been almost 2 weeks. Im not sure is my value not pass through all my url is wrong. thank you guys so much http://www.intpostfolio.com/intpostfolio/searchresult.php <input type="submit" onClick="openoverlay('<?php echo …

Member Avatar for Dani
0
1K
Member Avatar for Elijah_4

Hello members, I am kind off new to working with self joins oe self referencing tables, I am wondering how one would update a self join table considering the table aliases naming. Your help will be appreciated. If some one can point me to a good resource, I will be …

0
160
Member Avatar for SharkJr

after i key-in the form, the function change the whole column with the same value for example if i put first name JOHN it will update whole column with JOHN <?php session_start(); require_once("connection.php"); if (isset($_POST['edit'])) { session_start(); $s=mysqli_query($con,"UPDATE user SET first_name ='" . $_POST['first_name'] . "'"); $row = mysqli_fetch_assoc($s); if …

Member Avatar for anand9796
0
416

The End.