39,393 Topics

Member Avatar for
Member Avatar for stokie-rich

Hi guys, I'm creating a register page for my website. I have got things sorted now, when i try and test the page and try and register a user the data is not been inserted into the database I'm not getting any error messages at all so I dont know …

Member Avatar for stokie-rich
0
342
Member Avatar for mpc123

Hi I have a varible that is set at as a different value for each page this is called $mode. Currently I have succesfully set up a drop down menu that can filter the table and refresh the results based on that filter chosen, yet I need to call this …

Member Avatar for mpc123
0
227
Member Avatar for imti321

I have a problem in this code .this code is for adding question to database.please advise thanks in advance. <?php include('includes/header.html'); ?> <div class="row"> <div class="col-md-offset-2 col-md-8"> <h1>Add Quiz</h1> <form action="process_quizAdd.php" method="post"> <div class="form-group"> <label for="question">Ask Question</label> <input type="text" class="form-control" id="question" name="question" placeholder="Enter your question here"> </div> <div class="form-group"> <label …

Member Avatar for imti321
0
395
Member Avatar for sanjay@srvmedia
Member Avatar for websponge

I have a select box that looks up values from my database, and then runs a jquery function to display the results, function is working fine, but some of the values in the database have spaces i.e "BT Global" the results are returning everything that starts with "BT" any help …

Member Avatar for almostbob
0
317
Member Avatar for Robert_30

I have a dropdown list populated with files pulled from a directory using the PHP listed below that then gets displayed onto a form and am trying to figure out how I can delete them using a delete button in the form when they're selected and displayed. <input type="hidden" name="Action" …

Member Avatar for diafol
0
405
Member Avatar for spud91

Hi Guys, im creating a shopping cart as part of my website however whenever i try to empty my cart i get the error: `( ! ) Notice: Undefined index: login_user in C:\wamp\www\catalogue.php on line 32` login_user refers to a session that gets created when the user logs in. Line …

Member Avatar for spud91
0
2K
Member Avatar for NuGG

I have been trying to figure out how to populate a html template with data from a multi dimensional array, but i cant figure it out. The template is taken from MySQL. This is what I have: $template=addslashes($row['content']); eval("\$body=\"$template\";"); print($body); Now the template is as follows: $row['content'] = "<html><p>array item …

Member Avatar for NuGG
0
236
Member Avatar for terryds

What does PDO::query actually do ? Does it query the SQL ? If it queries the SQL, I think the data must be in the PDOStatement object as the result of the query.. But, what I find is just the SQL statement itself. So, I think it does nothing but …

Member Avatar for cereal
1
232
Member Avatar for Kumar_K_K

i am currently working CI i like to learn Zend but i look to hard to learn is any easy way ...plz reffer

Member Avatar for pritaeas
0
61
Member Avatar for ramsiva

Hi any body help me In DB Number of dates stored like this "03/18/2015,03/27/2015,03/30/2015," My view page also displaying using query <?php echo $row['no_days']; ?> displaying same "03/18/2015,03/27/2015,03/30/2015,". but I want to display "03/18/2015,03/27/2015,03/30/2015" any body help me

Member Avatar for ramsiva
0
93
Member Avatar for spud91

Hi Guys So i have the following code: <?php session_start(); include_once("config.php"); ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Shopping Cart</title> <link href="style/style.css" rel="stylesheet" type="text/css"> </head> <body> <br><br> <div id="search-wrapper"> <h1 id = "mainHeader>Search for books</h1> <?php $query = "SELECT Category FROM books"; $result = mysqli_query ($mysqli, $query); …

Member Avatar for spud91
0
227
Member Avatar for mattyd

Hello. This is a multi-part question. I have researched each aspect of it before posting here, but I am posting this in case anyone may point out something I might have over-looked. * I am building a profanity filter to be used upon submission of a form - I assume, …

Member Avatar for almostbob
0
525
Member Avatar for AntonyRayan

