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.

fadia123

Members
  • Joined

  • Last visited

Everything posted by fadia123

  1. I hate IE, I sorted it out, it was picking the box shadow in IE since it is transparent png image but not in GC and FF, so what I did is took the box shadow of in IE case. Youssef
  2. Thank you guys, I will try your suggestions and get back to you. zed what bit should it be? Youssef
  3. fadia123 replied to fadia123's topic in General Chat
    Thank you, Youssef
  4. Thank you I feel better now is there a way to secure that? For the sessions I changed the names and it is not showing any more ell now, Thank you. Youssef
  5. fadia123 posted a topic in General Chat
    Hi, I was wondering if there are a way for me to edit or delete one of my topics? Youssef
  6. You scared the hell out of me, I am new to php and this website is my first ever, what do you mean by your comment, is it dangerous to send this code to some one, there are no username or password? I will appreciate any help and advice? Youssef
  7. Hi, My website is: http://siblinis.com. If you visit my website, you can see that the content png background image is working in FF and GC but not in IE. Is there a way to play around this? Many thanks, Youssef
  8. Hi Guys, I am still getting this error, this is a nightmare, I will show you all the code: <?php // headers change between logged in and not logged in session_start(); $header = ''; $Added_Swaps_list = ""; $tableFirstpart = ""; $tableSecondpart = ""; $ConfirmDelete = ""; if (!isset($_SESSION["manager"])) { $header ='../includes/header.php'; $Added_Swaps_list = "You need to be logged in to be able to view your profile"; } else { // Be sure to check that this manager SESSION value is in fact in the database $managerID = $_SESSION["id"]; $LEmail = $_SESSION["manager"]; $pass = $_SESSION["password"]; include '../includes/connect_users.php'; $sql = mysql_query("SELECT * FROM members WHERE id ='$managerID' AND Email ='$LEmail' AND Password='$pass' LIMIT 1"); $existCount = mysql_num_rows($sql); // count the row nums if ($existCount == 0) { $header ='../includes/header.php'; $Added_Swaps_list = "Please Log in in order to be able to track your added swaps"; } else { while($row = mysql_fetch_array($sql)) { // Info from the users table $User_name = $row["User_name"]; $Email = $row["Email"]; $header = '../includes/header_Secure.php'; //Output this user added swaps include '../includes/ALL.php'; // select all the tables $sql_added_Swaps = mysql_query( "SELECT * FROM antiques WHERE antiques.email = '$Email' UNION ALL SELECT * FROM art WHERE art.email = '$Email' UNION ALL SELECT * FROM automotive WHERE automotive.email = '$Email' UNION ALL SELECT * FROM bookscomicsmagazines WHERE bookscomicsmagazines.email = '$Email' UNION ALL SELECT * FROM businessofficeindustrial WHERE businessofficeindustrial.email = '$Email' UNION ALL SELECT * FROM clothingaccessories WHERE clothingaccessories.email = '$Email' UNION ALL SELECT * FROM collectibles WHERE collectibles.email = '$Email' UNION ALL SELECT * FROM computing WHERE computing.email = '$Email' UNION ALL SELECT * FROM consumerelectronics WHERE consumerelectronics.email = '$Email' UNION ALL SELECT * FROM dollsplush WHERE dollsplush.email = '$Email' UNION ALL SELECT * FROM dvdfilmtv WHERE dvdfilmtv.email = '$Email' UNION ALL SELECT * FROM hobbiespastimes WHERE hobbiespastimes.email = '$Email' UNION ALL SELECT * FROM homegardenfamily WHERE homegardenfamily.email = '$Email' UNION ALL SELECT * FROM jewellerywatches WHERE jewellerywatches.email = '$Email' UNION ALL SELECT * FROM mobilehomephones WHERE mobilehomephones.email = '$Email' UNION ALL SELECT * FROM music WHERE music.email = '$Email' UNION ALL SELECT * FROM musicalinstruments WHERE musicalinstruments.email = '$Email' UNION ALL SELECT * FROM pcvideogaming WHERE pcvideogaming.email = '$Email' UNION ALL SELECT * FROM photographyoptical WHERE photographyoptical.email = '$Email' UNION ALL SELECT * FROM potteryporcelainglass WHERE potteryporcelainglass.email = '$Email' UNION ALL SELECT * FROM properties WHERE properties.email = '$Email' UNION ALL SELECT * FROM skillswaps WHERE skillswaps.email = '$Email' UNION ALL SELECT * FROM sports WHERE sports.email = '$Email' UNION ALL SELECT * FROM stamps WHERE stamps.email = '$Email' UNION ALL SELECT * FROM testlistings WHERE testlistings.email = '$Email' UNION ALL SELECT * FROM ticketstravel WHERE ticketstravel.email = '$Email' UNION ALL SELECT * FROM toysgames WHERE toysgames.email = '$Email' UNION ALL SELECT * FROM wholesalejoblots WHERE wholesalejoblots.email = '$Email' "); $productCount = mysql_num_rows($sql_added_Swaps); if ($productCount > 0) { $count = 1; while($row = mysql_fetch_array($sql_added_Swaps)) { $id = $row["id"]; $track_ID = $row["track_ID"]; $producttittle = $row["producttittle"]; $productdescription = $row["productdescription"]; //what is he expecting in return $ExchangeWithTittle = $row["ExchangeWithTittle"]; $ExchangeWithDescription = $row["ExchangeWithDescription"]; //Info about the owner of the already added product $firstname = $row["firstname"]; $city = $row["city"]; $country = $row["country"]; $postalcode = $row["postalcode"]; $email = $row["email"]; $Category = $row["Category"];// what table is it in $swaptakeplace = $row["swaptakeplace"]; $dateadded = $row["dateadded"]; $rowclass = (is_int($count / 2)) ? ' even' : ' odd'; $check_pic = "../ALL/$Category/$track_ID.jpeg";///////////////////////////////////////////////////////////////// if (file_exists($check_pic)) { $user_pic = "../ALL/$Category/$track_ID.jpeg"; /////////////////////////////////////// } else { $user_pic = "../ALL/$Category/fake.jpeg";////////////////////////////////////////////////////////////// } //First part of the table output $tableFirstpart = ' <div id="addexchanges_Show_Out"> <div id="common_Div_Outside"> <div style="overflow:hidden; padding: 5px 0; margin-bottom: 5px;"> <a href="UserProfiles.php" style="color:white" class="common_Link_Sub">MY PROFILE</a> <a href="userSwaps.php" style="color:white" class="common_Link_Sub">MY SWAPS</a> <a href="user_swaphistory.php" style="color:white" class="common_Link_Sub">SWAPS HISTORY</a> <a href="#" style="color:white" class="common_Link_Sub">FORUMS</a> </div> <div class="common_Div_Bg_Rounded"> <table width="100%" id="userprofile_AddedSwaps_Table"> <tr> <th style="width:10%">Swap Image</th> <th style="width:20%">Swap Title</th> <th style="width:20%">Swap with Title</th> <th style="width:20%">Swap Take place</th> <th style="width:20%">Date Added</th> <th style="width:10% ">Edit</th> </tr>'; $Added_Swaps_list .=' <tr class="' . $rowclass . '"> <td><img style="height:72px; width:60px;" src="' . $user_pic . '"/></td> <td class="limit">' . $producttittle . '</td> <td class="limit">' . $ExchangeWithTittle . '</td> <td class="limit">' . $swaptakeplace . '</td> <td class="limit">' . $dateadded . '</td> <td> <a href="userSwaps.php?deleteThis=' . $track_ID . '">DELETE</a> <form action="edit.php" method="post"> <input type="hidden" name="country" value="' . $swaptakeplace . '"/> <input type="hidden" name="table" value="' . $Category . '"/> <input type="hidden" name="trackID" value="' . $track_ID . '"/> <input type="submit" name="edit" value="EDIT" id="button_Common_NoStyle"/> </form><br/> </td> </tr> '; $count++; $tableSecondpart = '</table></div></div></div>'; //ask them if they are sure that they want to delete this swap if (isset($_GET['deleteThis'])) { $ConfirmDelete = ' <div id="userSwaps_popUp_Delete_FullBg"></div> <div id="userSwaps_popUp_Delete"> <strong>Are you sure that you want to delete this swap</strong><br/><br/><br/> <div style="text-align:center"> <a href="userSwaps.php?deleteid=' . $track_ID . '" style="color:red; display:inline-block; margin-right:20px; font-weight: bold;">YES</a> <a href="userSwaps.php" style="color:green; font-weight: bold;">NO</a> </div> </div> '; } // If the user clicked the delete Button this code will activate if (isset($_GET['deleteid'])) { $deleteID = $_GET['deleteid']; include '../includes/ALL.php'; mysql_query("DELETE FROM $Category WHERE track_ID='$deleteID'"); //Delete the image from the All folder. $exchanges_image = 'ALL/' . $Category . '/' . $deleteID . '.jpeg'; if (file_exists($exchanges_image)) { unlink($exchanges_image); } include '../includes/' . $swaptakeplace . '.php'; mysql_query("DELETE FROM $Category WHERE track_ID='$deleteID'") or die("Some thing went wrong");; //Delete the image from that country category folder. $country_image = $swaptakeplace. '/paidImages/' . $Category . '/' . $deleteID . '.jpeg'; if (file_exists($country_image)) { unlink($country_image); } header('Location: userSwaps.php'); } } } else { $Added_Swaps_list ='<h3>You have no added swaps in the moment why not add some!!!</h3>'; } } } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="Description" content="swaps, la swap, car swaps, swap site, home swap, house swap, swap shop, swapping site, swap stuff online, exchange"/> <meta name="Keywords" content="swaps, la swap, car swaps, swap site, home swap, house swap, swap shop, swapping site, swap stuff online, exchange"/> <title>areeban.com swaps, la swap, car swaps, swap site, home swap, house swap, swap shop, swapping site, swap stuff online, exchange</title> <link rel="stylesheet" type="text/css" href="../css/style.css" /> <!--[if IE]> <link rel="stylesheet" type="text/css" href="../css/style_IE.css" /> <![endif]--> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript"> $(function() { function limit(max) { return function (_, elt) { elt = $(elt); if (elt.html().length > max) { elt.html(elt.html().slice(0, max) + "…"); } }; } $('.limit').each(limit(120)); }); </script> </head> <body> <?php echo $ConfirmDelete ?> <!--header begin --> <?php include_once "$header" ?> <!--header end --> <!--main begin --> <div id="main"> <!--content begin --> <div id="content"> <?php echo $tableFirstpart ?> <?php echo $Added_Swaps_list ?> <?php echo $tableSecondpart ?> </div> <!--content end --> </div> <!--main end --> <!--Footer begin --> <?php include_once "../includes/footer.php";?> <!--Footer end --> </body> </html> Many thanks, Youssef
  9. Thank you, I added: <?php ini_set('session.bug_compat_42', 0); ini_set('session.bug_compat_warn', 0); ?> into the top of my page. Youssef
  10. I added this into my php.ini and uploaded the file under the public_html folder: <?php ini_set('session.bug_compat_42', 0); ini_set('session.bug_compat_warn', 0); ?> I I have no idea how to do the other 2 (ini_set() and restarted apache) I can't see the error now it usually keep going and coming I tried refreshing the page lots of times and it didn't show, hopefully this sorted it out Many thanks, you were very helpful I really appreciate that I will post here in the future if it is still showing Youssef
  11. thank you, I changed the ini.php to php.ini. I uploaded a file with the <?php phpinfo(); ?> inside it, here is the url into it: [blog=http://www.areeban.com/info.php]http://www.areeban.com/info.php[/blog] Do I need to put session.bug_compat_42 = 0 session.bug_compat_warn = 0 between a php tags? Youssef
  12. Thank you for your reply, This is the php code: <?php // headers change between logged in and not logged in session_start(); $header = ''; date_default_timezone_set('Europe/London'); $thisDay = date('l jS \of F Y h:i:s A'); $topBoxes = ''; if (!isset($_SESSION["manager"])) { $header ='includes/header.php'; } else { // Be sure to check that this manager SESSION value is in fact in the database $managerID = $_SESSION["id"]; $IEmail = $_SESSION["manager"]; $pass = $_SESSION["password"]; include 'includes/connect_users.php'; $sql = mysql_query("SELECT * FROM members WHERE id ='$managerID' AND Email ='$IEmail' AND Password='$pass' LIMIT 1"); $existCount = mysql_num_rows($sql); // count the row nums if ($existCount == 0) { $header ='includes/header.php'; } else { while($row = mysql_fetch_array($sql)) { $User_name = $row["User_name"]; $header = 'includes/header_Secure.php'; } } } ?> Youssef
  13. Hi guys, This error is making me crazy, Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively in Unknown on line 0 I created a file called ini.php and added these 2 lines into it and still showing: session.bug_compat_42 = 1 session.bug_compat_warn = 0 Many Thanks, Youssef
  14. fadia123 replied to fadia123's topic in Server Side
    Thank you very much it worked perfect.
  15. fadia123 replied to fadia123's topic in Server Side
    Thank you for your reply, Sorry but I didn't get it, How to give them a style (bg)? I am really newb with this stuff sorry Youssef
  16. fadia123 posted a topic in Server Side
    Hi Guys I am not sure If I can Achieve that, I want to output all the forums from my database into my page, and each topic will be inside a <tr>, here is my code: $sql = mysql_query("SELECT * FROM forum_posts where parentid='0' order by lastrepliedto DESC"); $PostsCount = mysql_num_rows($sql); // count the output amount //If PostsCount > 0 Begins if ($PostsCount > 0) { while($row = mysql_fetch_array($sql)) { $postid = $row["postid"]; $author = $row["author"]; $title = $row["title"]; $numreplies = $row["numreplies"]; $showtime = $row["showtime"]; $lastposter = $row["lastposter"]; $OutPutInside .= ' <tr class="mainrow"> <td><a href="message.php?id=' . $postid . '">' . $title . '</a></td> <td>' . $author . '</td><td>' . $numreplies . '</td> <td>' . $showtime . '<br>Last post by <b>' . $lastposter . '</b></td> </tr> ' ; } } What I want to achieve is: the first <tr> to have the white bg and the second to have a grey bg and the third to have white bg and the third again grey bg etc, so one white and one grey. I have no idea how to achieve that please help. Youssef
  17. fadia123 replied to fadia123's topic in Server Side
    Sorry ignore my last post, I tried this and it worked: move_uploaded_file(isset($_FILES["file"]["tmp_name"]),"../user_Images/". $newname); Youssef
  18. fadia123 replied to fadia123's topic in Server Side
    Thank you, I tried it and all the error gone accept one: Notice: Undefined index: file in C:\Program Files\EasyPHP-5.3.8.0\www\areeban\register\register.php on line 247 Which is this lane: move_uploaded_file($_FILES["file"]["tmp_name"],"../user_Images/". $newname); I am quit newb to php and not sure how to add the isset into this line. Youssef
  19. fadia123 posted a topic in Server Side
    Hi, I am trying to let user upload image into a folder here is the code I am using: The input inside the form is : <input type="file" name="file" id="file" /> The Php code: $fileUploaded = $_FILES["file"]["name"]; $fileUploaded = str_replace("#", "No.", $fileUploaded); $fileUploaded = str_replace("$", "Dollar", $fileUploaded); $fileUploaded = str_replace("%", "Percent", $fileUploaded); $fileUploaded = str_replace("^", "", $fileUploaded); $fileUploaded = str_replace("&", "and", $fileUploaded); $fileUploaded = str_replace("*", "", $fileUploaded); $fileUploaded = str_replace("?", "", $fileUploaded); if ((($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["type"] == "image/jpeg") || ($_FILES["file"]["type"] == "image/png")) || (empty($fileUploaded)) && ($_FILES["file"]["size"] < 50000)) { $newname = "1.jpeg"; move_uploaded_file($_FILES["file"]["tmp_name"],"../user_Images/". $newname); } And I am getting this error: Notice: Undefined index: file in C:\Program Files\EasyPHP-5.3.8.0\www\areeban\register\register.php on line 81 Notice: Undefined index: file in C:\Program Files\EasyPHP-5.3.8.0\www\areeban\register\register.php on line 187 Notice: Undefined index: file in C:\Program Files\EasyPHP-5.3.8.0\www\areeban\register\register.php on line 188 Notice: Undefined index: file in C:\Program Files\EasyPHP-5.3.8.0\www\areeban\register\register.php on line 189 Notice: Undefined index: file in C:\Program Files\EasyPHP-5.3.8.0\www\areeban\register\register.php on line 191 $fileUploaded = $_FILES["file"]["name"]; is Line 81 if ((($_FILES["file"]["type"] == "image/gif") is Line 187 Youssef
  20. I just switched it with the search (left and right), isn't that what you meant? Youssef
  21. Thank you, I have just made these changes, looks empty little bit, but better. many thanks
  22. Thank you for your reply, this worked perfect. I will swap to class too
  23. Hi, I just finished my website, I will appreciate any feedbacks. Any ideas to improve it too please. The url is: www.areeban.com Youssef
  24. Hi guys, If you view my website contact page in IE8 you will that under the submit button there are a thick border and the back ground continue after that, which I don't want it to do, if you view it in google chrome and ff you see that it does not do that and it is tidy, how to solve this issue in IE8. Web page: http://siblinis.com/KensingtonBuilders/contact.php Youssef
  25. I think it is using Georgia, thank you again.

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.