39,323 Topics

Member Avatar for
Member Avatar for annyangel

**** # dao.php # <?php class DAO { private static $con; public function __construct($hostname, $username, $pass, $db) { try { self::$con = new PDO("mysql:host=$hostname; dbname=$db", $username, $pass); } catch (Exception $e) { echo 'Error Message'; } try { $x= self:: $con; } catch (Exception $e) { echo 'Error Message'; } …

Member Avatar for annyangel
0
202
Member Avatar for abhi10kumar

I need light-weight AJAX pop-up form submit, where I can submit details into an email, I searched, but I cant find.

Member Avatar for Bachu
0
78
Member Avatar for actolearn

Example 1 below works: echo "<p><h2>".$results['title']."</h2>".$results['shortdesc']."</p>"; I need to make the title linkable to the page url. I'm probably putting the ' and " in the wrong places for the link part. Example 2 - I've added the url code but does not work: echo "<p><h2><a href=http://www.example.com/".$results['url'].".$results['title']."</a>"</h2>".$results['shortdesc']."</p>"; Any help would …

Member Avatar for actolearn
0
226
Member Avatar for chayassongi

I want to check table exists from my defined array. It return result but when i delete any table from database it still say ok. I want exactly have to be match from my array value and database tables name. so how can i improve???? plz help. include 'connect.php'; function …

Member Avatar for diafol
0
154
Member Avatar for donedeal

I'm trying to find out which of the following WEB/MOBILE Developing Tool. 1. ASP.NET 2. PHP 3. JAVA Which one of them is the best in terms of robust web application, tight Security, mobile application, database application, etc. I will like to know which one with reasons.

Member Avatar for irum niazi
0
338
Member Avatar for mutago

Hello everyone, this mysql_deprecated works very fine and retrieves information but when i tried moving it to PDO it displays nothing. can someone help me thank you working mysql_deprecated.php <?php require('config.php'); $user = $_SESSION['log']['username']; $sql = "SELECT * FROM users WHERE username='$user' OR friend='$user' AND status = 'accepted'"; $result = …

Member Avatar for mutago
0
206
Member Avatar for guym

Hello all, First I would like to say thank you to anyone helping, it is very much apperciated. I'm trying to create a database of all of my movies(I know there are programs that do this but I would like to make my own) So far I have created a …

Member Avatar for broj1
0
494
Member Avatar for PixelatedKarma

Hey everyone, So I am having trouble getting my head wrapped around a php script I need to build. What I am trying to do is pull data from a MySQL database table (dynamic content) and match it to an html table with static content. I guess an example of …

Member Avatar for PixelatedKarma
0
1K
Member Avatar for devianleong

Hi,Today I face a very weird problem which is I've a button which generate pid from database: <a href="orderdetail.php?pid='.$OrderID.'"><button type="button">View Shipping Status!</button></a> Let say my OrderID is 53588130964806920 and it will look like orderdetail.php?pid=53588130964806920 isn't ? But after I click the button , the URL display well but when I …

Member Avatar for diafol
0
183
Member Avatar for rpv_sen

Hi Friends Please can any one help me. How to create a local database for HTML5 Concept and we have to access the local data store to view the datas using HTML5.

Member Avatar for diafol
0
106
Member Avatar for nael.awadallah.3
Member Avatar for diafol
0
59
Member Avatar for jithusdani

HI folks.... I want to create a form that includes a textBox and a button,when ever i will click the button i shuld want to create a new text box.and i want to take the value of the each text box when a second button click.If anybody knows the answer …

Member Avatar for NicheTechIns
0
620
Member Avatar for ruhestorer

Hi, I am using php to update data and i need to see which field query is already updated **while the *while loop* is still running** in case the process stops or in case i need to end/ stop process. Right now it shows the list of documents (doc_code) updated, …

Member Avatar for ruhestorer
0
190
Member Avatar for kelley82879

How can I change this so that my returned results will display as 2 tables instead of one? Its returning results from 2 different tables but its not displaying as 2 different tables As I want it to. Thanks for any help or tips you can provide <?php mysql_connect ("localhost", …

Member Avatar for kelley82879
0
209
Member Avatar for son jo

Attach above is my question & answer(not correct) can someone edit it for me :) MY QUESTION : develop an online application called ‘mylibrary’. The purpose my ‘my library’ application is to record all the books that you have purchased. Information that you have to record are International Serial Book …

Member Avatar for Thomas84
0
431
Member Avatar for tibormarias

