39,326 Topics
| |
| Hey everyone, I have a question and I am not sure if it's possible or not to do it with what I'm using. I am using HTML, PHP, JavaScript, and mySQL to make a web page that pulls information from a Database. After that, I want to have a dropdown … |
Hello everone, i have a `teams.txt` file there are soccer clubs every team on new line i want to split the country from the club when is inserted into database. The country is the last string ex. `FC Barcelona (Spain)` `Arsenal (England)` Any help will be appreciated. I have tried … | |
I have a MySQL database which contains a text field which contains well formed xml. I want to export this data as an xml file named result_new.xml on the fly. I have made the tmp folder and have set the permissions on the folder to 0777. If I run this … | |
`Inline Code Example Here`Hello friends, I am building a multidimensional array with the following code: `Inline Code Example Here` the example code is $Questions = array( 1 => array( 'Question' => 'CSS stands for', 'Answers' => array( 'A' => 'Computer Styled Sections', 'B' => 'Cascading Style Sheets', 'C' => 'Crazy … | |
| Hello everyone, I am learning PHP with mySQL and I want to know if it's possible for me to do a dynamic dropdown box(which I have) that will automatically fill in fields below it such as a textbox. If I select a userID from the dropdown, that selection will fill … |
I have a mysql database that has previously stored the text of an xml file including tags. I want to select that data from the database and return it as an xml file rather than just text, (eg filename.xml). It is to be further processed with a javascript file which … | |
My loader is not working while form submits, how to solve that? | |
hey guys I hope you doing well :P am working on simple graphic script which gather some information and write it on image then show it to the user on localhost the project run perfectly as it supposed to do. when I uploaded to live server ( free hosting servers … | |
i need to add new tag to head section on a HTML page using PHP actualy i need to add <link rel="canonical" href="<?php echo 'http://'. $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] ?>"/> Hope this can do using PHP DOM | |
I want to echo the url which includes an onlick property. Here is my code below: function royal_sidebutton_body_tag_html() { // get plugin option array and store in a variable $royal_sidebutton_plugin_option_array = get_option( 'royal_sidebutton_plugin_options' ); // fetch individual values from the plugin option variable array $royal_sidebutton_text_for_tab = $royal_sidebutton_plugin_option_array[ 'text_for_tab' ]; $royal_sidebutton_tab_url … | |
Hello Daniweb Community, I was wondering if someone could help me with the PayPal PHP SDK (version 1.3.2), I'm just going off the examples they have provided [here](http://paypal.github.io/PayPal-PHP-SDK/sample/) focusing on [this](http://paypal.github.io/PayPal-PHP-SDK/sample/doc/payments/CreatePaymentUsingPayPal.html) I was just wondering if there is a way to attach delivery instructions (coming from the website, sending them … | |
Hi all, In PHP just wondering if anyone knows whether one method of creating multiple indexes within an array is more efficient / preferable to another? ` $listing['one'] = $x; $listing['two'] = $y; $listing['three'] = $z; ` or: $listing = [ ['one'] => $x, ['two'] => $y, ['three'] => $z … | |
<?php session_start(); $username=$_POST['username']; $password=$_POST['password']; if($username&&$password) { mysqli_select_db("user",$myconnection) or die("couldn't find db"); $sqlcommand="SELECT * FROM users where username='$username'"; $query= mysqli_query($myconnection,$sqlcommand); $numrows= mysqli_num_rows($query); if($numrows!==0) { while($row= mysqli_fetch_assoc($query)) { $dbusername=$row['username']; $dbpassword=$row['password']; } if($username==$dbusername&&md5($password)==$dbpassword) { echo "you are logged in!"; $_SESSION['username']=$username; } else echo"your password is incorrect!"; } else die("that user doesn't exits"); } … | |
So I want to remove space between tags. The tags are seperated by comma. But I don't want to remove space between words just right after the commas. So this: cats, funny cats, cute cats, funny To this: cats,funny cats,cute cats,funny I want them ready for insertion into database. This … | |
<?php session_start(); $username=$_POST['username']; $password=$_POST['password']; if($username&&$password) { mysqli_select_db("user",$myconnection) or die("couldn't find db"); $sqlcommand="SELECT * FROM users where username='$username'"; $query= mysqli_query($myconnection,$sqlcommand); $numrows= mysqli_num_rows($query); if($numrows!==0) { while($row= mysqli_fetch_assoc($query)) { $dbusername=$row['username']; $dbpassword=$row['password']; } if($username==$dbusername&&md5($password)==$dbpassword) { echo "you are logged in!"; $_SESSION['username']=$username; } else echo"your password is incorrect!"; } else die("that user doesn't exits"); } … | |
Using PHP / MySql... I have a transaction table and a record is automatically inserted when someone Initiates a transaction, and then is updated later in the process, based on the recID. I want / need to keep the recIDs filled with completed transactions without any skips in the ID … | |
<?php require('config.php'); if (!isset($_FILES['image']['tmp_name'])) { echo ""; }else{ $file=$_FILES['image']['tmp_name']; $image = $_FILES["image"] ["name"]; $image_name= addslashes($_FILES['image']['name']); $size = $_FILES["image"] ["size"]; $error = $_FILES["image"] ["error"]; if ($error > 0){ die("Error uploading file! Code $error."); }else{ if($size > 10000000) //conditions for the file { die("Format is not allowed or file size is too … | |
here i am having a form like this .i am having multiple checkboxes that are coming from database and i have given a field with every checkbox...now suppose 10 checkboxes are coming from database..now i want to insert values in database only of those checkboxes which are checked along with … | |
Hi i m new with codeigniter Kindly help me how i display data in dropbox from database and save into datbase. | |
Hi Guys, Hope you are enjoying the summer! I am having some trouble with the code below. It is feeding blog posts from another website and linking them to a website. The code works fine. However I need to change the hyperlink(uri) to another domain. <li><a href="<?php echo $feed[$i]->uri; ?>" … | |
my update is choosing a different column which i don't have in my table. Please i need assistance SQLSTATE[42S22]: Column not found: 1054 Champ 'companyprofiles.id' inconnu dans where clause (SQL: select * from `companyprofiles` where `companyprofiles`.`id` = 2 limit 1) what i have is user_id thus what i need to … | |
Hi guys, I'm working on a project and wanted to know if there is a good / trusted way to break a string apart into words. I want to get all the words in a string that will be used in a mysql query. I tested with str_word_count but it … | |
Getting the follwoing error message. How to fix this? **Parse error: syntax error, unexpected end of file in** Actual Code: <?php session_start(); include("connection.php"); $sqlsettings = "SELECT * from admin"; $resultsettings = mysql_query($sqlsettings); $rowsettings = mysql_fetch_array($resultsettings); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title><?php echo $rowsettings['ScriptName']; ?> … | |
Hi, I have a raspberry pi in which I use kweb in kiosk mode. To display a webpage. What I am trying to do is to be able to navigate through the webpage using my phone. What I am struggling with is how can I make this kind of connection … | |
Hi iam working on one scenario.. employe A send a Requesting mail to Project manager B, project manager B approves a request from employee and send the mail to project manager C for further process,after approving from project manager C it will go to department head like this... so here … | |
This is my code for a user login. It allows the user to login fine. What do i need to add to the code to allow admin users to be able to login and then be redirected to another page? In the database I have assigned 0 to the normal … | |
Hi. I want to auto calculate some fields in database without any button submit but i'm only know how to calculate using button submit. I want that user enter the value then the user will get the calculate value automatically without click on button submit. I'm doing my final year … | |
I am new to php. I encountered the following errors. Warning: require_once(/dbtest/db_connect.php): failed to open stream: No such file or directory in C:\xampp\htdocs\dbtest\connect.php on line 2 Fatal error: require_once(): Failed opening required 'dbtest/db_connect.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\dbtest\connect.php on line 2 I am very sure I have db_connect.php file inside my dbtest … | |
Sorry, recently i have came across working with testers, previously i have tested website my self. When testers do web User Interface Testing, they find silly ui bugs that users can't find and force devlopers (me) to solve those bugs. They can't find important bugs which is related to backend … | |
Hi I m developing a mobile apps which will fetch json data from my server. My server address is http://need4engineer.com/api.php this is not working. But same data from another server https://randomuser.me/api/?results=5 is working well. Both the cases header is same. Please help me |
The End.