39,316 Topics
| |
i have a page template assigned to a page, that displays the images of all the posttype=suspense...but how do i get voting button on each of the image so that ppl can vote on each image and restrict it to voting per ip. i have a custom field called count … | |
Good Morning, I am trying to create a function that will return a single value that represents the customer that will receive a reward... The source of the data that makes the determination is the banner_key table (partial - sample data) key_id mem_id bid created status keylock last_update 144 10000022 … | |
index.php <?php //image gallery $result = mysql_query("SELECT * FROM `image_upload`") or die(mysql_error()); while ($data = mysql_fetch_array($result)){ echo $data['title'].'<br>'; echo $data['news'].'<br><br>'; //echo '<img src="images/'.$data['newfilename'].'">'; echo '<style> .circular { width: 300px; height: 300px; border-radius: 150px; -webkit-border-radius: 150px; -moz-border-radius: 150px; background: url(http://localhost/portal_bootstrap/images/'.$data['newfilename'].') no-repeat; } </style>'; echo '<div class="circular"></div>'; } ?> Hello, I thought … | |
I am having a problem with this code. I looked into the issue and found no answer. When I run this code I get this: `username1username2{"username":"Username1", "username":"Username2"}` Instead of the desired result: `{"username":"Username1", "username":"Username2"}` Here is the code: <?php error_reporting(E_ALL); ini_set('display_errors', '1'); $db = mysql_connect('localhost', '', ''); mysql_select_db("roblox"); $query = … | |
Hello. I am attempting to add a Google reCaptcha to my form. This form is located on an .html page, but I am reading documentation that states I should rename the page with a .php suffix. I did this and reloaded the page and, obviously, nothing was displayed at all. … | |
Hiya DaniWeb members, Before starting it's not basic $variables I need help with. I've been working on a project lately for a Minecraft Server website and this project will work alongside the MCMMO plugin. Most of it works but I would like some help/advise on how to turn $nextLevel = … | |
Hi Guys, I have this script to insert attribute values in the database. When I run it, only the first value of the array is inserted. Could someone help me? <?php require_once('./app/Mage.php'); Mage::app(); $arg_attribute = 'manufacturer'; $manufacturers = array('NW163UA G70-467','NW167UA G70-481','VM113UA G71-333','VR759UA G71-340','VM114UA G71-343','VM110UA G71-347','VM116UA G71-349','VR761UA G71-358','VR760UA G71-400'); $attr_model = … | |
Any clue how to show part of the articles that I retrieve from the database? I mean what is the function. Thanks before. Davy | |
How can i get example code? | |
Haven't coded in php in a while and I'm now drawing blanks. Could someone simply correct my syntax on this? <?php session_start(); if $_SESSION['user_name'] == 'john', 'mike'; include ("audit_live.html"); else include ("audit.html"); ?> | |
i have a gallery of images withbutton for each when button for a image is click i want the custom field called count be updated with the newcount ...but form method is not working below is my code PHP Code: <? if (isset($_POST['submit'])) { echo " button clicked"; update_field('field_55014',$newcount,$postid); } … | |
| I am very new to the Mysql/php environment so would appreciate guidance here please. 1) I have a php program that uses a Form to enter data into a MySQL table. This is working OK when data is entered into the fields manually. 2) I have a short php script … |
Hello. I am beginning the process of implementing password encryption for User's on my future site (The site is not live or available yet). I have been reading up on hashing passwords and storing them in the database. **My question are as follows**: * I believe it has said that … | |
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 … | |
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 … | |
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 … | |
| |
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 … | |
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" … | |
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 … | |
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 … | |
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 … | |
i am currently working CI i like to learn Zend but i look to hard to learn is any easy way ...plz reffer | |
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 | |
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); … | |
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, … | |
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 … | |
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 … | |
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. | |
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 … |
The End.