Jump to content

aliento

Members
  • Posts

    169
  • Joined

  • Last visited

Everything posted by aliento

  1. and then i put $string = str_replace('<img','<img width="90px" height="90px"',$string);
  2. 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; ?>
  3. 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
  4. 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.
  5. Hi Psycho I have the game id and there are the game info i also have and the teams table with stats for the teams. But i want only this, sorry for the double post i cant delete it.
  6. 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
  7. Hi, I have problem with sessions , when i change from no subdomain qip.gr to www.qip.gr it doesn't hold the sessions. Is there any solution ? Thank yu
  8. Thank you What i put into the db i show it at html pages so how can i avoid closing an html tag like > ?
  9. Hello, i want to know how can i change common sql and html characters at the submit form text boxes and textareas so i can insert them in db. When i enter the ' character it returns sql error also i dont want to insert html into the db. Thank you
  10. Hello, i use mysql_real_escape_string() to avoid sql injections but it escapes and line breaks \n. What should i do to keep the line breaks from the form and be protected by injections. Thank you
  11. 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.
  12. 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
  13. I cant understand this persistence to kill the different people
  14. 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
  15. There is not any forum to publish helpful code. Such forum further than code exposing gives the ability to improve the given code by all the members. I am not talking about building apps or web sites but parts of useful code. That's all. Thanks for reading.
  16. 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.'; } }
  17. admins mods its been 5 days since i submited an article to the test beta forum. When will you publish it?
  18. or when you recieve the dataq str_replace(' ', '+', $request);
×
×
  • 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.