Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by gizmicek

  1. gizmicek

    How to distribute compiled PHP scripts?

    thanks sleipnir214, I will look at this. But it's quite lot of money for me to get this software :-/
  2. gizmicek

    How to distribute compiled PHP scripts?

    Hi all, I have some scripts which I want to kick off so other programmers can use them but I don't want to put out the source codes. I know that there was some thread about it some time ago but I can't find it now. Could anybody gimme some link where I can find more information about the...
  3. gizmicek

    Include file

    be sure, that the file is really named "Common/MySQL.php" and not e.g. "common/mysql.php" - i.e. check the letter case ;-)
  4. gizmicek

    session_start() problem

    I faced the same problem some time ago. Even on the computers with cookies turned on I wasn't able to use them. Fortunately, php can pass the session ID also through the URL and it will do it for you automatically in case it can't use cookies ;-). Go to php.ini if you would like to change the...
  5. gizmicek

    Open popup window using Javascript

    Great thanks
  6. gizmicek

    passing a variable to a drop down list

    hos2 is right, but try rather this query: $query = "select from tablename where categorie like '%$cat%'"; The % (percentage) character represents any count of any characters so it will return a possitive search result even if you have e.g. "dkjfasldmathematicsddfkjasdl" in...
  7. gizmicek

    passing variables to a new page?

    oh, just one suggestion: if the link you wrote above is also located in the index.php page, you should have the code snippet (I wrote in the previous reply) enclosed in the if statement like this: if(isset($_GET['dvdId'])) { $id=$_GET['dvdId']; $result=mysql_query("SELECT * FROM `dvdtable`...
  8. gizmicek

    passing variables to a new page?

    Hi xWasteMindx, Now, after clicking the link, you will have the following variables available in index.php page: $_GET['dvdId'] $_GET['dvdName'] So at the top of the page, you should have some database query like this: $id=$_GET['dvdId']; $result=mysql_query("SELECT * FROM `dvdtable`...
  9. gizmicek

    Open popup window using Javascript

    Hi guys, this is probably very simple question for Javascript gurus like you but I don't use JS very often and don't know this. I need to open new window after clicking on a link and I'd like the window to have specified dimensions in pixels. E.g. I have link on my pages and after clicking it...
  10. gizmicek

    Cookie Counter Problem

    Check this out: if(!isset($_COOKIE['cookietest'])) { //set cookie setcookie("cookietest", $_SERVER['REMOTE_ADDR'], time()+360); //increase the counter value print "Hello World"; } I have some experience with using cookies and I suggest you not to use them. They aren't...
  11. gizmicek

    Order by 2 columns?

    Records in database are added in order you add them in. If you delete one record, you have to optimize the table so the records after the deleted one are moved one record ahead. If you only update some record, it remains on it's same place. Therefore you can't rely on the order in which the...
  12. gizmicek

    Order by 2 columns?

    SELECT * FROM $table ORDER BY `which` ASC, `when` This will do the job ;-)
  13. gizmicek

    PHP Error

    If you want to force some function not to display error, just put @ before the function. In your case, it will be something like this: $var=@date(); But this is not a real solution. You should eliminate the errors correcting your code instead of hiding the errors ;-)
  14. gizmicek

    Submitting a form by pushing <enter>

    As Skute said, remove the </INPUT> tags. They shouldn't be there since <INPUT> is not pair tag. After removing the tags, your form should be submited using <ENTER> key.
  15. gizmicek

    Passing session variable to new _blank window

    Hi danielhozac & skiflyer, I have main webpage where I have stored the user name in session variable $_SESSION['auth_user']. When I create a link on that page like this: <A href=&quot;aa.php&quot; target=&quot;_blank&quot;>aaa</A> and have aa.php like this: <?php echo $_SESSION['auth_user']...

Part and Inventory Search

Back
Top