Jump to content

corbin

Staff Alumni
  • Posts

    8,102
  • Joined

  • Last visited

Everything posted by corbin

  1. Umm what info are you tryin to display and how is it stored in your database?
  2. Its making the file then remaking the same file... So its just making the second file over the first one... Try making $filename2 = "test.JPG"; And see if test.jpg appears...
  3. http://corecomputers.org/images/banner.swf  Direct linking works fine for me but it will not load on the page... Meaning something is wrong in the coding...
  4. $filename = "../../clients/$bname/images/". $_FILES['image']['name']; $filename2 = "../../clients/$bname/images/" . $_FILES['image']['name']; filename2 is the same as filename so its just over writing it...
  5. You dont have the flash plugin for FireFox...  Also, FireFox has issues with the syntax of flash tags sometimes so that could be another part of the issue...
  6. Umm so what exactly are you trying to accomplish?  Like where you can go to page.php?user=<user> and it displays theyre user info?  It would help if you clarified what youre trying to do... (PS In response to your sig... I started PHP when I was about 12.5 :D)
  7. <? $pattern = "/yourdomain.com/i"; if (!preg_match($domain, $_SERVER['HTTP_REFERER'])) { die("Please visit the page thru <a href=\"http://yourdomain.com/page.ext\">Here</a>"); } ?> Should work...
  8. <form> <input type="radio" onclick="javascript: window.location('a.php');"> </form> Should work... I tend to avoid radio boxes and JS though so Im not sure...
  9. Image shack is a dynamic page with the content served based on the GET id of the image... Pretty much have the upload script upload it somewhere, and have it tell the user the url of the page.php?image_id=<image_id>.  Then have page.php include some stuff and what not based on the image_id...
  10. Watch out for sql injection... Might want to make it $type_chosen = addslashes($type_chosen); Or someone could change the sql query...
  11. [quote] u see!!! THE 68 MESSES UP! The text wraps right only if I dont spam the lowercase L... if I do that then it wraps early because the L width is smaller and when it gets to 68 its only like halfway across table.  And the CSS only works in INTERNET EXPLORER... so I need another way to do this.  Thanks.. please help somebudy! [/quote] Actually ive heard that firefox technically has better CSS support than IE... and I'm fairly sure any recent browser supports CSS...
  12. .1 and .4 isnt going to be a substantial difference anyways...
  13. Are you calling the function previous to the require_once statement?
  14. Instant online credit card would be nice.  Also sorry i didnt clarify some things... their menu will hardly ever change, so admin side just needs to see what people ordered, menu changing doesnt matter.  Item wise there will probably be 20 items total, but with things like no mustard, white bread... so on... So i was thinking just have the item and allow them to manually put in stuff like "no salt, american chese, mustard."  when they add it to their cart... Then just check out the cart thru the credit card script... Which im not sure how those generally work, so I dont know how to handle that yet... Im working on building a shopping cart type thing at the moment...
  15. Well I'm helping someone I know out with a website...  Its a very unique situation where their resturaunt is right beside a school and they will be delievering food there once a day... So it would be ideal for staff of the school to be able to order their food online so they can just do it from their classrooms... I can figure out the credit card processing and what not but Im having trouble with how to structure everything... I'm actually sort of leaning towards a shopping cart process where they can just look at an online menu and click add to cart on what ever they want... So is there a better way to do this, and should I write the cart using sessions and a DB?  Gah if someone could just help me think of how to structure everything it would be a huge help...
  16. What i do is if i run into any errors i store them in a $error variable via .= and if there were any errors echo $error and then have the form have the values they just submitted in it by echo the post variables like value="<?=$_POST['name'];?>" That way it doesnt validate but they dont have to retype everything...
  17. Hehe yeah forgot it starts with 0...
  18. Well the basic gist of mysql_fetch_array or mysql_fetch_assoc is that it returns an array... If a table had 2 colums, first and last, and 2 rows, Bob | Smith, and Fred | Jackson, mysql_fetch array would return an array that would have first storing bob as key 0 and smith as key 1 and last storing Smith and Jackson... Gah i just read what i typed and it didnt make sense... Lol if that didnt make sense just ignore it... Anyways mysql_fetch_array returns an array of the database values... With the column as the key and the row as the value... [code] <font class='bodytext'><a href='contact.php'>Click here to contact $name</a> [/code] I dont see where $name is set so I'm assuming that your trying to pull name from the database... But instead of setting $name it sets $row['name'] because of the way it returns the array.  If you had [code] while($monkey = mysql_fetch.... [/code] You would use $monkey['name'] If I remember right you can add extract($row); under the while statement and it will let you use variables such as name and so on... Only problem with that is that variables can clash and that can cause issues so I just always keep them in the array...
  19. $name and $url and any other variables pulled thru $row = mysql_fetch_array($result))  should be in the format of $row['column_name'] such as $row['name']
  20. Dang, wow it looks wierd now... I could have sworn it looked different a sec ago... Hmm oh well... anyways... http://img99.imageshack.us/img99/5239/screenhuntersub115za3.jpg http://img96.imageshack.us/img96/6018/screenhuntersub116ax1.jpg
  21. Hmmm never mind i figured it was more people than that... You should be fine that way...
  22. [quote author=Koobi link=topic=104339.msg416145#msg416145 date=1155647884] yeah i think sleeping is a waste of time too but a necessary waste of time, as humans :) i don't think you should break your sleep up the way you have. try and get one stretch of about 8 hours of sleep (the duration really depends on you). and when you're awake just concentrate on your PHP. get a little excercise if you can. that will improve your body's efficiency. work hard, play hard and sleep sound :) i used to have a sleeping problem - i could only fall asleep every other day or so...thank god it's disappeared. [/quote] Gah i wake up at about 10 in the summer and fall asleep about 6... Im just never tired till then... lol
  23. http://www.w3schools.com/browsers/browsers_stats.asp No one has posted in 3 days... But I figure thats what redarrow saw the JS stats on... Notice it says 90% have it on not off.
  24. Ummm i think your query is structured wrong... Can you post some code?
×
×
  • 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.