39,393 Topics

Member Avatar for
Member Avatar for Hannah Sibongile

Ive tried everything, even typing the whole thing again from scratch but it doesnt seem to work. Please help about the error on line 9. Coding below: 1. <?php 2. $name = $_POST['name']; 3. $surname = $_POST['surname']; 4. $company = $_POST['company']; 5. $email = $_POST['email']; 6. $contact = $_POST['contact']; 7. …

Member Avatar for Hannah Sibongile
0
212
Member Avatar for Eagle.Avik

hi how can i fetch data from the database and stroe it into session variable. my code: $sql = "SELECT password, fullname, username, active FROM ".$mysql_table." WHERE (username = :username OR email = :username) AND password = :password"; $statement = $pdo->prepare($sql); $statement->bindValue(':username', $_POST['username']); $statement->bindValue(':password', md5($_POST['password'])); $statement->execute(); $result = $statement->fetchAll(PDO::FETCH_ASSOC); if …

Member Avatar for Eagle.Avik
0
271
Member Avatar for bejing.shin
Member Avatar for Nadera

Hello, I have a form that retrieve the data from the database, which it depends on the expenses ID, then I want to send email to the employee to notification him that his expenses claim has rejected. The problem is on the phpmailer that does not take the value of …

Member Avatar for AARTI SHRIVAS
0
178
Member Avatar for malisubhani

Hello I would like to know how can we make speech to text PHP based application. Any API reference and tutorial.

Member Avatar for noelthefish
0
158
Member Avatar for dany12

Hy my apache2.4.6 is not reading htaccess files My 000-default.conf file is <VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the ServerName # …

Member Avatar for dany12
0
3K
Member Avatar for vbdotnetlover

Dear Sir, I have modified your codes once again as <?php if (isset($_POST['button1'])){ $name=$_POST['text1']; }else{ $name=""; } if ($name) { echo 'My name is ' . $name; }else{ echo 'No name entered'; } ?> <html> <head> <title> First form </title> </head> <body> <form name="aa" method="POST"> Name <input type="text" name="text1" value=""> …

Member Avatar for vbdotnetlover
0
138
Member Avatar for mysybet

Hello ! i want to create an input form with these fields : Name ------ Age------- Photo --------- <Browse file Button> <Submit button> After the user press the browse button and select a file i want to display the path. After the user press the submit button i want to …

Member Avatar for diafol
0
157
Member Avatar for Kentopencart

I have opencart 1.5.6 with Swedish language file I get an error code when the customer should register an account 2013-11-16 14:54:16 - PHP Warning: Can not modify header information - headers alreadycreated late by (output started at / customers/1/b/6/mittföretag.se/httpd.www/catalog/language/swedish / account / register.php: 1) in / customers/1/b/6/mittföretag.se/httpd.www/system/engine/controller.php on line …

Member Avatar for Dani
0
115
Member Avatar for fheppell

I wrote this code to integrate with filepicker.io, it takes the URL of the file and gets the header information: $info = curl_init() or die('error 1'); curl_setopt($info, CURLOPT_RETURNTRANSFER, 1); //curl_setopt($info, CURLOPT_PORT , 8089); curl_setopt($info, CURLOPT_URL, $url); curl_setopt($info, CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($info, CURLOPT_NOBODY, true); //curl_setopt($info, CURLOPT_SSL_VERIFYPEER, 0); curl_exec($info); if(!curl_errno($info)){ $response = curl_getinfo($info); …

Member Avatar for diafol
0
626
Member Avatar for nadiam

