|
|
Awesome thanks,
So how would I go about allowing one of the columns to be edited? How do i allow the permissions?
Thanks again
Dan
|
|
|
|
|
offroaderdan wrote: So how would I go about allowing one of the columns to be edited? How do i allow the permissions?
You'll also need a webserver. Think IIS if you're on Windows, Apache if you're on Linux. Next, you'd need to test if PHP is configured correctly to work with your database-setup.
W3Schools would be a good place to start, they've got examples on interacting with a database to get you started[^] I are Troll
|
|
|
|
|
it seems you want to use database and tables, first of all you have to install a server to that particular system. As you are newbie download easyphp or wampserver, install on that system. Dont worry about individual install of apache or mysql. This software will do it for you. And then simply follow tutorial given on their sites.
|
|
|
|
|
WOW ,
I found these links brilliant
however i was using link 2
http://www.phpeasystep.com/phptu/6.html[^][^]
and have come across a few probems, i did exactly what the tutorial said. I then try and run the main_login.php in internet explorer, type in the name and password press login and it comes up with a pop up box saying do you want to open or save this file (check_login.php)????? i have already created this file exactly how it wanted?
Does anyone know why this is coming up with this popup and how do i solve this problem
Thanks
Dan
ps i am learning a lot about php keep up the good work 
|
|
|
|
|
You are trying to run the file using the web server aren't you?
That is, the URL must start with http:// or https:// and not file:// - the PHP file has to be run through the web server.
If you are running through the web server and still getting this, the PHP handler might be installed incorrectly, or the script is setting the wrong content-type header.
|
|
|
|
|
you can destroy session always..

|
|
|
|
|
Does anyone know how to make this site display in English?
http://www.turbolinux.com/[^]
Browser's language setting makes no difference. It seems to use my IP address to decide what language I should understand (and I don't want to use an anonymous proxy).
|
|
|
|
|
I want to know too....
When pig can fly~~
|
|
|
|
|
I found this on Wikipedia "Turbolinux is a Japanese Linux distribution targeting Asian users.". It would appear they do not offer an English version, probably as they are not targeting English speakers.
txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Ugh. How infuriating.
Thanks! I didn't realize it had become a Japanese-only OS.
|
|
|
|
|
I am trying to find a project management system written in PHP, but nothing I find suits my needs. Everything I have found is either not written in php, is ancient, broken, or just downright sucks. PhProjekt came really close to being perfect, but it's buggy as hell. Basically what I am looking for is something that will:
- Install and run like Joomla or Drupal
- Allow creation/editing of projects (like name, description, alotted time, etc.)
- Comment system for back and forth collaboration between beta testers as to what bugs they found, etc.
And optionally but preferably:
- Multi user support
- Parent categories for projects
- File upload along with creation of project (i.e. uploading a beta install file)
I really don't want to and dont have the time to write something from scratch. Does anyone know anything that fits my needs? Any suggestions would be greatly appreciated.Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
I'm not familiar with many CMS systems, but this[^] site provides good comparisons of many CMS systems.
Not sure if that will help or not.If at first you don't succeed, you're not Chuck Norris.
|
|
|
|
|
Hello,
I have a small project to make a script to check an email account, for an email from a specific source and then check that email for a file attachment. This file is a csv file. Using php's imap functions I cna login in find the correct email. When I go to parse the attachment (if one is found) I can print_r the contents and get readable content using the base64_decode. I have also noticed these 3 characters at the front of the file

