39,323 Topics

Member Avatar for
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
381
Member Avatar for AntonyRayan
Member Avatar for cereal
0
117
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
985
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
457
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
195
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
309
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
442
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
215
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
218
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
306
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
347
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
236
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
222
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
272
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
176
Member Avatar for Laura_7

this is my login code which works fine when someone registers and then logs in. What im trying to do is allow access for certain users to different pages as they're classed as admin users. However the username and password for them will already be set and they dont need …

Member Avatar for rproffitt
0
496
Member Avatar for Stefce

Hello guys i want to make inputbox which will autocomplete the started word so you know what i mean like google, facebook who have autocomplete but i have a little problem i have searched and found some plugins and tutorials but actually none of them work i dont know why, …

Member Avatar for rproffitt
-1
736
Member Avatar for Stefce

I have two questions does its possible to encrypt get parameter same like the passwords are? If NO whats the best method to do it i have simple parameter `articleID=1`, i want to encrypt the number which user is not able to see it or hack it so should look …

Member Avatar for Stefce
-1
2K
Member Avatar for dravos

I am using phpmailer for sending emails, but I want to make a custom header for my company, by adding a textarea field that contain any custom header for example using a header like this one: Subject: __Subject From: __From Reply-to: <__Reply-To> To: __To Date: __smtpDate or any other header …

Member Avatar for cereal
0
103
Member Avatar for Ricardo_1

I'm trying to delete a database in phpMyAdmin which is in localhost of Windows 7 Professional 64bit system. Since I am not an IT or database professional, I'd appreaciate any help with non-techy steps. :-) When I attempt to delete the database I receive the error: DROP DATABASE 'enfold-2016' #1010 …

Member Avatar for Ricardo_1
0
6K

The End.