Jump to content

PHPGeek80

Members
  • Posts

    18
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

PHPGeek80's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have tried that but it doesnt work, thanks for all your help. its must not be possible.
  2. nope, sorry didnt work. I basically want the top portion to have a height of 70 pixels. Is this possible? Thanks.
  3. Thanks for your feedback but, none of the advice given has worked. Anything else that could cause this? Please note: When i remove the doctype tag from the html, the page is displayed correctly.
  4. I have tested this site in: Firefox, Safari, Netscape and Opera. They all display the page fine with no extra space below the logo image.
  5. Hi, I’m generating an html page using php. The html page displays the logo image with extra space below when using Internet Explorer, in other browsers the extra space below doesnt exist. I cannot work out for the life of my why Internet Explorer is adding this extra space. Does anyone have any input on this? http://www.maxielive.com/cart/index.php Any help to rectify this would be greatly appreciated. Thanks.
  6. thank you kenrbnsn. Thats worked great.
  7. Hi, I have an mcrypt function that encrypts a string for storage into a mysql database. The problem i have is that when im inserting encrypted data, sometimes the encrypted strings include one or more single quotes which is what i due to split the individual fields. e.g. INSERT INTO `tbl` VALUES (0, 'ljoihop', '768', 'bu'ut', 'higuyvgcvyt', '76687t87', 'OIUOIHIUGG'); As you can see the 4th field "bu'ut" has a single quote within the string. I just checked and it doesnt work with double quotes either. How can i get around this?
  8. Thanks beaux1. Added the output buffering to the start and end of the file ehich now works a treat. Is it best to add buffering to every php file?
  9. Hi, I have one index.php file that adds and gets data from a mysql database. Within this file i have an include statement: include("include/mcrypt-functions.php"); where "mcrypt-functions.php" is the following: <?php function funct_encrypt($data) { $key = "fuvBUcutvIVbiuvuv"; $iv_size = mcrypt_get_iv_size(MCRYPT_XTEA, MCRYPT_MODE_ECB); $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); $enc = mcrypt_encrypt(MCRYPT_XTEA, $key, $data, MCRYPT_MODE_ECB, $iv); return $encrypted; } function funct_decrypt($data) { $key = "fuvBUcutvIVbiuvuv"; $iv_size = mcrypt_get_iv_size(MCRYPT_XTEA, MCRYPT_MODE_ECB); $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); $dec = mcrypt_decrypt(MCRYPT_XTEA, $key, $data, MCRYPT_MODE_ECB, $iv); return $decrypted; } ?> after i add or get data from the database i redirect back to the main page using: header('Location: index.php?p=viewall'); but when i do this i get a message like this: Warning: Cannot modify header information - headers already sent by (output started at /home/*****/public_html/links/include/mcrypt-functions.php:24) in /home/*****/public_html/links/index.php on line 168 This message stops the page drom redirecting successfully and i get a blank page with the warning. How can i stop this error? Thanks.
  10. Hi, Can someone please tell me why when saving text from a textarea do i get a backslash before every single and double quote? Cheers
  11. http://www.php-editors.com/online_editor/mephit.zip
  12. Hi, Has anyone heard of the online php editor named mephit? If so why when i try to save or validate the php code does it unclude a backslash before single and double quotes? Cheers
  13. Hi all, Issue resolved. <?php $row = mysql_fetch_assoc($sql_result); $field_description = $row["field_description"]; $field_cost = $row["field_cost"]; $field_setup = $row["field_setup"]; $A_field_count = 0; if (!empty($field_description)) { $A_field_description = array(); $A_field_cost = array(); $A_field_setup = array(); $A_field_description = explode(' ', $field_description); $A_field_cost = explode(' ', $field_cost); $A_field_setup = explode(' ', $field_setup); $A_field_count = count($A_field_description); } print $A_field_count; ?> Thanks for all you help.
×
×
  • 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.