39,320 Topics
| |
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 … | |
Hi guys, can you help me to solve my problem. i have create coding table for my database. i mean i have a form and when user fill in their information into the form, the data will store in this table(coding). but unfortunately, in this coding, my delete button are … | |
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`) … | |
I must be missing something obvious. Looking to have an if statement where it will only echo the image if BOTH conditions are met. Currently, it is echoing when only one is met if ($row['PROT_A']="Y" and $row['CFHL_A']="$G2") { echo "<img src='/fantasy/images/current.png' width='12' height='12'>"; } | |
customer.xml <?xml version="1.0"?> <customers> <customer> <ID>C1</ID> <FirstName>Kah Hon</FirstName> <SurName>Wong</SurName> <Email>gahhon@hotmail.com</Email> <Password>081292</Password> </customer> </customers> login.js var xHRObject = false; if (window.XMLHttpRequest) xHRObject = new XMLHttpRequest(); else if (window.ActiveXObject) xHRObject = new ActiveXObject("Microsoft.XMLHTTP"); function reset() { document.getElementsByName('txtEmail').value = ""; document.getElementsByName('txtPassword').value = ""; } function login() { var email = document.getElementsByName('txtEmail').value; var pass … | |
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 … | |
Hello to all, I am facing a problem with my localhost(xampp), I have installed localhost and it was working fine. After Few days, I have started my Xampp control panel and run "localhost/phpmyadmin", this page is blank now. Nothing appears on screen. | |
Hi guys, i'm a college student in the networking major, and i'm learning php this semester. i have the basic knowledge in HTML and CSS already and i want to move up to PHP, but i'm struggling to figure out how to edit the content of a php website, i … | |
I have an array having two fields, total minutes and cost of teacher (I have teacher id) and clients. I am showing my data in tabular form. If there are more than 1 records of same teacher then I have to add new array element of sum of total minutes … | |
Hai every body, i need help in how to import this xml file into database using php i tried this way only one record only inserted, any body plz help me. $comment = $this->filepath."\\".$file ; $content = file_get_contents($plan); // Break it into an array.... ! $content_x = explode("<comment>", $content); reset($content_x); … | |
Hi Everyone, I have the following script / select that is displaying all fields from my database - But only if i use {$row->field_name} in the output while loop - $stmt = $conn->prepare("SELECT * FROM tbl ORDER BY id DESC"); $stmt->execute(); $total = $stmt->rowCount(); while ($row = $stmt->fetchObject()) { //$opvar … | |
| Just a question to seasoned PHPers, who have been working with 5- for a while. Has 7 made any difference to the way you code? Are you using any of the new features, and if so, which ones? Are they massive time savers (coding-wise or run-wise) or is it all … |
Hello guys! This is my first question on codeproject. Please forgive me if I had not provided all the necessary details in my question. I'm working on my college project which is a chrome extension. We've already stored the name of the website, username, and password in MySQL data type. … | |
**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 … | |
OK, so in [this thread](https://www.daniweb.com/hardware-and-software/microsoft-windows/threads/507918/presentation-loads-with-error) I offered advice to visit the Microsoft troubleshooter here: https://support.microsoft.com/en-gb/help/927477/how-to-troubleshoot-a-damaged-presentation-in-powerpoint-2007-and-powerpoint-2010 and DaniWeb broke the link and struck a line through it to say it didn't exist, when it quite clearly does. It may well break again here, let's see. I suspect that DaniWeb isn't handling … | |
i need a help in implementing a php, javascript stop watch for 4 pages the total time for stopwatch is 30 minutes when it starts on the next page it should start from the time remaining from previous page and so forth even if it returns to the previous page … | |
I would like to create token based authentification login system with pure PHP. I have own MVC framework (not laravel or anythink else). Who can help me what to do step by step. Thanks in advance | |
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>"; … | |
How do i get the name of the image without the extension at the end ex. (.jpg) i got this code **functions.php** function get_image($id="1") { ?> <img class="img-responsive img-portfolio img-hover" name="picture" src="images/gallery/<?= urldecode(base64_decode($id)); ?>" alt=""> <?php } **pictures.php** <center> <form action="" method="POST"> <div class="col-lg-12"> <?php get_image($imageID); // $imageID is read … | |
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 … | |
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 … | |
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 … | |
i need soluton about this problem. My problem is here , i submitted my code to codeforces , they expected the result could be ".t.r," but they found my code's result is ".t.r." my code is here so please fix the problem <?php for($t=1;$t<=3;$t++){ $yourString = fgets(fopen("php://stdin","r")); $vowels = array("a", … | |
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(); … | |
| I'm beginning to wonder... I hope someone can clarify my doubts. First let me explain. So I've been using codeigniter's session library without much thought. I assumed the code was just some wrapper for PHP native sessions. So I assumed it was stored server side so encryption and all that … |
I am trying out a function from a book for the first time. I could use some help. It goes: [CODE] function sanitizeString($var) { $var = stripslashes($var); $var = htmlentities($var); $var = strip_tags($var)' return $var; } [/CODE] I have two simple forms. One that asks for an email address and … | |
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 … | |
hi all im trying to place this piece of coding in a table that i iam echoing if anyone has any ideas as been trying for last god knows how long $fetch_img1 = mysqli_fetch_array(mysqli_query($conn,"select user_image from user_images where user_id = '".$show_id."' and main_image = '1' ")); $show_image = $fetch_img1['user_image']; ?> … | |
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" … | |
Hi ! I´m developing my first wordpress plugin. To create a shortcode according to tutorial i should duplicate following code. But why is it function form_creation(){ ?> instead of function form_creation(){} ?> I mean why is only a part of function form_creations curled bracket inside the php ending tag ? … |
The End.