Jump to content

MDanz

Members
  • Posts

    728
  • Joined

  • Last visited

Everything posted by MDanz

  1. ok i changed alot and i now it says the user doesn't exist and it does...
  2. k i echoed those out an dbusername and dbpassword are blank.. how do i set this, i thought i did the mysql correct..
  3. It says the username/password combination is incorrect?? :'(
  4. Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /home/ustackc1/public_html/search.php on line 69 I'm getting a parse error.. Its something to do with the image line of code in the echo.. i want the img src to display the image(the hyperlink is in the database).. how do i do this? i think i done the img src wrong
  5. i'll just look at an avatar tutorial and implement it.. thx anyway
  6. No i'm not storing the links. In the search results, i want the images to be displayed, not the link. I saved the actual image to mysql but its displaying it in BLOB not the image...
  7. My script is fine.. I think its still showing the BLOB format.. because i saved the image as a BLOB in MYSQL... So the website is displaying the image as a BLOB. Any idea how to convert BLOB back to image to display on webpage?.. lol i thought it did it automatically...
  8. when i get results this shows up any idea why... the hyperlink and name of the site are working but the image is not showing up? any idea why its displaying the image like this?
  9. didn't i do that with INSERT... how do i do that?
  10. it says this 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 ''Upload' ('hyperlink','currency','name','info','keywords') VALUES ('hyperlink','' at line 1
  11. thx i did that now it says "no image selected/uploaded" and i checked the database it has uploaded the image but it hasn't uploaded the details written in the text fields? it displays no image selected/uploaded but it has uploaded an image but it hasn't uploaded the details.. here is the upload.php any ideas?
  12. Parse error: syntax error, unexpected $end in /home/ustackc1/public_html/insert.php on line 57 Heres my code.. can't figure it out
  13. thx alot.. i'll try it out
  14. hi ok, i have a page upload.php and on that page originally it was just an image upload page. i have now added the text fields(hyperlink, currency, info, name and keywords). The code i posted is insert.php, which inserts the data from upload.php into mysql. So far it only does image upload. I need to know how to get the new text fields added to also insert into the database. happens in this part of the code you can just do anyname as an example for textfields
  15. ok i did a php tutorial for image upload but i need more than an image uploaded. In the databse i have these fields. Image, hyperlink, currency, name, info, ID, keywords. Can i have help on inserting these into my database from the upload form. Image is already done, how do i add the other 4(hyperlink, currency, info, name and keywords).. I've set them up in upload as text fields. Just how do i add them to this code. So when i submit they all go as one entry
  16. Ok i've learnt how to store images into a database. What i missed out was submitting a hyperlink with that image. So i've created a hyperlink text field rite next to my browse. here is the php for insert. where do i add to assign a hyperlink? I just made a field in the database known as hyperlink. So the image also has a hyperlink with it. How do i use the submit button to insert it with the image. heres the form with the submit button I've used Link as a textfield for typing in the hyperlink. also what would be the right field type/attributes?.... text?
  17. Hello, I just want a brief understanding on how to do this. I have already done the upload image php and it works, they are stored in a mySQL database. Now how do i apply a search engine and the results(image) are displayed in a table, one image per cell? I want like a table slide show.. say 30 thumbnail images. I click the next button and the table repopulates with the 2nd page of 30 other thumbnail images... basically like google images. Just some help..
  18. this is my second day on php.. i'm not good at it yet. I was following a tutorial on youtube and in comment some people have the same problem.. whats the best way to alter it just to check is password and username are correct?
  19. It keeps saying incorrect password.. only time it said welcome is when i deleted the echo "incorrect password" ;
  20. honestly i don't understand what you mean... do you mean it $username should be different to the one in brackets?
×
×
  • 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.