Jump to content

techker

Members
  • Posts

    812
  • Joined

  • Last visited

Everything posted by techker

  1. 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.
  2. 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..
  3. no thai is the messt up part..it redirects me when afther it is done like usal?
  4. 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."; } } } } ?>
  5. 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
  6. supprising cause this comes out of a book?? is this cause of the version?
  7. standard Quotes where are they?i was saying maybe this( ,)
  8. 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''
  9. 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
  10. ok cool thx for the help.
  11. cool if i insert the java in a form that inserts in a mysql for will it work?
  12. hey guys is it possible to get this without using ruby on rails? http://datetime.toolbocks.com/
  13. 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()">
  14. wow..ok you lost me what do i do with that. but anyways i think im going to use google.thx
  15. 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
  16. yes.it does not show anything.
  17. could it be the limit 1.1 cause it grabs only the last query?
  18. 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?
  19. 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.
  20. 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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.