Jump to content

devofash

Members
  • Posts

    81
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

devofash's Achievements

Member

Member (2/5)

0

Reputation

  1. Thanks. Point noted. But I'm filling in for someone and don't really want to change too much of their code.
  2. Hi, Could really do with some help. So I've got a Multidimensional array like so Array ( [Asia] => Array ( [0] => China [1] => Japan ) [Europe] => Array ( [0] => France [1] => Germany [2] => Spain [3] => UK ) ) I have a Mysql table (continents pre-filled) Continent - Country Asia Europe I need to update country where continent is xxx So I need a query/php function which will when run would fill in "china, japan" into "asia" and "france, germany, spain, uk" into "europe", like so Continent - Country Asia - China, Japan Europe - France, Germany, Spain, UK I don't really know where to start so I don't have a code. Would really appreciate some assistance.
  3. could really do with some help guys.
  4. Use client-side javascript to countdown and then redirect to a php script once the timer is up.
  5. please give more info on what you are trying to do
  6. Look into JOINs http://www.w3schools.com/sql/sql_join.asp
  7. put the below line outside the function. echo get_url_contents($url);
  8. Have you got curl enabled? If yes, I cant see you calling the function in the your script. Are you calling it?
  9. via xml and converting the xml to an array using the function available here http://www.bin-co.com/php/scripts/xml2array/
  10. Hi Guys, Could do with some help if possible. I've got an array of data and I need to paginate it. I'm not that good with arrays / pagination. Sorry I don't have any php code, coz I don't know where to start. The pagination doesn't have to be complex just a simple Next/Previous link will do and then i'll try to add the 1,2,3,4 pages in by myself. Any help is much appreciated. Thanks in advance. Array ( [Company] => Array ( [Employers] => Array ( [0] => Array ( [Name] => Array ( [value] => Person 1 ) [Email] => Array ( [value] => person1@company.com ) ) [1] => Array ( [Name] => Array ( [value] => Person 2 ) [Email] => Array ( [value] => person2@company.com ) ) [2] => Array ( [Name] => Array ( [value] => Person 3 ) [Email] => Array ( [value] => person3@company.com ) ) ) ) )
  11. oooh.... i changed the data type to mediumblob and it works =) but didn't work when i did it with blob why ?? anyways awesome ... thanks for your help PFMaBiSmAd
  12. hmm it works on smaller files so for example if i upload a logo 100x100 it works perfectly. checked the filecontent with strlen and it shows as 65535 even though the filesize in the database 347715 i've basically followed the steps from the tutorial http://www.php-mysql-tutorial.com/wikis/mysql-tutorials/uploading-files-to-mysql-database.aspx
  13. By corrupted I mean it cuts it off half way so for example if I upload an image 600px by 900px it displays say the first 100px of the file and the rest is greyed. The original filesize is in this case 339 KB and when I download it's 63.9 KB. In the database its 339KB. I've checked the database it stores the stuff as binary. I've opened it via PSPad and I see lots of binary stuff.
×
×
  • 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.