Search:

Type: Posts; User: kows

Page 1 of 13 1 2 3 4

Search: Search took 0.40 seconds.

  1. Replies
    12
    Views
    1,427

    Re: strange things

    Basically, musicalbumtracks doesn't have the right records. I'd suggest posting some of the data from that table (important fields are musicid and position), as well as the corresponding record from...
  2. Replies
    6
    Views
    914

    Re: CMS Control Member Ability

    I don't think there's any need to have a table for exchanges/returns/deliveries.

    Yes, you'd need to add those where clauses and a join to the ProductsPermissions table whenever you're doing...
  3. Replies
    6
    Views
    914

    Re: CMS Control Member Ability

    Yes, that's what I was suggesting. Otherwise, you'd need a new look-up table for every single type of form you'd have: products, orders, etc. This is not necessarily a bad thing, it's just not as...
  4. Replies
    2
    Views
    2,678

    Re: Finding record in array

    Well, this sure makes more sense than that other post I replied to!

    $_POST['formTeams'] is a form array, so printing $aTeams will always return the text "Array." PHP can't print out an array...
  5. Replies
    6
    Views
    914

    Re: CMS Control Member Ability

    Well, I guess the easiest way to do this is to have a look up table that stores permissions for each user and form. This is assuming that your forms are stored in the database along with your users....
  6. Replies
    1
    Views
    637

    Re: not echoing drop menu selection

    The code you posted makes very little sense.

    At the top of your code, $select is never defined. So, $select will never be set to $_GET['select'], which is the value you actually want.

    At the...
  7. Replies
    8
    Views
    2,461

    Re: Fill textbox from query page

    Your admin_getprice script has a syntax error (which was my fault, but I did warn you!). Missing a semi-colon on this line:

    $error = "The item requested could not be found"

    This looks like the...
  8. Replies
    8
    Views
    2,461

    Re: Fill textbox from query page

    Actually, jQuery wouldn't remove most of what I added (which you quoted), but would remove the need for you to create an XMLHTTPRequest manually and then interact with it directly. You could continue...
  9. Replies
    8
    Views
    2,461

    Re: Fill textbox from query page

    First of all, you need to understand that these scripts are completely separate. Once a PHP script finishes executing, it has absolutely finished executing. None of those variables exist anymore. So,...
  10. Replies
    5
    Views
    1,556

    Re: Dependent Dropdown

    Now, do it with AJAX instead. ;)
  11. Re: How to select all the text in a Textbox in JQuery

    If the TextBox you're creating is actually created after the page has been loaded, then this won't work just because the focus event you're creating in JavaScript is created when the page loads. Any...
  12. Replies
    9
    Views
    1,363

    Re: Plotting a quick User Interface to code php

    It's hard to say what the "right way" to go is. That's really just preference.

    If you prefer to use FrontPage, or any other WYSIWYG editor for that matter, to create your HTML files, then by all...
  13. Replies
    4
    Views
    755

    Re: [RESOLVED] What does "=>" do ?

    It's not specifically used for associative arrays, but simply for describing a key (or index) and value pair. It's also used in the foreach statement. Here are some examples:


    // Associative...
  14. Thread: system commands

    by kows
    Replies
    10
    Views
    1,348

    Re: system commands

    Now I'd like to know what make-website-kitties.js does!
  15. Thread: system commands

    by kows
    Replies
    10
    Views
    1,348

    Re: system commands

    Well, can it?
  16. Thread: system commands

    by kows
    Replies
    10
    Views
    1,348

    Re: system commands

    No. As far as I know, you can't do that.
  17. Replies
    8
    Views
    1,725

    Re: Cannot redeclare function ?

    yes, you can set it up as a cron job. you just have to set up a cron job to run PHP's binary (php or php-cgi or whichever you prefer) and then point it toward your script. your host can give you help...
  18. Replies
    1
    Views
    718

    Re: Check a string for specific word ?

    I used a regular expression surrounded by word boundaries:


    <?php
    // Get search term
    $search = isset($_GET['search']) && !empty($_GET['search']) ? $_GET['search'] : "";

    // Set...
  19. Replies
    8
    Views
    1,725

    Re: Cannot redeclare function ?

    functions are stubs/templates of re-usable code. they must have a unique name. declaring a function with the function keyword does not call a function -- it creates it.

    functions have their own...
  20. Replies
    2
    Views
    748

    Re: Please help with SQL query

    .. it really seems like you keep asking the same question over and over. there are many MySQL date and time functions which do exactly what you want them to. but, the MySQL date format is YYYY-MM-DD,...
  21. Replies
    10
    Views
    1,629

    Re: Web conference software

    Well, the biggest reason is that the streamer would need some pretty decent bandwidth to be streaming to more than just a couple of people at once -- especially if you want high definition streams....
  22. Replies
    10
    Views
    1,629

    Re: Web conference software

    Well, the benefit of your system would be that your users will be watching from your website. You don't want your teachers (or whatever you want to call them) to have to stream to multiple people....
  23. Replies
    10
    Views
    1,629

    Re: Web conference software

    First things first: you're already requiring users to login to this thing using a social media identity -- why would they be required to enter some token to enter a webcam feed? That should be tied...
  24. Replies
    2
    Views
    789

    Re: checking for sessions

    When you output text to the browser, you send the headers you've created in your application so far. Once they've been sent, more cannot be sent. So, application logic that sends headers should be...
  25. Replies
    10
    Views
    1,358

    Re: parse error in php

    I edited my post; make sure you read it over!
  26. Replies
    10
    Views
    1,358

    Re: parse error in php

    Edit: Nevermind. New code not needed.

    You need to use concatenation on line 19 in your SQL.


    $result = mysql_query("SELECT * FROM login WHERE `username` = '$_POST["username"]' AND `password` =...
  27. Replies
    10
    Views
    1,358

    Re: parse error in php

    Read the error message: it has something to do with T_ELSE, which sounds like it has something to do with an "else" statement. Look at line 16: the error is around here.

    In red, on line 15, you...
  28. Thread: login using time

    by kows
    Replies
    7
    Views
    1,273

    Re: login using time

    I'm not sure what relevancy this has, but define() is a function in PHP used to define constants. You can read all about it on PHP.net.
  29. Thread: login using time

    by kows
    Replies
    7
    Views
    1,273

    Re: login using time

    I'm not sure what the confusion is. NEW_TIME_HERE is the new time that you want to store in the database. USER_ID_HERE is, obviously, the ID of the user who is logging in.

    Yes, I explained that...
  30. Replies
    4
    Views
    4,503

    Re: [RESOLVED] About Frames

    That's the nicest thing anyone has ever said about me, Samba.
  31. Thread: login using time

    by kows
    Replies
    7
    Views
    1,273

    Re: login using time

    Add a time field (integer) to your table and then when they login, do an update statement:

    UPDATE login SET time='NEW_TIME_HERE' WHERE id='USER_ID_HERE';
  32. Replies
    4
    Views
    4,503

    Re: About Frames

    You need another frameset.


    <html><head><title>Frame</title>
    </head>
    <frameset rows="12&#37;,*">
    <frame name="ust" src="http://www.eskiciyeah.com/f/ust.html">
    <frameset cols="14%,*,14%">
    ...
  33. Re: If user types in text box a " ' " then put a \' instead?

    Hi,

    I'm just here to tell you not to use addslashes(). If you're not going to use a library like PDO, as penagate mentioned, to handle your database stuff, then when you're using the default MySQL...
  34. Thread: displaying tree

    by kows
    Replies
    12
    Views
    1,550

    Re: displaying tree

    No, it can't be done using a join. You don't know how many children a node might have, and using a join would only let you see so far down the tree (you'd need a set number of nodes to join to, and...
  35. Thread: displaying tree

    by kows
    Replies
    12
    Views
    1,550

    Re: displaying tree

    Why aren't you using the primary key for the relationship? Why do you have a separate field to act as the user's ID?

    Still, I'm not sure what the problem is. You're not using the primary key, so...
  36. Thread: displaying tree

    by kows
    Replies
    12
    Views
    1,550

    Re: displaying tree

    It's simple: if you have a particular user's ID, then you select all records that have a parent_id of that user ID.


    $sql = "SELECT * FROM users WHERE parent_id={$userId}";

    You can't select...
  37. Thread: Css[birthday]

    by kows
    Replies
    7
    Views
    1,457

    Re: Css[birthday]

    JavaScript can't interact with a database; you'll need a server-side scripting language to do so.

    SQL comes in many flavours -- you need to be more specific with which type of SQL. MySQL? MSSQL?...
  38. Thread: Css[birthday]

    by kows
    Replies
    7
    Views
    1,457

    Re: Css[birthday]

    Not sure how you plan to do this with CSS (CSS is for styling HTML elements).

    What type of database are you using? What scripting language are you using?
  39. Replies
    7
    Views
    3,422

    Re: Multiple file upload validation

    So keep track of when there was a value:

    var form = document.getElementById('myFormId');
    var fields = form.getElementsByTagName('input');
    var filledImages = 0;
    for(x in fields){
    ...
  40. Replies
    2
    Views
    733

    Re: PHP ECHO WHILE Query

    Every time you call mysql_fetch_assoc() (or mysql_fetch_row(), or mysql_fetch_array()), you're pushing the internal data pointer ahead. This means that if you ever call this function before you begin...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width