39,395 Topics

Member Avatar for
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
235
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
62
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
228
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
526
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
164
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
166
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
505
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
98
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
432
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
274
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
189
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
360
Member Avatar for annya

Iam facing a problem, Google input tools fonts are not rendering in my website. iam creating a website which support multi language to type. I have typed in malayalam and the font are showing correctly while trying and in the preview page it was showing like this ( മലയാളഠà´à´¨àµà´¨à´¾ …

Member Avatar for annya
0
413
Member Avatar for radu.campian

I need to create a form in php and mysql in which it will create a table on a default set database for example "ramgest" and i want it to be only one text field with table name and one file upload which will get the imported .csv into the …

Member Avatar for urtrivedi
0
252
Member Avatar for davy_yg

index.php <div style="margin: 120px 0 0 150px; font-size: 14px;"> <div id="banner-background2"> <div style="margin: 65px 0 0 -290px; position: absolute;"> <input type="text" class="form" name="username" value="ghi"> <input type="password" class="form" name="password" value="jkl"> </div> <div style="margin: 123px 0 0 310px; position: absolute; z-index: 3;"> <form action="login_portal.php" method="POST"> <br> <input type="password" class="form2" name="password" value="abc"> <div …

Member Avatar for linus72982
-1
238
Member Avatar for Draw

**Hey Daniweb!** A bunch of us have been putting together a web-based drawing app. In a nutshell, users connect in real-time to draw or chat on a sort of interactive whiteboard. Plenty of these are made in Flash, but we are determined to build it in JavaScript and HTML5; a …

Member Avatar for Draw
0
267
Member Avatar for Robert_30

I have a form on a page where users can save information, and a dropdown that pulls those saved files from the directory they saved them to. What I would like is when they go to that page, is that when they select the filename from the dropdown box, it …

Member Avatar for Robert_30
0
248
Member Avatar for sem123

How to convert psd to html any software???? or any procedure to create it if software how to get full version of it?

Member Avatar for jenniferjudy2
0
256
Member Avatar for spud91

Hi Guys! So i have a login form thats "supposed" to display an error if a person doesnt enter any information or they enter the wrong information I have the following code: <?php session_start(); // Starting Session include_once('config.php'); $error=''; // Variable To Store Error Message if (isset($_POST['submit'])) { if (empty($_POST['user']) …

Member Avatar for almostbob
0
247
Member Avatar for stutego

Hi everyone thanks for being here to helpout pls I've learnt alot about php but my problem is dat i need a basic foundation on how to use php in creating apps or cms and pls will also need a mentor who can helpout point some few things out when …

Member Avatar for davy_yg
0
224
Member Avatar for Niloofar24

Hello. I'm trying to create a simple CMS, and looking for a good tutorial, any idea?!

Member Avatar for davy_yg
0
681
Member Avatar for showman13

Good Afternoon All, Been a bit since I had a question... Guess my education from Daniweb is paying off...;-)) I have a form where a member is posting a banner URL and alt text to display a banner on our site. I would like to validate the URL they enter …

Member Avatar for showman13
0
2K
Member Avatar for Niloofar24

Hello. I'm creating a CMS. I've got this log_error. Can you explain the problem for me if the error message is clear enough for you to understand it? I'm new to PHP. the log_error says: `PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent`

Member Avatar for diafol
0
232
Member Avatar for muneersial

This code is not display data and not show any error.so reply me what is error. <html> <head> <title>insert new post</title> </head> <body> <form method="post" action="insert_post.php" enctype="multipart/form-data"> <table align="center" border="10" width="600"> <tr> <td align="center" colspan="5" bgcolor="yellow"> <h1>insert new post here</h1></td> </tr> <tr> <td align="right">post title</td> <td><input type="text" name="title" size="40"></td> </tr> …

Member Avatar for almostbob
0
251
Member Avatar for Tanveer_4

Let me explain what I mean by that.... I want to make a members portal on which every one will post so what I want is that every user/member must have their own Control Panel where they can do the following: add new post, delete their own posts, change their …

Member Avatar for diafol
-1
219
Member Avatar for boney

Hi, how do i pass the variables color, city and food to the mypage.php? I am able to get 'name' and 'age'. I want tto be able to pass all the variables mentioned in the script. <script type = "text/javascript" src="mypage.php?name=test&age=23"> var color = "red"; var city = "london"; var …

