39,326 Topics

Member Avatar for
Member Avatar for TheFearful

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 …

Member Avatar for TheFearful
0
579
Member Avatar for Stefce

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 …

Member Avatar for RudyM
0
195
Member Avatar for facarroll

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 …

Member Avatar for facarroll
0
1K
Member Avatar for sukumar paul

`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 …

Member Avatar for sukumar paul
0
2K
Member Avatar for TheFearful

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 …

Member Avatar for hericles
0
254
Member Avatar for facarroll

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 …

Member Avatar for facarroll
0
382
Member Avatar for AntonyRayan
Member Avatar for cereal
0
118
Member Avatar for OsaMasw

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 …

Member Avatar for OsaMasw
0
2K
Member Avatar for ruwanaru

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

Member Avatar for cereal
0
192
Member Avatar for london-G

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 …

Member Avatar for Ajay Gokhale
0
987
Member Avatar for joshl_1995

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 …

Member Avatar for joshl_1995
0
458
Member Avatar for James_43

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 …

Member Avatar for James_43
0
196
Member Avatar for Nospor Kumam

<?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"); } …

Member Avatar for Nospor Kumam
0
484
Member Avatar for FarrisFahad

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 …

Member Avatar for FarrisFahad
0
353
Member Avatar for Nospor Kumam

<?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"); } …

Member Avatar for hericles
0
310
Member Avatar for showman13

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 …

Member Avatar for cereal
0
444
Member Avatar for Bernard_3

<?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 …

Member Avatar for rproffitt
-3
216
Member Avatar for 555ppp

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 …

Member Avatar for AleMonteiro
0
3K
Member Avatar for Harmeet_2

Hi i m new with codeigniter Kindly help me how i display data in dropbox from database and save into datbase.

Member Avatar for Ajay Gokhale
0
137
Member Avatar for london-G

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; ?>" …

0
219
Member Avatar for SirMahlon

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 …

Member Avatar for Sikander Nasar
0
618
Member Avatar for LRNPHP

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 …

Member Avatar for navichawla92
0
307
Member Avatar for blueguy777

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']; ?> …

Member Avatar for blueguy777
0
310
Member Avatar for shandoo1997

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 …

Member Avatar for shandoo1997
0
354
Member Avatar for shashigowda

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 …

Member Avatar for Zagga
0
238
Member Avatar for Laura_7

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 …

Member Avatar for cereal
0
2K
Member Avatar for Ayuni_1

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 …

Member Avatar for red.peugeot
0
223
Member Avatar for rowen_1

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 …

Member Avatar for RudyM
0
2K
Member Avatar for panduranga_1

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 …

Member Avatar for RudyM
0
273
Member Avatar for arctushar

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

Member Avatar for rproffitt
0
177

The End.