Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

stallman3738

Members
  • Joined

  • Last visited

  1. Hi guys I have a few js codes on my .php page and I'm trying to move it to a separate file and then address this file (<script type="text/javascript" src="file.js"). but there is a php code in this js code and .js files don't run php code. because php codes are rendered before js/html is there anyway to move these vairables to js file? thanks
  2. tnx for reply I use pixels mostly for wrappers and outter DIV and etc. but elements inside them are mostly %;
  3. Hi guys I was given a PSD format of website layout and they want that their website be exactly like PSD (even the sizes and ...) here is my question, is there any problem with designing all the website and most of the its content specially height with pixels? I mean the website works very well on my monitor (13') but will the website work the same way in other monitors (15' or 17')? will be any page structure destruction? (sorry for poor english) thanks
  4. Hi, I found it, because I didn't save the file in UTF-8, it was in ANSI that is why that error reported. besides that I think it would be a good idea to redirect using .htaccess file to overcome such problems in situations where you can't find the solution. and about md5, yeah I have used this as the only method to encrypt the password; thanks for your suggestion
  5. Hi guys. I want to round one corner of a DIV, I wrote this code: -moz-border-radius: 5px 0px 5px 5px; -webkit-border-radius: 5px 0px 5px 5px; border-radius: 5px 0px 5px 5px; but I saw different results in IE and chrome,firefox,opera. in IE the normal corner is on top left while in chrome,firefox,opera the normal corner is on top right! for illustration please look the following images. IE : Firefox, Chrome, Opera : thanks
  6. stallman3738 replied to Row's topic in Server Side
    hi explain more, its vague, illustrate your problem with table and show some your relations.
  7. Thanks alot it worked, how do I output the header_sent data to see what they are?
  8. There was something much more strange, I tested this <?php header("location:add.php"); ?> and still received the same warning
  9. No, this is systemComponent.php <?php class systemComponent{ var $setting; function getSetting(){ $setting['dbhost']='localhost'; $setting[ ' dbusername' ]='root'; $setting['dbpassword']=''; $setting['dbname']='amlak'; return $setting; } } ?> and this is dbConnector.php, <?php require_once 'systemComponent.php'; class dbConnector extends systemComponent{ var $theQuery; var $link; function dbConnector(){ $setting=systemComponent::getSetting(); $host=$setting['dbhost']; $db=$setting['dbname']; $user=$setting['dbusername']; $pass=$setting['dbpassword']; $this->link=mysql_connect($host,$user,$pass)or die(mysql_error());; mysql_select_db($db) or die(mysql_error()); mysql_set_charset('utf-8'); } function query($query){ $this->theQuery=$query; return mysql_query($query,$this->link) or die(mysql_error()); } function fetchArray($result){ return mysql_fetch_array($result); } function close(){ mysql_close($this->link); } } ?> is there anything wrong?
  10. yes display errors are enabled. If comment out the highlighted line then there will be no header and no redirection to add.php page.
  11. hi guys this is my code, but I receive Cannot modify header information warning on the line which is Bold and Underlined. tnx <?php @session_start(); $class="loginTextbox"; if ($_SESSION['url']!="/amlak/index.php") { header("location:index.php"); exit (); } ?> <?php if (isset($_POST['password'])) { require_once './views/database/systemComponent.php'; require_once './views/database/dbConnector.php'; $dbConnectorObject =new dbConnector(); $sentPassword = $_POST['password']; $select = "SELECT * FROM password"; $result = mysql_query($select)or die(mysql_error()); while($rows=mysql_fetch_array($result)) { $currentFirstPassword = $rows['password1']; $currentSecondPassword = $rows['password2']; } if(md5($sentPassword)==$currentFirstPassword) { $_SESSION['login']=true; header("location:add.php"); exit(); } else{ $class="failedloginTextbox"; } } ?>

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.