-
Posts
812 -
Joined
-
Last visited
Everything posted by techker
-
you know what i think i know,i got an email last week from my hosting company saying that they will put register globals off. can it be that?i will try another way and see.
-
hmm Parse error: syntax error, unexpected T_STRING in /home/canadaau/public_html/ADMIN/pics/add2.php on line 28 it is that same line..
-
no thai is the messt up part..it redirects me when afther it is done like usal?
-
hey guythis script was working fine yesturday and now..nothing.. it insert data from a form in my mysql db can sombody see if they can see a mistake in here..cause i played arround with it..lol <?php $target = "./"; $target2= "./"; $target3= "./"; $target = $target . basename( $_FILES['photo']['name']); $target2 = $target2 . basename( $_FILES['thumb']['name']); $target3 = $target3 . basename( $_FILES['pics']['name']); $target4 = $target4 . basename( $_FILES['pics2']['name']); $name=$_POST['name']; $email=$_POST['email']; $phone=$_POST['phone']; $pic=($_FILES['photo']['name']); $thumb=($_FILES['thumb']['name']); $num=$_POST['numero']; $desc=$_POST['description']; $pics=($_FILES['pics']['name']); $pics2=($_FILES['pics2']['name']); $kilo=$_POST['kilometers']; $year=$_POST['year']; // Connects to your Database mysql_connect("localhost", "canadaau_", "") or die(mysql_error()) ; mysql_select_db("canadaau_") or die(mysql_error()) ; //Writes the information to the database mysql_query("INSERT INTO `employees` VALUES ('$name', '$email', '$phone', '$pic','$num','$desc','$thumb','$pics','$pics2','$kilo','$year')") ; if(move_uploaded_file($_FILES['photo']['tmp_name'], $target)) { if(move_uploaded_file($_FILES['thumb']['tmp_name'], $target2)) { if(move_uploaded_file($_FILES['pics']['tmp_name'], $target3)) { if(move_uploaded_file($_FILES['pics2']['tmp_name'], $target4)) { echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded, and your information has been added to the directory"; echo "You'll be redirected to Home Page after (4) Seconds"; echo "<meta http-equiv=Refresh content=4;url=/ADMIN/index_cpanel.php>"; } else { echo "Sorry, there was a problem uploading your file."; } } } } ?>
-
hey guy's im doing a project for my buddy.he is a trainer at my gym and i want to make him a web site with an admin panel for him o do his workout sheets. it is bassicly a grid and a tone of clipart.every customer is diffrent for exercies.. so the grid stays the same and the box for the image is going to be the same size as the cliparts. http://www.exrx.net/Store/Other/PhysigrapheSamples.html so it is to insert the image in the rigth box.or associate the image with the field. i have to choices ajax or php?right the drag and drop from ajax..but i think php would be easyer..i just need guidance in the wright direction..thx
-
supprising cause this comes out of a book?? is this cause of the version?
-
standard Quotes where are they?i was saying maybe this( ,)
-
SQL query: CREATE TABLE WROX_SHOP_INVENTORY( ITEM_ID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT , ITEM_NAME VARCHAR( 100 ) NOT NULL , ITEM_DESCRIPTION TEXT DEFAULT, PRICE DOUBLE( 5, 2 ) NOT NULL , ITEM_IMAGE VARCHAR( 255 ) NOT NULL , CATEGORY_ID INTEGER UNSIGNED NOT NULL , PRIMARY KEY ( ITEM_ID ) , FOREIGN KEY ( CATEGORY_ID ) REFERENCES WROX_SHOP_CATEGORY( CATEGORY_ID ) ON DELETE CASCADE ) ENGINE = InnoDB DEFAULT CHARACTER SET latin1 COLLATE latin1_general_cs_AUTO_INCREMENT =0 MySQL said: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' PRICE DOUBLE(5,2) NOT NULL, ITEM_IMAGE VARCHAR(255) NOT NULL, CATEGORY' at line 4 if i remove the''
-
hey guys i got this from a book and it keeps on givving me erreurs on line 4 CREATE TABLE WROX_SHOP_INVENTORY ( ITEM_ID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, ITEM_NAME VARCHAR(100) NOT NULL, ITEM_DESCRIPTION TEXT DEFAULT ‘’, PRICE DOUBLE(5,2) NOT NULL, ITEM_IMAGE VARCHAR(255) NOT NULL, CATEGORY_ID INTEGER UNSIGNED NOT NULL, PRIMARY KEY (ITEM_ID), FOREIGN KEY (CATEGORY_ID) REFERENCES WROX_SHOP_CATEGORY(CATEGORY_ID) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARACTER SET latin1 COLLATE latin1_general_cs_AUTO_INCREMENT=0
-
ok cool thx for the help.
-
cool if i insert the java in a form that inserts in a mysql for will it work?
-
hey guys is it possible to get this without using ruby on rails? http://datetime.toolbocks.com/
-
how do you call that bar?
-
hey guys i want to put an ajax tooltip(pop up box on mouse over)but i have already a mouse over on my image? like the tooltip goes like this <a href="#" onmouseover="ajax_showTooltip('demo-pages/js-calendar.html',this);return false" onmouseout="ajax_hideTooltip()"></a> but my button mouse over is already in there?how can i include that code in this? <a href="http://www.link.php" target="_blank" onMouseOver="MM_swapImage('Image65','','images/web2_0_over_06.jpg',1)" onMouseOut="MM_swapImgRestore()">
-
wow..ok you lost me what do i do with that. but anyways i think im going to use google.thx
-
hey guys i need to do a web site that hase a kilometer calculator? like the guy puts montreal to toronto it egals 1200 kilometers.. does this exist already?if not is it doable?...lol
-
yes.it does not show anything.
-
could it be the limit 1.1 cause it grabs only the last query?
-
SELECT c.NoCommande AS NoCommande, d.Quantite AS Quantite, c.UName AS Usager, c.DateCommande AS Date, p.SkuFabriquant AS Sku, p.DescriptionCourte AS NomProduit FROM tblCommande AS c LEFT JOIN ( tblCommandeDetail AS d CROSS JOIN tblProduits AS p ) ON ( p.IDProduit = d.IDProduit AND d.NoCommande = c.NoCommande ) WHERE c.UName = '$USERNAME' ORDER BY Date LIMIT 1 , 1 "); it is there?
-
it was working perfectly.they only thing is when ia new user joined it mess t up my front page cause he had no orders in the catalogue.
-
i put it in the top ? error_reporting(E_ALL) ?> and it still gives me a blanc? i know the page is good cause i have an echo user name and i see it
-
were do i put that?