Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. <? header('Content-type: application/x-javascript'); print "alert('test');"; ?> function myJSFunc(){ } Do your regular js outside the php, just like HTML. Then link to the php file just like you would the JS file.
  2. You might have to go through all the tables and do the selects, then add up the results.
  3. Did you try SELECT count(*) AS theCount FROM * WHERE os = 'windows';
  4. Before you use explode, consider checking the length of the string, or if it even contains any ','
  5. It just doesn't belong here though, it's about CSS, so it belongs on the CSS forum. Whatever
  6. Ah, you also need to set display_errors to 1, using the ini_set function. Try that next time too.
  7. http://us2.php.net/manual/en/function.mysql-fetch-assoc.php http://us2.php.net/manual/en/function.mysql-fetch-array.php
  8. So the next step is to comment out all the code, and slowly uncomment sections. You'll see the code working. When you get the blank page again, you've got the line that's causing the problem.
  9. I POSTED about this on the CSS forum. I find it kind of creepy that you're reposting my blog entries over here instead of on the existing thread, but okay. I consider my time to be valuable too, but I also consider learning new approaches and new design techniques a valuable exercise. I am all for tables for tabular data. But a layout is NOT tabular data, and when I want my content to be structured properly in my HTML files, divs are the way to go here. The faux column approach works perfectly for this, and the HTML markup (which is the part that matters for SEO) is cleaner than using a table. My CSS does not contain any IE-specific code or hacks. Again, the fact that you posted this here, addressing it to me, just creeps me out...
  10. PHP runs server-side. The information you want is on the client-side. You'd have to have the PHP code run ON the client computer. The PC. Not just access the PHP in a browser, but use the PC as the server, if it could be done.
  11. http://www.google.com/search?q=mod_rewrite
  12. put this at the top error_reporting(E_ALL);
  13. make the name of the dropdown something like option_(id here). Then use substr() to remove the option_ part, and you have your ID in the processing part.
  14. "I never could figure out how to isolate only the records I chose." WHERE id = '$id' What are you stuck on?
  15. They changed this between 4 & 5, which version are you using, and which are you reading the docs for?
  16. Yes. IE6, Fx and other browsers report other types. jpg can also be image/jpg or image/jpeg
  17. $result = mysql_query( $query ) or die(mysql_error()); will give you an error if it doesn't work.
  18. Read the stickied topic about header errors. This has nothing to do with permissions or Windows.
  19. When it sends the link, have it also send their userID, so it's like http://mysite.com/ref=1234 Then when they sign up check if(isset($_GET['ref'])){ $ref = $_GET['ref']; } Then you know the user's id who referred them.
  20. Others: http://spectorbrain.com/wp-content/uploads/2006/06/design-chart.jpg http://www.nerdmeyr.com/images/blog/03_10_2006_1.jpg
  21. if it's mysql, use $id = mysql_insert_id();
  22. ted_chou12 made an array of all of them, look through his posts
  23. With non-arrays and objects, you can make them constants. Otherwise, you'll have to use the above suggestions
  24. You have to make the file a php file and use the header to specify that it is javascript <? header('Content-type: application/x-javascript'); print "alert('test');"; ?> That should work.
×
×
  • 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.