Jump to content

aliento

Members
  • Posts

    169
  • Joined

  • Last visited

Posts posted by aliento

  1. I did it but it didn't work.

    I found the code and i corrected it.

     

    here is the code

    <?php
    $string = '<img src="" width="xx" height="yyy" alt="">';
    $new_string = preg_replace('/\<(.*?)(width="(.*?)")(.*?)(height="(.*?)")(.*?)\>/i', '<$1$4$7>', $string);
    echo $new_string;
    ?>
    
  2. Hi i have some images at my joomla which i want to change with regex.

    The string is

    <img src="img.png" width="300" height="300">
    
    
    

    The width and the height is different every time.

     

    i want to change width , height and to add and style="float:right" .

    I think you can propose a regex to make it, or some other way to do it.

    Its joomla site and the news module is not as i expected.

     

    Thank you

  3. Hello,

    I want to put behind text a background image. I did it but when the text is long and change line the background disappear.

    Here are the css i use inside a span :

    position:relative;
        background-image: url('http://domain/images/bar.png');
        height:35px;
    line-height:35px;
    background-repeat: repeat-y;
    background-repeat: repeat-x;
    display: inline-block;
    
    

    I want the background to be in all lines of the text.

  4. Hi i have a site (for personal use) which i see the soccer games stats.

    I have done a lot comparιson between the goals scores a team and the goals accepts at the last 6 games.

    I compare those goals and i see the best attacks and the best defences.

    Now i stuck as i want to see the games with best attacks and the worst defence.

    I have all the games haven't started at the table 'games', within i have :

     

    table : games

    --------------------------------------------------------------------------------------------------

    | id | game_id | home_attack | home_defence | away_attack | away_defence |

    --------------------------------------------------------------------------------------------------

    home_attack : goals achieved the home team in last 6 games

    home_defence : goals accepted the home team in last 6 games.

    The same for the away team.

     

    I want to find out from the db the best 30 matches with the best home_attack and the worst away_defence .

     

    The mysql can do this action ?

     

    I tried to add another field with a calculation which was : home_attack + away_defence but it didn't work.

     

    The site is in Greek is here balllab.net

  5. You should know that Greek government made a lot of concentration camps like Hitlers. One is working now inside has prisoners from midldle East immigrants. They leave them without water food they wash them all with 'firecars'.

     

    Its not chaos as i mendion but it will be.

     

    We still have rights and to call aq deffender but most times the district attorney keeps the arrested to prison for 9 months until he will be at the court. In most cases then the court let him free.

     

     

    ----

     

    People arrested for anything. And in some cases the psych mental institutions is the easy way to prison someone.

     

    This is what happens here.

  6. We have no democracy at this moment. Cops are everywhere. We have been seperated all the Greeks to left and right plitical views. The neonazi party is in the 'congress' . And the members of it cross with buses all over the country and fight even kill non Greeks without papers or 'lefts'. The authorities takes no part to this.

     

    Haha its fun here. Its the start of war :)

     

    Weed is prohibited and the 'charges' are prison even for few grams.

     

    Sorry for my bad English ! I am sure you understand.

     

    There is no order , only chaos if you try to compile it lol

  7. When i have weed i program fast , intelligently i am full of new ideas n technics to solve problems.

     

    If only it would help you have proper grammar, punctuation and spelling. But I highly doubt any of that is true, it is more or less your brain just rationalizing to yourself so you do not feel so bad about smoking pot, knowing it is illegal to do so.

     

    Infact, you probably thought that you were spelling properly!

     

    Let it be premiso. I am Greek, i learned English and php through net.

    I dont know how to spell correct and i try hard to learn even now .  i never lived at an usa's speaking country.

    PHP for me is a way to make something interest , thats all .

    I will not give explanation to anyone about my interests even if to the whome made this scripting language.

     

    Law is made just to limit us. Its not there to protect you :) .  Weed is only a plant, when is natural is unharmful, the law uses it to create almost all the crimes. The tetracanabinoids physically exist into your brain , because of them you can forget , you have stable temperature, you treat bacteria infections and you are not dead by cancer .

     

    Laws are there to control morals who wants to live there lives and dye in the sweet dream of protection

  8.  

    or you can use $item_name==''

    if (!(isset($item_name)) || !(isset($item_link)) || !(isset($item_price)))
    {
    $errors[] = 'Item Name, Item Link, and Item Price Cannot Be Empty.';
    } else {
    
                      $validate = new validate();
                      if(!$validate->validateURL($item_link)) {
                      $errors[] = 'This is not a URL.';
                      }
    
    
                      if (!is_numeric($item_price)) {
                      $errors[] = 'Item Price Must be a number.';
                      }
    
           }
    
    

  9. admins mods its been 5 days since i submited an article to the test beta forum. When will you publish it?

     

    Weed activates the creative side of the brain(right lobe) and deactivates the left lobe the logical side.

    OUPS here is not shroomery  :wtf:

×
×
  • 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.