If i was to take a guess, these are the from the header section of the file. the rest of the file displays properly with the first line containg the column headers in quotes and seperate by commas. The following lines are fine.
I have based my scripts function based on this article.
http://www.electrictoolbox.com/extract-attachments-email-php-imap/[^] and can not find mention of these characters...
and ideas?
|
|
|
|
|
|
Graham,
Thanks for the info. I will be sure to strip it out as I process these files.
All the best!
|
|
|
|
|
hi all
i try to develope feedback system by php and i make two pages the first is feedback.php and this is it's code
<br />
<form name="feedback" method="post" action="FeedBackCheck.php"><br />
<table width="550" border="0" align="center" cellpadding="1" cellspacing="2"><br />
<tr><br />
<td colspan="2"><div align="center"> </div></td><br />
</tr><br />
<tr><br />
<td width="114"> </td><br />
<td width="426"> </td><br />
</tr><br />
<tr><br />
<td>Name</td><br />
<td><label><br />
<input name="txtName" type="text" id="txtName" tabindex="0" size="54" maxlength="254" /><br />
</label></td><br />
</tr><br />
<tr><br />
<td>Subject</td><br />
<td><label><br />
<input name="txtSubject" type="text" id="txtSubject" tabindex="1" size="54" maxlength="254" /><br />
</label></td><br />
</tr><br />
<tr><br />
<td>Email</td><br />
<td><label><br />
<input name="txtEmail" type="text" id="txtEmail" tabindex="2" size="54" maxlength="254" /><br />
</label></td><br />
</tr><br />
<tr><br />
<td>Message</td><br />
<td><label><br />
<textarea name="txtMessage" cols="41" rows="7" id="EDITOR" tabindex="3"></textarea><br />
</label></td><br />
</tr><br />
<tr><br />
<td colspan="2"><label><br />
<div align="center"><br />
<input name="btnSend" type="submit" id="btnSend" tabindex="4" value="send" /><br />
</div><br />
</label></td><br />
</tr><br />
</table><br />
</form><br />
and the second page name FeedBackCheck.php and it's code
<br />
$txtName = trim($_POST['txtName']);<br />
$txtSubject = trim($_POST['txtSubject']);<br />
$txtEmail = trim($_POST['txtEmail']);<br />
$txtMessage = trim($_POST["txtMessage"]);<br />
$txtDate = date('d-m-Y');<br />
<br />
if ($btnSend == "send")<br />
{ <br />
$to = "jameil_hamzh@yahoo.com";<br />
$insertFeedBack = "INSERT INTO FeedBack(FD_Name,FD_Subject,FD_Email,FD_Message,FD_Date) VALUES ('$txtName','$txtSubject','$txtEmail','$txtMessage','$txtDate')";<br />
<br />
$resultInsert = mysql_query($insertFeedBack);<br />
<br />
if ($resultInsert)<br />
{<br />
echo ("<b><div class='ok' align='center' style='color:#0099CC'>the data send to us seccessfully</div>");<br />
}<br />
else<br />
{<br />
echo ("<b><br><center><div class='error' align='center' style='color:#990000'>error .. there is an error .. try later</div></center>");<br />
}<br />
<br />
<br />
@mail($to,$txtSubject,$txtMessage,'From:'.$txtEmail);<br />
}<br />
else<br />
{<br />
echo ("<div class='error' style='color:red' align='center'>error .. you don't fill all fields</div>");<br />
echo "<meta http-equiv='refresh' content=5;url='FeedBack.php'>";<br />
}
and when i press the button send this message displayed to me always error .. you don't fill all fields-*-*-*-*-*-*-*-*-*
To Be Or Not To Be
(KARFER)
-*-*-*-*-*-*-*-*-*
|
|
|
|
|
because you are trying to get a value from a submit button.
to see what data has been sent from a form try this:
<?php
if (!empty($_POST)){
foreach ($_POST as $key=>$value){
$info .= $key.": ".$value."<br />";
}
echo $info;
} else {
echo "no data";
}
?>
|
|
|
|
|
thanks a lot Mr.Marc Firth
it's working now
thank you again
Regrads
KARFER-*-*-*-*-*-*-*-*-*
To Be Or Not To Be
(KARFER)
-*-*-*-*-*-*-*-*-*
|
|
|
|
|
I would not process a post like this....I would suspect an exploit is opened this way.
Instead just change the $_POST to $_POST['form_elm_name'] where form_elm_name = the value of the forms name attribute.
also do not trust the users input to be harmless. If the expected value of a form is a age, then check that the post only has numbers in it
php is_numeric($_POST['form_elm_name'];
if it is going to be text only then I usually include a custom function to remove all non-characters from the input. This funct only permits lowercase letters a dash and a space as valid. It alse swaps all spaces for a dash.
function clean_input($input)
{
$valid = array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','0','1','2','3','4','5','6','7','8','9','-',' ');
$cnt = strlen($input);
$input = strtolower($input);
$output='';
for($i=0;$i<$cnt;$i++)
{
if(in_array($input[$i],$valid))
{
if($input[$i]==' ')
{
$output.='-';
}
else
{
$output.=$input[$i];
}
}
}
return $output;
}
|
|
|
|
|
how to unzip files on unix that are zipped on windows
|
|
|
|
|
Install unzip
# apt-get install unzip Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
We have a in-house channels of Movies. We want to play ads in that channel. The ads can be a:
1) standalone ad
2) A strip (like news headlines in various channels)
3) An L-shaped ad (like shown in some sports channels)
these ads will be in swf/avi/wmv/mp4 etc formats.
In addition, we want to have a scheduler for playing movies(basically a queue)/ads(managed on timely based)/Logo(for the in-house channel i.e an image or an animated image or video format).
How to build a player with these requirements for linux?
looking forward for your kind response... 
|
|
|
|
|
Hi all,
I have inserted an image in the MySQL database with the coloum name image and datatype as longblog.
But now the problem is i want to display it on the form using html control in the php.
How can i do it ?
Thanks in advance.
|
|
|
|
|
You need to point your img tags at a script that loads the image from the database, something like:
<img src="image.php?id=1" alt="Image 1" />
Then image.php should load the image from the database, add the Content-type: header and output the image data.
|
|
|
|