- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
39 Posted Topics
Hi all, I have recently made a ajax script that works completely. It updates the database as required on click of the FU anchor. In the middle of the form I also have a yes | no option that copies the billing address to the shipping address, which also works. …
Why don't you make a JavaScript calculator. There are loads of scripts available. As for a notepad, just make a text area input, with CSS height and width of 100%. Then php to receive and process it. Or make it store the note as local storage. Pretty sure all browsers …
Hi all. Im wondering if it is common practice to encrypt the database contents. or is it normally left in plain text. for example, in a databse I have, the contents is stored in plain text: a select query would bring up "hello world", but should it be an encrypted …
Dont knowe if this helps, but i usually write my html within php with ' rather than ". example, echo "<li style='color:red;'>hello world</li>"; another little thing i do is use arrays to get my records, can sometimes keep coding efforts down. example, echo "<div align='left'>"; while($row=mysql_fetch_array($result)) { $columns = array("manufacturer", …
Use your browser to download the page as a whole, then sift through it to get the coding needed. There will be a JavaScript file that does the sliding, then the code on the page that is manipulated by the JavaScript. Haven't got much time,I need to go to work. …
Hi all. I have just setup iis on my windows 7 laptop. Just wondering if there are any settings I should change to make sure it is secure. Currently have the server running, and can access it by static ip from outside networks. Any help is much appreciated. Cheers
Hi all, I have the following code to process through my requests, then use in a database. FIRST of all, I was wondering if i have it in the right order, and SECOND, if there are any other steps i could do to secure up my application. have a look, …
Google CSS hover menu bud, there are heaps of tutorials and free scripts online
An alternative is the group by query SELECT date FROM product_data GROUP BY date Please mark this post as solved by the way
Hope this helps you bud, it is the php version of your form stripped down, and with a little bit of whats going on <? // Create an array to get the data from the form $arr = array("email", "n", "e", "m", "submit"); foreach ($arr as $value) // loop through …
Hi all, Heres my problem, not sure if this is the right place but daniweb users seem to answer every other question I have so here goes. I have windows 7 on my laptop. I have a repair disc that I have made from the same machine when it was …
Hi All Im trying to get this to work, but can only get it to work without putting the form tags in, and wont work with more than one set of the inputs. the below is the result when i use ajax to search for item names, then want to …
Hi all, I was wondering if it is a common thing to do when requesting variables to have the request names in an array and use a for loop to request the submitted variables. (will it hold the values if its a for loop?) What i have at present is …
Hi there, I have recently been looking into encryption, for MySQL and php, to figure out someway to encrypt the information in the database, or more to the point before it goes in, or decrypted when it comes out. What I'd like to happen is for the info submitted from …
change line 8 to $column = $column + 1; i gather that you are wanting to update column by one. can you post more info please bud
or you could have a database that has all your variable names and then the values asigned to each variable. you could then select each variable as you need it and be able to update / delete etc whenever you like. can you give an example of what youve written, …
this will result in the cookie value being set as computer. [CODE]setcookie("user", "computer", time()+86400); [/CODE] then have this in another page that you link to, eg have a link to redirect.php on your other pages, the save the following code as redirect.php: [CODE]<? $cookie = $_COOKIE['user']; $linktosite = "www.google.com?q=$cookie"; header("location: …
I dont think you can save the vid or pdf files to the database. You need to link to the document, but put the name of the file in the database. Then echo it through an anchor. Is the file being transfered? Try it with a pic too
If your writing in php, no one can see your php coding. Only the sever administrator and the ftp access user, eg you, can see your php coding. The only part of the source code they could get is the html output that you have either echoed, printed or hard …
i dont think the js will read the php, regardless of the browser. js is client side, php is server side. i may be wrong. try this instead: rename it to list.php and include it with php (provided you are using php for the web page) I'm pretty sure that …
Hi all, just wondering what the best way is to structure time in sql database. For example, at present i use this format ; 19/08/2011 (which is day/month/year). when i call this in a sql statement, it shows all results, but not in a chronological order. Can any body solve …
you need to put the form that you want to disappear in the div that will show the results. At the moment, you have this for example: form start form end div start display results if searched else nothing div end so the div is changing as you have told …
I cant see why not. try your page yourself with cookies on, then try it again with cookies off. although you could try this: if cookies are off, use sessions instead of cookies
just wondering why the pages refreshes, is there a meta refresh tag in the head? Could possibly be that the button type is submit, which is causing the page to refresh. could try and recode it to use <button id="groupname" value="show">
Hi all, was just wondering what is the difference between $_GET[''] $_POST[''] $_REQUEST['']? I normally use $_REQUEST[''] to get my values from a form or url, but not too sure why there is 3 different types. from what i understand, they are all the same and do the same thing …
Hi all, I have this code that seems to work fine for the order but cant get it to pass the invoice side of things. the trouble im having is when i do the order its fine, but when i do an invoice it sends me back to the order …
try this under your $_SESSION lines: [CODE] // this is setting the session as a variable $color = $_SESSION['color']; // check if the session is not registered if($color=="") { // echo a message saying it isnt echo"No session registered with the name color."; } // check if the session is …
try this: $this = "120"; $that = "136"; mysql_query("SELECT * FROM table WHERE column BETWEEN '$this' AND '$that'"); then a while statement for results. Use NOT BETWEEN for well, you get it, not between. Hope this helps you. Please mark solved if solved, cheers.
you need to either call it in a function or use it as a variable. I have written it for you here <? // You can also write the name here instead of the constant // just enclose it with double speech marks $host = TGP_DBSERVER; $userName = TGP_DBUSER; $passWord …
are you registering the session first somewhere? create a file, insert this code, then view it in your browser: <? session_register("myusername"); session_register("mypassword"); if(session_is_registered(myusername)){ echo"Session registered. Please mark this <a href='http://www.daniweb.com/web-development/php/threads/378222'>thread as solved,</a> and upvote my comment too, cheers"; } if(!session_is_registered(myusername)){ echo "session not registered. go back to <a href='http://www.daniweb.com/web-development/php/threads/378222'>Daniweb Forum</a>"; …
if database development, i'd say php/mysql running on apache. Create the database, create the forms, views etc, and your done. Simple is best. have a main view. then a form to edit the data. use your create forms also as an update form by having no action url, and a …
php can connect to odbc, not sure if this helps [CODE=PHP]<?php $conn=odbc_connect('northwind','',''); if (!$conn) {exit("Connection Failed: " . $conn);} $sql="SELECT * FROM customers"; $rs=odbc_exec($conn,$sql); if (!$rs) {exit("Error in SQL");} echo "<table><tr>"; echo "<th>Companyname</th>"; echo "<th>Contactname</th></tr>"; while (odbc_fetch_row($rs)) { $compname=odbc_result($rs,"CompanyName"); $conname=odbc_result($rs,"ContactName"); echo "<tr><td>$compname</td>"; echo "<td>$conname</td></tr>"; } odbc_close($conn); echo "</table>"; ?>[/CODE]
use fread if you can but make a stylesheet up for page too. beware as some websites will not let you do this as a check gets done for "in iframe' this is one way: <html> <head> <style> <!-- i used this for an example, you can create your own …
Hi I have started this code but i cant get it to work. new to javascript, but not sure how it works. im trying to make an alert for a text box "rrp" that alerts when it is less than the list price, therefore stopping an incorrect price being lodged. …
put this in your form tag target="_blank" That should do it
you will need to add a text box on the page, then add the variable to your processing page, and add it to the sql statement. eg, add this line to the form page: <input type="text" name="delTime" value=""> Then add this line to the processing page, providing that it is …
what do you mean all text. could be a little clearer. its written mostly in javascript any way. could be written in php and have it writing its own script everytime as a security type deal. who knows, but could you be a little clearer with your question
Hi all, pretty new to sql. have made code already for showing, adding and deleting data from database but can't seem to make the update work. any help is much appreciated. here's what I have: [CODE]<html><body><form action="update.php" method="post"> <label>Person ID:<br></label> <input type="text" name="personID" size="40" value="" maxlength="150" /> <label>Customer Name:<br></label> <input …
The End.
gotboots