Jump to content

michalchojno

Members
  • Posts

    28
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

michalchojno's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Telling PHP to "sleep" a little will actually do. Let's say I display a picture, then the "sleeping" will trigger, after which I will display the other contents. How can you do this "sleeping" in PHP?
  2. It's more of a general question. As part of the quiz, I'd like to display some text (or picture), but only for some limited time. Then, I'd like to redirect, so another page loads. Is there a way to do that in PHP and if so how? I assume different browser/system will have different time of mainiaining the first page before redirection, correct?
  3. I put that. Still the letters display in a funny way. What else do I miss?
  4. Is this PHP tag? Where should I put it?
  5. I want to display some non-English text on the website. I put the following code: The non-English letters do not display (actually these letters display in a funny way). What did I miss? Shouldn't UTF-8 have all the letters?
  6. OK, your code works. Now why this code doesn't? The result is empty. EDIT: Perhaps the $ sign in variable $word? But I changed that and still no result. In other words that would go: Would that work?
  7. The only other way is "manual" if's. I think there must be a way to do that. In other languages this can be done.
  8. You need CSS to change that.
  9. How to make the name of the variable be a string of text, which you have in another variable? Example: Now I don't want to name it just $variable, but the name comes as a result of $var. How do I do that? I tried this, which didn't work: Any tips?
  10. Yes! How simple... Many thanks. The code below does the trick. index.tpl SOLVED
  11. I seem to have a problem to display db data using Smarty's {section} function. Here is what I have: table1: index.php index.tpl Now this generates something like this: I'd like the result to be: How can I change that? Where did I make a mistake?
  12. No, no... ctype_digit() seems to generate error when the value is 0. I used ereg("^[0-9[0-9]*$", $val) and if empty($val) {$val = 0} and it works.
  13. Ah! That is excellent! Many thanks for this tip. Stored procedures are such a must use. What about the follwoing. Does MySQL have these too? 1. cursor? 2. "Select Into" query? 3. DTS? 4. Jobs? Still, what about using multiple lines of SQL code with PHP? Let me give you an example of what I mean. I can execute different lines of SQL code one by one: Is there a way to do it all in one query? So it's considered as one.
×
×
  • 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.