only one
-
Posts
437 -
Joined
-
Last visited
Never
Posts posted by only one
-
-
your gonna want header, meta only works after the page is shown, but php is read before anything is shown, thats why if you use a header it refreshes straight away
-
very simple, just select from all the different tables where the information is stored, and where their username is....
-
you dont make much sense
-
hes got an older version of php
try this:
<?php if (isset($_POST[submit])){ $recepient = "contact@mydomain.com"; $subject = "You have Guest! from mydomain.com"; $contents = "Name: " . $_POST['name'] . "\n\nCountry: " . $_POST['country'] . "\n\nCity: " . $_POST['city'] . "\n\nPhone: " . $_POST['phone'] . "\n\nEmail: " . $_POST['email'] . "\n\nHotel: " . $_POST['hotel'] . "\n\nInquiry: " . $_POST['enquiry']; } $headers = "Reply-to: pleasurephil@yahoo.com\n"; mail($recepient, $subject, $contents, "From: contact@mydomain.com"); ?>
-
mysql_query("inset into table name ('the feild names') values ('the things to be insteted')");
bold bits have to be edited
-
you need to do
yyyymmdd
so you get a number that is always greater than the one before... never less
then minus the day before and return your answer...
-
it counts how many rows has that username
then if there more than 0 rows it doesnt let it through....
-
javascript....
-
for registering????
<?php $query= mysql_query("SELECT user FROM users WHERE user='$user'"); $check = mysql_num_rows($query); if ($check>0) { echo "already in use"; }else{ lets the through... } ?>
-
im stupid
had a typo in my echo
-
does anyone know how to get php codes from the database to work on a page
like say page=1
it selects from the tabel where id=$page....
now i try echoing the feild with the page but it doesnt work
-
if(!$dialogbox){ echo "please select box"; }else{ whatever you want ;}
-
$player= mysql_query("SELECT * FROM km_users WHERE ID='$id'");
while ($userstats2 = mysql_fetch_array($info)) {
just use a while loop...
-
yes u have
-
-
all made
my old one... might still have my stuff
<?php session_start(); //path from folder of file $path = "uploads/"; if (!isset($HTTP_POST_FILES['userfile'])){ echo " <FORM ENCTYPE=multipart/form-data ACTION='' METHOD=POST> <p>The file:<br> <INPUT TYPE=file NAME=userfile style='border: 1px solid #222222; background-color: #111111; color: #888888'> </p> <p> <INPUT TYPE=submit VALUE=Upload style='border: 1px solid #222222; background-color: #111111; color: #888888'> </p> </FORM> "; }else{ if (is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'])) { if (($HTTP_POST_FILES['userfile']['type']=="image/gif") || ($HTTP_POST_FILES['userfile']['type']=="image/pjpeg") || ($HTTP_POST_FILES['userfile']['type']=="image/jpeg") || ($HTTP_POST_FILES['userfile']['type']=="image/png")) { if (file_exists($path . $HTTP_POST_FILES['userfile']['name'])) { echo "<font color=red>Error</font>! The file already exists, try calling your file a different name.<br><FORM ENCTYPE=multipart/form-data ACTION='' METHOD=POST> <p>The file:<br> <INPUT TYPE=file NAME=userfile style='border: 1px solid #222222; background-color: #111111; color: #888888'> </p> <p> <INPUT TYPE=submit VALUE=Upload style='border: 1px solid #222222; background-color: #111111; color: #888888'> </p> </FORM>"; }else{ $res = copy($HTTP_POST_FILES['userfile']['tmp_name'], $path . $HTTP_POST_FILES['userfile']['name']); if (!$res) { echo "upload failed!<br>"; exit; } else { echo "upload sucessful<br><br>"; } echo "File Name: ".$HTTP_POST_FILES['userfile']['name']."<br>"; echo "File Path: <a href=uploads/".$HTTP_POST_FILES['userfile']['name']." TARGET=_BLANK>uploads/".$HTTP_POST_FILES['userfile']['name']."</a><br>"; echo "File Size: ".$HTTP_POST_FILES['userfile']['size']." bytes<br>"; echo "File Type: ".$HTTP_POST_FILES['userfile']['type']."<br>"; echo "<img src=uploads/".$HTTP_POST_FILES['userfile']['name']."><br>"; }}}} ?>
-
it should work no matter what, its still taking the info of their comp...
-
ich kanst kliene duetsch..
u moeten het in een mysql database zetten(my attempt at german)
jij moet het in een mysql database zetten(mijn nederlands)
you have to put it in a mysql databse(my english )
also comes in french and spannish....
-
try putting a few } at the end of the page, you havent closed all your functions
-
try this:
$query = "INSERT INTO mailers (id) VALUES (0)"; mysql_query($query);
-
$ok = @mysql_query($sql);
$ok2 = @mysql_query($sql2);
if (!$ok2|!$ok) {
exit('database error: ' . mysql_error());
}else{
echo"hack added";
}
$hid = mysql_insert_id();
-
hm, set the pdf in an iframe...
<iframe name=pdf src=file.pdf>....
-
if you have it in a table check the td
<td valign=top>...
-
[SOLVED] might be more javascript but no ones ever on that board
in PHP Coding Help
Posted
im creating a new fishing skill on my website, i would like a javascript count down
im planing to make a function so it takes longer for a person to cast out their line etc depending on the level, im pretty new to javascript
anyone got any ideas?