this is my php code for my profile.php. it is to display the users name after login. <?php session_start(); require "connect.php"; if($_SESSION['name']) { $name = $_SESSION['name']; $query = mysql_query("SELECT name FROM register WHERE name ='$name'"); $numrows = mysql_num_rows($query); if(1 == $numrows) { while ($rows = mysql_fetch_assoc($query)) { echo "Welcome, ".$rows['name']."!"; …

Member Avatar for nadiam
0
299
Member Avatar for erminasrcutp

this is my search.php , however once user has view one data user will want to update one location / status . I can not do the Edit.php . Can someone please help me ? Search.php <html> <head> <title>::Home</title> </head> <body> <div id="header"> <img src='banner.png' align='middle' width='101%' height='110%'> </div> <div …

Member Avatar for rpv_sen
0
252
Member Avatar for erminasrcutp

Can someone help me to fix this problemmm pleasee. Notice: Undefined index: id in C:\xampp\htdocs\draft3\Edit.php on line 4 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\draft3\Edit.php on line 6 Edit.php <?php include'e.php'; if(!isset($_POST['submit'])) { $q="SELECT * FROM myaduan WHERE id= $_GET[id]"; $result=mysql_query($q); $myaduan=mysql_fetch_array($result); } ?> <h1>You …

Member Avatar for rpv_sen
0
209
Member Avatar for tqmd1

Sir I have following codes <?php if(isset($_POST['button1'])) { $aa = $_POST['text1']; echo ("My name is " . $aa); } ?> <html> <head> <title>First form</title> </head> <body> <form name="aa" action="mix.php" method="POST"> Name<input type="text" name="text1" value=""> <input type="submit" value="display" name="button1"> </form> </body> </html> These codes work fine. I am beginner so I …

Member Avatar for diafol
0
126
Member Avatar for bikercyber
Member Avatar for baldford

This code does not work properly. The code does execute but i am unable to see where the file should be uploaded to. I checked the default directory referenced by the php.ini file but to no avail. [code]<?php $to = "nextphaze@live.com"; $firstname = $_REQUEST['firstname'] ; $lastname = $_REQUEST['lastname'] ; $mobile …

Member Avatar for Baldford_1
0
266
Member Avatar for fheppell

When I open a page the page loads for a very long time and no errors appear in the logs. I've run it through a syntax checker which told me there was one more opening parenthasis than expected, but didn't give me a line number, so I have no idea …

Member Avatar for iamthwee
0
315
Member Avatar for nadiam

So im not too sure if im posting this in the right forum. please dont be angry! new at daniweb so basically what i wanna know is how to save real time date into database. what i have is a page with tabs of month and in each tab the …

Member Avatar for JorgeM
0
1K
Member Avatar for kanoy83

hi, im trying to compare the string from my new $_POST['title'] and in my database. If my new post is the same in database, it must notify it is the same. I am trying to use strcmp if it is better. Or maybe anyone has better or simpler code. $newtitle …

Member Avatar for kanoy83
0
3K
Member Avatar for fheppell

I've got a page that requires a file called config.php, this file is included in several other files, all in the same (root) directory. PHP gave me the error `[16-Nov-2013 12:30:17 UTC] PHP Fatal error: require_once(): Failed opening required '/models/config.php' (include_path='.:/Applications/MAMP/bin/php/php5.4.4/lib/php') in /Applications/MAMP/htdocs/things/picturecamel/uploader.php on line 70` however the file is …

0
290
Member Avatar for erminasrcutp

The update database is not working , please help me. edit.php <?php include_once('db.php'); if(isset($_GET['edit'])) { $id=$_GET['edit']; $res=mysql_query("SELECT * from apple WHERE id='$id'"); $row=mysql_fetch_array($res); } if(isset($_POST['newName'])) { $newName= $_POST['newName']; $id = $_POST['id']; $sql = "UPDATE apple SET name=''$newName' WHERE id='$id'"; $res = mysql_query($sql) or die("Could not update".mysql_error()); echo "<meta http-equiv='refresh' content='0;url=index.php'>"; …

Member Avatar for erminasrcutp
0
462
Member Avatar for nadiam

So the article title says it. i wanna make the name as like a welcome message, something like "Welcome, <name>!" and yes there are many articles on the web that gives you coding and what not but i still don't understand how to get it done. sigh. forgive me im …

Member Avatar for nadiam
0
391
Member Avatar for karen.frias0316

Hi! I have a code which posts to page wall as page when admin access the app. I was able to get the page access token and give manage_pages permission using this https://developers.facebook.com/tools/explorer/ . Now i want it to still post as page to the page wall when other users …

0
111
Member Avatar for AARTI SHRIVAS

when i click on add to cart button page is not reload cart shows empty and when i refresh page throught f5 it show data in cart and give error TypeError: jQuery(...).fancybox is not a function "transitionOut" : "elastic" in admin side i disable fancybox jquery so i got this …

Member Avatar for AARTI SHRIVAS
0
207
Member Avatar for Linddha

i want to get the result of my count query in 2 table my table : $userfans=mysql_query("select *from fans where id_userfans='$_SESSION[id_user]' and level='umum' limit 1"); while($oinf=mysql_fetch_array($userfans)){ $coinp=mysql_query("select * from fans_news where id_userf='$_SESSION[id_user]' and id_fans='$oinf[id_fans]' and status='Y'"); $koinp=mysql_num_rows($coinp); while($oinp=mysql_fetch_array($coinp)){ $comentar=mysql_query("select * from fans_comment,user where fans_comment.id_newsfans='$oinp[id_newsfans]' and fans_comment.id_usercf!='$_SESSION[id_user]' and fans_comment.id_usercf=user.id_user "); $comme=mysql_num_rows($comentar); …

Member Avatar for urtrivedi
0
203
Member Avatar for karen.frias0316

Hi! I have been trying to post on my own wall page but nothing happens till now. I have an app and everytime i was submitted/ everytime a user visits it, i want it to post a link on my own page as page not user. i have this code. …

Member Avatar for karen.frias0316
0
353
Member Avatar for santoshkumar.palivela.7

<?php class Jcart { public $config = array(); private $items = array(); private $names = array(); private $prices = array(); private $qtys = array(); private $urls = array(); private $subtotal = 0; private $itemCount = 0; function __construct() { // Get $config array include_once('config-loader.php'); $this->config = $config; } /** * …

Member Avatar for AARTI SHRIVAS
0
2K
Member Avatar for freely.willy.3

I want to create in html textbox named **b** and php code which gets email from it with $_POST. Unfortunately as setBcc is used as an array and I cannot convince php to get emails from this textbox. This is the code of php: <?php require_once 'lib/swift_required.php'; $transport = Swift_MailTransport::newInstance(); …

Member Avatar for brandon66
0
3K
Member Avatar for strongard63

this is only for educational purpose. how to gain admin privilege via session cookie if these techniques are useless cookie poisoning attack cookie injection attack session fixation attack cookie hijacking attack ????

Member Avatar for EvolutionFallen
0
142
Member Avatar for douglas.shrader.1

I can't seem to center align my background image. I am new to php, css, and java coding but finding it necessary in this day and age. Here is the code. I hope this will help. <style> body{ background: url(http://dsninformation.com/images/magic.jpg); background-repeat: no-repeat } .button { display : inline-block; cursor : …

Member Avatar for douglas.shrader.1
0
330

The End.