39,393 Topics

Member Avatar for
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
229
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
271
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
252
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
338
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
806
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
311
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
857
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
150
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
150
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
389
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
290
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
692
Member Avatar for johnanthony.sanz

<?php ob_start(); session_start(); include ('database_connection.php'); if (isset($_SESSION['myusername'])) { $logout = '<li><a href="logout.php">Logout</a></li>'; } ?> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta charset="utf-8"> <title>MVRAM</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <!-- Le styles --> <link href="bootstrap/css/bootstrap.css" rel="stylesheet"> <link id="switch_style" href="bootstrap/css/united/bootstrap.css" rel="stylesheet"> <link href="css/main.css" rel="stylesheet"> <link href="css/jquery.rating.css" rel="stylesheet"> …

Member Avatar for pritaeas
0
976
Member Avatar for mutago

I need to prevent direct access of all the php files but allow only files pass.php how can i do that <Files ~ "\.php$"> Order allow,deny Deny from all Allow from 127.0.0.1 </Files> the code only allow access to localhost. now what if i want to allow access only to …

Member Avatar for LastMitch
0
299
Member Avatar for mark103

Hi guys, I need your help. I got a problem with playing the video formats on flash. I can't be able to play the live streams for some type of protocols in flash, e.g: http, rtsp, mms, m3u8, rtmp. I can play on some rtmp, but not most of all. …

Member Avatar for LastMitch
0
227
Member Avatar for flynismo

Hi all, What I am trying to accomplish is this: 1. User submits form 2. PHP checks the form for any words that begin with the '#' hash symbol 3. If any words beginning with # are found, php checks database to see if it already exists What is the …

Member Avatar for diafol
0
1K
Member Avatar for kelley82879

I can't seem to figure out how to return the result to the same page. When I get the result from the database it opens up a new page (search.php) but I want to stay on the same page as the form (the html page) I would greatly appreciate anyone …

Member Avatar for kelley82879
0
426
Member Avatar for Lonestar Jack

I have an array ($arr) of arrays ($ar) in which I want to describe the columns in a report. The salient elements include the column headings and the MYSQL field to use: Array ( "City", 12, 29,"Y", "City_date", "City_Total" ), Array ( "Atmos", 8, 23, "Y", "Atmos_date", "Atmos_Total" ), etc. …

Member Avatar for Lonestar Jack
0
525
Member Avatar for iisark

0 down vote favorite I have script built with an old version of CakePHP.The script works just fine on live servers but when i tried to install it on my pc (with XAMPP installed) igot problems...I have this error: **Warning: include(cake\bootstrap.php): failed to open stream: No such file or directory …

Member Avatar for hag++
0
1K
Member Avatar for Indians

Fatal error: Call to undefined function curl_init(). in my php.ini() file i removed the semi colon for extension=php_curl.dll and then restarted my xampp server. but its not worked. any idea?

Member Avatar for Indians
0
127
Member Avatar for kyle.santelices.31

hello pleas help me , it says i have a suntax error in line 19 ";" <?php // if something was posted, start the process... if(isset($_POST['upload'])) { // define the posted file into variables $name = $_FILES['picture']['name']; $tmp_name = $_FILES['picture']['tmp_name']; $type = $_FILES['picture']['type']; $size = $_FILES['picture']['size']; // get the width …

Member Avatar for Bachu
0
195
Member Avatar for bradly.spicer

Really hate the way Moodle is written, was wondering if there was a quick way around this. $custommenu = $OUTPUT->custom_menu(); $hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu)); <?php if ($hascustommenu) { ?> <div id="custommenu"><?php echo $custommenu; ?></div> <?php } ?> How can I add a seperator into the navigation e.g | Home …

Member Avatar for pritaeas
0
188
Member Avatar for everton.retweets

Hi Everyone. I have the following preg_match to check user passwords contain elseif (!preg_match( "((?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,15})",$bpwd ) ) { 1 Upper Case Letter 1 lower case letter 1 number It works as described, but what I am looking to do is to create a stronger password requirement. I would like to …

Member Avatar for everton.retweets
0
259
Member Avatar for mutago

can apache server be able to access php files saved outside docroot what if the person just guest the directory link and bypass index.php files residing on public_html eg https://example.com/i have seen it/steal.php won't it execute. I think we need to tell apache not to load directory /web outside root …

Member Avatar for paulkd
0
330
Member Avatar for patk570

Hi Everyone, I have a timezone variable that is stored in my database. In my code, I have it generate every timezone there is but what I need is to have it return the results of the selected="selected" when you go to pull the edit page up so you dont …

Member Avatar for paulkd
0
177
Member Avatar for diakonos1023

Greetings! I'm building a PHP table from data I'm pulling from a MySQL database. I'm querying data from two tables where the common field between them is a customer ID. Table A contains customer ID and a customer score. Table B contains customer ID and a mailing code. The easy …

Member Avatar for LastMitch
0
249
Member Avatar for kishore_4

I am not able to Integrate Beanstream to my wbe page. I am trying to submit the form which includes amount, Mer id, card details, action = https://www.beanstream.com/scripts/process_transaction.asp. It will goes to the beanstream page and doesn't come back. The page which browser stops here : https://www.beanstream.com/scripts/process_transaction.asp?rbCCType=Visa&trnCardNum............ Can anybody please …

Member Avatar for LastMitch
0
131
Member Avatar for karen.frias0316

Hi! my first time here. i'm new to programming. I have a code which checks if a .txt and .jpg file exist in the same folder.(*this part is working well*) after checking it needs to display the value of .txt file and the .jpg file inside a modal popup. (*in …

Member Avatar for LastMitch
0
232

The End.