373 Posted Topics
Re: For this thing, chekbox is what people use generally. But u asked for radio button - [CODE] if(!isset[$_PST['radio'])) foreach ($_PST as $key =$val) echo "$key = $val\n"; [/CODE] | |
Re: [CODE] if(isset($_POST["submit"] ) && $_POST["submit"] == "Exit") { //your code here } [/CODE] | |
Re: In the table you saving username and password, have one more field named 'Status' or whatever. Each time user logs in get the status updated like 'online' and when you checking the username+ password combination for the login page just check this field also, if the user is already "Online" … ![]() | |
Re: Are you sure, there is no update button on the browser? Check in case if its somewhere else, like too down the browser to take a note of it, maybe due to some design issue. Can you attache the snapshot of what you can see. | |
Re: Right.[I]Instead[/I] you could just say, you got this parse error at the [B][U]last line[/U][/B] of your script.It will be almost enough for any developer to sort out the issue. check your php tags are completed everywhere and for any synt6ax error, or there might be any string unclosed. | |
Re: You were wrong at mysql_numrows. It should be mysql_num_rows() everywhere.Your code modified below - [CODE] <?php //Connect To Database include("admin/config.php"); mysql_connect($dbhost,$dbuser,$dbpass) OR DIE ('Unable to connect to database! Please try again later.'); mysql_select_db($dbname) or die( "Unable to select database"); $query="SELECT * FROM events WHERE (year >= $current_year AND month > … | |
Re: you can add the bcc field in the headers part of the mail function. $headers .= "Bcc:emailIDs@test.com,emailIDs@test.com"; etc | |
Re: try this - [CODE]<? include "../includes/db.php"; include "../includes/function.php"; checkAdminLogin(); include "header.php"; include "../fckeditor/fckeditor.php"; $db = new Database(); $db->connect(); $error = ""; $emails = ""; $arr = array(); if( count($_POST) ) { if( !empty($_POST['txtSUB']) && !empty($_POST['msgDESC']) && !empty($_POST['cmbEmail'])) { $emails = "1"; if( $emails == "1" ) { $to = "test@test.com"; … | |
Re: Yes definetaly will need to clarify it further because - [QUOTE=Sagitarian;1006446] Here is my challenge, the HTML file that is called up from the menu link includes links also, if a user clicked on one of those links, it will replace the whole page. [/QUOTE] It seems that, by this … ![]() | |
Re: you can simply backup the database as a query forms or in data form using the CMS's export feature or backup database feature :) | |
Re: check whether if you have the mysql server seperately installed on your mahine. | |
Re: Sessions data is stored on the server, it got nothing to do in case some client logs in and then some other and then again some other. be clear exactly what you want to achieve, i think just the user loging verify, if thats it only checking the if(isset($_session['varName'] ) … | |
Re: if its a school work, think about some google search first.Trust me it will be in your favour in the long run.Start coding on your, if you get stucked up somewhere post your code here.Me and my friends here will try to help you. I will post the algorithm here … | |
Re: change the upload.php as - [CODE]<?php // filename: upload.processor.php // first let's set some variables // make a note of the current working directory, relative to root. $directory_self = str_replace(basename($_SERVER['PHP_SELF']), '', $_SERVER['PHP_SELF']); // make a note of the directory that will recieve the uploaded files $uploadsDirectory = $_SERVER['DOCUMENT_ROOT'] . $directory_self … | |
Re: mailing in php is very simple, php provide the mail() function that does everything for us - [CODE] to = 'to@test.com'; $subject = 'subject'; $message = 'hello, how are you'; $headers = 'From: test@test.com' . "\r\n" . 'Reply-To: test@test.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); … | |
Re: Check the rights on those files/folder and post your part of error log here. | |
Re: what was the need for this, if the problem is solved please mark the thread as solved | |
Re: what you are trying to achieve while doing this? I think you just trying to complicate the (might be) easy thing.. post here what you want to do. If you want to construct the url like "http://www.website.com/index.php?p=varname This var values are available in the $_get variable. The way to get … | |
| |
Re: You very well know what you want to have in your website and you have done everything perfectly too. So what exactly expect from us. If you expect the suggestions to improve the exsting script , think about putting some select element for the user to select the email ids … ![]() | |
Re: the code provide by her has to work, if not just check if you get the values of the variables inside he function. alert(userid+">>"+weeknum); and also post what error you face check the error console. | |
Re: hey guys have seen this about the image the images on couple of the websites which on right click on the image alerts "Copyright violated, copying restricted" etc. and does not allow the user to copy it. But I am still not sure how to do this. | |
Re: hey what is the need for doing the below thing twice - [CODE]$image = mysql_query("SELECT * FROM artworks WHERE userid='$id' AND galleryid='$galleryid'"); $folder = mysql_query("SELECT * FROM artworks WHERE userid='$id' AND galleryid='$galleryid'"); [/CODE] | |
Re: why to complicate the simple query, he just have two simple reuirements on the same table as - 1)age BETWEEN something AND something and 2)sex as all on same table [CODE]SELECT * FROM $tbl1_name WHERE sex='$show_all and age BETWEEN '$from' AND '$to'[/CODE] It aslo depends upon what you pass as … | |
Re: Search the 'Enterprise Architect software " with the google, it gives some good results for it. | |
Re: If you done with it, mark the thread as solved | |
Re: mark the thread as solved ,if you are satisfied with the solutions provided | |
Re: Look if it helps you - [url]http://www.htmlgoodies.com/tutorials/buttons/article.php/3478911[/url] | |
Re: please mark the thread as solved, if done with this , or else post your queries here, we will look into that. | |
Re: See all your variable in get request like- [CODE] echo '<pre>'; print_r($_get); echo '</pre>'; [/CODE] This will print the $_get variable. You can access each var by its name like index of the array for ex. $p1 = $_get['p1']; $p2 = $_get['p2']; | |
Re: I guess you will have some bunch of html select elements for the user to select the checkin and the checkout dates. After the form submit just check all the validation is done properly by the javascript or else some bugs like checkout date>checkin date, after that select query to … | |
Re: The file download form the server to the client machine will be done by the php, but before that restricting the user in some way or the client side validation will help to achieve what you want exactly with the javascript. | |
Re: [QUOTE=smvec;1007830]hi.. im dynamicelly creating text box in a html file using javascript.. [CODE]<script> function create_input_boxes() { if(document.getElementById("name0")) { return true; } var boxes=""; var num_boxes=document.getElementById("num_boxes").value; if(num_boxes) { for(var i=0;i<num_boxes;i++) { boxes+="<input id='name"+i+"' name='name"+i+"' value=''><br />"; } document.getElementById("textbox_container").innerHTML=boxes; } return false; } </script> </head> <body> <form id="theForm" action="dynamic.php" method="post" onsubmit="return create_input_boxes();"> … | |
Re: Hey consider the below code - [CODE] $fromDB; //This is datetime object from the database $date = new DateTime($fromDB); //$date->modify(''); echo $date->format("h:i A"); [/CODE] Hope this works for you, if still not post the problem again. | |
Re: Can you be more descriptive about what you expect from php, like what do you mean by 'uild-in function of authentication' ? | |
Re: why you want to search for the pdf file through php, if you know the path and the file name both? If you have both, you can simply get it as like other files using fopen etc | |
Re: This is a php section, please carry it to proper section to get the immediate help on that. | |
Re: This is a php section, please carry it to proper section to get the immediate help on that. | |
Re: why do you want to store the each qualification checked by the single user in multiple rows.you can have a row par user having different columns to store that user details, like you can have a enum fields like qualification1, qualification2 etc. Hope you got what i want to explain … | |
Re: please follow the practice to mark the threads as solved, it helps others too :) | |
Re: [QUOTE=pritaeas;1006831](px|em|pt|%)[/QUOTE] Can you elaborate the syntax a bit more.. | |
Re: please follow the practice to mark the threads as solved, it helps others too :) | |
Re: If I got you right, this can be implemented using jQuery and maybe this is not the right section to post this question. | |
Re: [url]http://www.pdf-tools.com/asp/products.asp?name=i2pa[/url] |
The End.