Hello Everybody, I have a problem with including a .php file into a javascript code. This is a calendar, and I want the calendar to use my database data. So here is my code of the javascript: <script type='text/javascript'> $(document).ready(function() { var date = new Date(); var d = date.getDate(); …

Member Avatar for ryantroop
0
203
Member Avatar for svmkotla

hi ,i am new to php i have problem with my code . problem is when ever a page is loded <?php if(isset($_POST['submit'])); { $conn=mysql_connect("localhost","root","vamshi"); if(!$conn) { die("couldn't Connected : " .mysql_error()); } mysql_select_db("ninepixel",$conn); $sql="insert into empattendence (name,daydate,choice) values('$_POST[name]',now(),'$_POST[choice]')"; if(mysql_query($sql,$conn)) { echo("Your Data Has been Submitted"); } else{ echo("Please Enter …

Member Avatar for anandatheerthan
0
224
Member Avatar for kelley82879

I would like to have my users type in a term and display results from two different tables. I tried using union but i'm getting errors can you help please? <?php mysql_connect ("localhost", "","") or die (mysql_error()); mysql_select_db (""); if(isset($_POST['submit']) && !empty($_POST['submit'])){ $result = ""; //USED LATER /*$term = $_POST['term']; …

Member Avatar for kelley82879
0
266
Member Avatar for sruthisru

advnc thank u.. i need to access login details(date and time) of users while clicking on calendar type date. is it possible? date and time is inserted in database while each userlogin. please help me...:(

Member Avatar for diafol
0
251
Member Avatar for mutago

I want prevent symlink attack so i first disable symlink using disable_functions I need to know other ways of protecting symlink attack using .htaccess files thank You

Member Avatar for hag++
0
314
Member Avatar for vishalonne

Hello Evey Body I just need to know how can I stop displaying my php pages name in url for example: > http://cbse.in/classxii/question_papers.php to http://cbse.in/classxii/ or http://cbse.in/classxii/question_papers/ > > http://cbse.in/classxii/computer_science/question_papers.php to http://cbse.in/classxii/computer_science/ or http://cbse.in/classxii/computer_science/question_papers/ > > http://cbse.in/classxii/computer_science/Chapter1/answers.php to http://cbse.in/classxii/computer_science/Chapter1/ or http://cbse.in/classxii/computer_science/Chapter1/answers/ I came to know this is possible by URL …

Member Avatar for diafol
0
798
Member Avatar for Master Mascus

I would like to know if its possible to extract data from a database and then displayed the data in a pdf file ?

Member Avatar for Atli
0
308
Member Avatar for delta_frost

I have a PHP script that generates a PNG captcha(set by Content-Type header).It can be embedded in an HTML page by just using `img`. I want to convert that image to base64 format for displaying.How do I go about doing that ? Using the normal method for encoding as given …

Member Avatar for LastMitch
0
853
Member Avatar for mutago

I logged into my control panel and i discovered that my directory permissions was set as follows /home /access_log = 750 /etc =750 /mail = 750 /public_htm = 750 /public_ftp = 750 /tmp = 755 /www = 750 Can I set it all to 640. can someone tell me the …

Member Avatar for LastMitch
0
148
Member Avatar for chrisschristou

hello ever body thank to take to read my question. i develop my website in dreamweaver i'm not good in php but i try and i learn, i want calculate the total price of goods and i use html form i want 3 different shipping when customer shoose the total …

Member Avatar for diafol
0
148
Member Avatar for nathanpacker

I need to create a very simple script with php. There is a form with only one input field, for the user's email address. They click submit, and the script sends an email to that address, while attaching a pdf file that I specify in the script. I've found many …

Member Avatar for dineshsjce
-1
2K
Member Avatar for techxaidz

Hi to all! Can someone help me about this concept.. I attached here a jpeg file of what I want to become an output. For the output, i simply want to draw a table that looks like a bus seat layout. So far, here's what i've got: <table border="1" cellpadding="20"> …

Member Avatar for techxaidz
0
360
Member Avatar for mutago

uploading web file outside doc-root issues I uploaded my file oustside the root directory while leaving only index.php in the public_html here is my directory structure /home/user /myweb_application ----> my uploaded files /access_log /etc /mail /public_htm /public_ftp /tmp /www Here is how i configured it 1: inside /public_html I have …

Member Avatar for hag++
0
289
Member Avatar for Indians

i want if user select one value in combo box that value should store in db and then display what they are selected. for example if user select CONFIRM option that value stored in db after that it display CONFIRM instead of that combo box form and button. Here i …

Member Avatar for hag++
0
3K
Member Avatar for Monium

I would like to upload multiple images to my server using this code: <html> <body> <form action="upload_file.php" method="post" enctype="multipart/form-data"> <input id="picture_01" name="userfile['01']" tabindex="auto" type="file"> <input id="picture_02" name="userfile['02']" tabindex="auto" type="file"> <input id="picture_03" name="userfile['03']" tabindex="auto" type="file"> <input id="picture_04" name="userfile['04']" tabindex="auto" type="file"> <input id="picture_05" name="userfile['05']" tabindex="auto" type="file"> <input id="picture_06" name="userfile['06']" tabindex="auto" type="file"> <input …

Member Avatar for urtrivedi
0
687

The End.