Hi, I`m new to bootstrap. In bootstrap I have 6 tabs, for each tab i have two buttons like previous and next. , For first tab previous will be hidden, like that for final next button will be hidden, I took it from net. I want to save all the …

Member Avatar for diafol
0
163
Member Avatar for Ventech_IT

Hi guys Just a quick question...I have recnetly created a contact form for my site in codeigniter and the email sends and all that but i seem to have a problem getting the $_POST data to display in the message body. After my validation is done and the form gets …

Member Avatar for Ventech_IT
0
313
Member Avatar for fantyfiz

hi, I made a form in html and paste it code in my wix website it works but I want when user enter data, the data should send on my yahoo email id. how i do this.

Member Avatar for diafol
0
165
Member Avatar for jonlloydd

I want to filter records being displayed from a MySQL table if the value of a field = one of multiple predeclared values. I am already running a query on my table which displays records based on which option from a dropdown menu the user selects. However before the user …

Member Avatar for linus72982
0
504
Member Avatar for jerry.woods

I am trying to read an email body that has a link in it. I need the link address for my website users. I can "see" the link but not the address. lots of info on putting a link in but not much on retreval. any help would be greatly …

Member Avatar for diafol
0
97
Member Avatar for london-G

Hi guys, Trying to set up a cron job using [this tutorial](http://www.magentocommerce.com/wiki/how_to_-_import_manufacturers_or_any_other_option_attribute_set) I have replaced {my/magento/install} with my site path and tried to execute it as a unix command. /usr/bin cd /{/var/sites/e/mysite.com}/shell/; php -f attributeimport.php -- --attribute manufacturer --file ../manufacturers.txt; It gives me an error: Error: The command you entered …

Member Avatar for london-G
0
431
Member Avatar for Niloofar24

Well, me again! Have an other problem with creating an other table. I want to create a Posts table with this code: <?php $servername = "localhost"; $dbname = "mydbname"; $dbusername = "mydbusername"; $dbpassword = "mydbpassword"; try { $conn = new PDO("mysql:host=$servername;dbname=$dbname", $dbusername, $dbpassword); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = 'CREATE TABLE Posts( …

Member Avatar for Niloofar24
0
272
Member Avatar for stokie-rich

Morning guys hope your well, at the moment I'm creating a regsiter and log in page for my website. When I load the page on my local host, the page does not show and all that does show is my nav bar. Can anyone give me a hint as to …

Member Avatar for lps
0
188
Member Avatar for Niloofar24

Hello. This is my CMS login page; login.php: <?php $servername = "localhost"; $dbname = "mydbname"; $dbusername = "mydbusername"; $dbpassword = "mydbpassword"; try { $conn = new PDO("mysql:host=$servername;dbname=$dbname", $dbusername, $dbpassword); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $username = $_POST['username']; $password = $_POST['password']; $password = md5($password); $sql = "SELECT * FROM Users WHERE Username = '$username"; …

Member Avatar for lps
0
592
Member Avatar for Nisha_3

This is my php code.And i get no database selected error while running it in the localhost.kindly help me please. <?php $hostname_localhost ="localhost"; $database_localhost ="mydatabase"; $username_localhost ="root"; $password_localhost =""; $localhost = mysql_connect($hostname_localhost,$username_localhost,$password_localhost) or trigger_error(mysql_error()); mysql_select_db($database_localhost, $localhost); $username = $_POST['username']; $password = $_POST['password']; $query_search = "select * from tbl_user where username …

Member Avatar for lps
0
2K
Member Avatar for ramsiva

I have one problem, ajax url not going to my ajax.php. please any body help me <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script> $(document).ready(function(){ $('.button').click(function(){ var clickBtnValue = $(this).val(); var ajaxurl = 'ajax.php', data = {'action': clickBtnValue}; $.post(ajaxurl, data, function (response) { // Response div goes here. alert("action performed successfully"); }); }); …

Member Avatar for ramsiva
0
6K
Member Avatar for Simon_4

I have the follow problem/issue. Would like to have it a bit nicer: The vars $gender, $shoe_size, $clothing_size and $growth are an array(?). And I like to have, instead each line with $gender[0] something dynamic... My problem I have, how I do it exactly, that I get each line as …

Member Avatar for Simon_4
0
1K
Member Avatar for subbu_1

If is set per_page 2 records I am getting these 2 records in page but if I click next page I am not getting remaining records in next page please anyone help me. <?php @session_start(); include 'connections.php'; $button = $_POST['submit']; $search = $_POST['searchvalue']; $name = $_POST['name']; if(strlen($search)<=1) { echo "Search …

Member Avatar for lps
0
136
Member Avatar for Sophia_1

Hi, tried to update record in table and send email to the responsible person but no email is being sent. When current user select the responsible person from the option select and click Notify2 button, it suppose to update Responsible2 in improvement_plan table and send email to notify the Responsible2 …

Member Avatar for lps
0
887
Member Avatar for Niloofar24

Hello. Look at this file please: register.php <?php $servername = "localhost"; $dbname = "mydbname"; $dbusername = "mydbusername"; $dbpassword = "mydbpassword"; try { $conn = new PDO("mysql:host=$servername;dbname=$dbname", $dbusername, $dbpassword); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "INSERT INTO Users (Username, Password) VALUES ('$username', '$password')"; $conn->exec($sql); } catch(PDOException $e) { echo $sql . "<br>" . …

Member Avatar for lps
0
261
Member Avatar for kalcio

Hi, I'am working with a web company's ressources management project in symfony2 and angularJs with XAMP,I want to add real time services to my web application,my question is,nodejs is it the right choice for this kind of applications?and what's the utility of angularJS two way data binding in this case …

0
122
Member Avatar for spud91

Hi Guys. Ive got a small problem where I'm trying to display rows from my DB Here is the code that I'm currently using: <?php $results = $sqli = ("SELECT * FROM `books` ORDER BY `ISBN` ASC"); if ($results) { //fetch results set as object and output HTML while($obj = …

Member Avatar for linus72982
0
359

The End.