Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #2K
~6K People Reached
Favorite Forums
Favorite Tags
php x 31

11 Posted Topics

Member Avatar for dan4domination

Might be overly complex os_dev. I've got some easy login script. uses includes -etc.. less variables. Session should always be at the top - no whitespace. thought some 'if isset and so on could smooth things up' Nice work though. I'll be coming back to this one :^)

Member Avatar for Ezzaral
0
833
Member Avatar for harry_watson

Hello. OK won't post my messy code just yet, but the Problem; A user [B]can[/B] UPDATE a text field consisting of a headline and a text field. This is posted into a 'text div' below. when logged out, the form and editable fuctions vanish and we have a normal web …

Member Avatar for harry_watson
0
129
Member Avatar for xuexue

As it happens I'm using this to swap fields...[CODE]<form action="<?php $PHP_SELF;?>" method="post"><input type="submit" value="Create new text field" name="change_text" id="change_text"></form> <?php if ($logged_in == 'true') { if (isset($_POST['change_text'])){ if (!isset($_POST['submit1'])){?>[/CODE] and then this...[CODE]if (isset($_POST['submit1'])){echo $text2, $headline2;} if ($_POST['headline']){ if ($_POST['text']){ include("admin/create_text.php");[/CODE] Notice the initial if ! is set post - very …

Member Avatar for xuexue
0
104
Member Avatar for prem2

The 'key' is there to 'unlock' all other fields in the table. It 'auto increments' with a 'unique id' so that records are kept separate and tidy and so that you can access and refer to and update specific records.

Member Avatar for harry_watson
0
85
Member Avatar for rajeesh_rsn

I thought that.....[CODE]session_start(); [/CODE] Has to be at the very top of every page... or have a look at... [url]http://php.net/manual/en/function.session-start.php[/url] so this....[CODE]session_start(); echo $_SESSION['uname']; echo "<br/><a href='three.php'>CLICK</a>";[/CODE] should come before this.... [CODE]$nowGmDate = gmdate('r'); header("Last-Modified: ".$nowGmDate); // Right now header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Pragma: no-cache"); header("Cache-Control: no-cache"); …

Member Avatar for harry_watson
0
117
Member Avatar for mangel.murti

Also you could put this in the head section of your html page[CODE]<script type="text/javascript" src="scripts/ajax.js"></script>[/CODE] Then make or use a 'scripts' folder. In the 'scripts' folder you'll need this file. Copy and paste the whole file and save it as above 'ajax.js'. [CODE]var xmlhttp; function loadXMLDoc(url) { xmlhttp=null; if (window.XMLHttpRequest) …

Member Avatar for harry_watson
0
65
Member Avatar for jmercola
Member Avatar for vaultdweller123
0
139
Member Avatar for harry_watson

Okay I have a textarea that edits a text div. When the user edits the text and submits, paragraphs and line breaks are passed to the div. [B]i.e[/B] (not the browser)[B]text div[/B] after submit.... [I]'WARNING - This email and any attachments may be private & confidential. If received in error, …

Member Avatar for harry_watson
0
4K
Member Avatar for ElegantElephant

Have you got some tables and fields set up in mysql? With date fields? [CODE] $from_date= date(Y,M,D)//or whatever php date function u decide. $to_date = date(Y,M,D)//or whatever php date, could be today for example. $from_date = $_REQUEST['day_one']; $to_date = $_REQUEST['today'];[/CODE] then you SELECT day one < = $from_date and > …

Member Avatar for saiprem
0
87
Member Avatar for takeshi
Member Avatar for harry_watson
0
157
Member Avatar for tellos

Or This code works well with lots of conditions to meet [CODE]$sql = "SELECT * FROM artists_details LEFT JOIN attendance ON attendance.record_id AND attendance.visit_date >= '".$from_date."' AND attendance.visit_date <= '".$to_date."' WHERE artists_details.youth='youth' AND attendance.artist_id=artists_details.artist_id AND artists_details.outreach='outreach'"; //echo $sql; $result4=mysql_query($sql); $num_rows_y = mysql_num_rows($result4);[/CODE]

Member Avatar for harry_watson
0
115

The End.