Member Avatar for diafol
0
172
Member Avatar for mpc123

Hi I need to look in a field to find the text same as another field I have this at the moment but it does not work, hoep you can help update TAB1, TAB2 set `field3` =`field4` where FIND_IN_SET('`FIELD1`', '`FIELD2`') I feel FIND_IN_SET is not the right thing as the …

Member Avatar for mpc123
0
123
Member Avatar for boney

How do i get the title of the post and the image from a URL? Say i enter a random URL, I want to get the main title of the post in that page and number of images and the images itself. file_get_contents() doesnt help.

Member Avatar for pixelsoul
0
77
Member Avatar for utsavjoshi95

to ask user before deleting a record If user clicks ok then only delete record from database If user clicks cancel then it should not delete record

Member Avatar for matrixdevuk
-1
113
Member Avatar for diafol

Anybody using L5 yet? Just got to grips with 4.2 and thought I had it cracked. L5 was a shock. The "simplicity" of 4.2 has disappeared IMO. The documentation sucks too. But I don't want to be a hater. Am I missing out on rolling back to 4.2? I've read …

Member Avatar for matrixdevuk
0
277
Member Avatar for SeanKann

I'm not sure what the issue is. I've checked all my encodings and they are all set to UTF-8 and no matter what the emails come in weird text. Not everything just throws in a weird letter at the end of words for some reason. Example of email The Server …

Member Avatar for SeanKann
0
162
Member Avatar for Tinnin

Hi All, I'm trying to unlink a file. I start with a form and submit it using javascript's submit() (out of necessity). Eventually the php code arrives at a function and unlinks the file (or rather doesn't). Now, the files unlinks when I use die() to exit out of script …

Member Avatar for Tinnin
0
1K
Member Avatar for patelsachin444

Hi, I have created dynamic dropdown list called technologies from table "technology". I have used it on another form called 'add_project'. In this form, there are 2 fields project name and technology which is dynamic dropdown list. I am getting all the values in dropdown.Now I want to save those …

Member Avatar for rpv_sen
0
7K
Member Avatar for utsavjoshi95

problem with this code is, it is printing only first element,how can i print all elements which are added using addrow() <script language="javascript"> function addRow(tableID) {var table=document.getElementById(tableID); var rowCount=table.rows.length; var row=table.insertRow(rowCount); var cell1=row.insertCell(0); var element1=document.createElement("input"); element1.type="checkbox";element1.name="chkbox[]"; cell1.appendChild(element1); var cell2=row.insertCell(1); cell2.innerHTML=rowCount+1; var cell3=row.insertCell(2); var element2=document.createElement("input"); element2.type="text"; element2.name="txtbox[]"; cell3.appendChild(element2); } function deleteRow(tableID){ …

Member Avatar for rpv_sen
0
158
Member Avatar for AntonyRayan

Hi, I need a php code for converting from any format to pdf by clicking a button called convert to pdf. How to do?

Member Avatar for cereal
0
136
Member Avatar for charlie.kirk.140

Hi guys, I want to insert data(integer OR decimal) into database record. should the data structure be integer? if so how do I print the value I enter (12.75 or 3)? thanks in advance.

Member Avatar for matrixdevuk
0
100
Member Avatar for jonlloydd

I have a search box and a dropdown box. I am using these to filter data being displayed on my table from the MySQL table. I can type a county name in to the searchbox and all the records with that county name will be dsiplayed. THAT works fine, however …

Member Avatar for matrixdevuk
0
583
Member Avatar for SeanKann

I'm trying to get this cronjob to work but it won't exec the the ffmpeg exec that I have in my controller file. When I try to run it via web browser it outputs the variables correctly but won't exec <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); …

Member Avatar for cereal
0
3K
Member Avatar for OsaMasw

Hello guys have a nice day.. I have a problem need to be solved, I have upload script which save files in "/uploads" folder everything was going good until my boss decided to move upload file to storage server and need to store all files in "/etc/mnt/storage/uploads" so what should …

Member Avatar for cereal
0
2K
Member Avatar for hno

HI I want to a make an entertainment web site . What kind of it is more popular now ? how about a game web site ? In my country there isn’t any online game web site and I want to make a online game web site . Can anyone …

Member Avatar for thomas88
-1
239

The End.