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.

SpikeZ

Members
  • Joined

  • Last visited

  1. Pretty well what the error message said! Foreach iterates through an array, if you dont give it an array then it cant iterate and throws the error.
  2. in your form simply use the action attribute: <form name="contactForm" id="contactForm" action="http://myPHPserver.com/formProcess.php">
  3. You are welcome
  4. Darren, you need to JOIN the tables on their common fields and alias them. This probably wont run as is because I dont know your field names but it should give you an idea. select t1.product_id as t1_p_id , t1.product_name as product_name , t2.product_id as t2_p_id , t2.category_id as t2_cat_id , t3.category_id as t3_cat_id , t3.category_name as t3_cat_name from table_1 as t1 left join table_2 as t2 on ti_p_id = t2_p_id left join table_3 as t3 on t2_cat_id = t3_cat_id
  5. If you have access to an different php enabled server you could direct the form action to that server instead. Then process the form and redirect back to the original site. Bit of a hack but it works.
  6. Hi, you cant start a class definition with a number so .64x64 wont parse properly. Change it to .div64x64 and amend your HTML code accordingly and it will work fine
  7. SpikeZ replied to robcub's topic in Server Side
    http://uk3.php.net/uniqid read the user submitted notes.
  8. TBH I did the same! Wasnt until I set it up on a testbed that I noticed.
  9. hey Drew Answered this on SitePoint but will post here too. You have: <input name="userfile[]" type="file" /> remove the [] as it creates a multidimentional array when the form is subitted. That kills the error checking.
  10. phpDesigner 2008 for me, there are 2 editions - personal which is FREE and Pro which has a small fee. Tons of features if you want them as well as project management, file management and auto complete.
  11. Hi again DFT, The problem stems from the location of the first $result variable. It is inside the first if() clause and so will only exist IF the form has been submitted. You then call the variable outside of the if() before the form has been submitted and so the variable hasnt been created yet - giving you the error. I would guess that moving the { on line 10 down to where the else is on line 16 would do the trick. <?php include("config.php"); if (isset($_POST["submit"])) { $txt = $_POST['txt']; $txt = mysql_real_escape_string($_POST['txt']); $result = mysql_query("UPDATE content SET txt='$txt' WHERE id='1'", $db); if ($result) { echo "<meta http-equiv=Refresh content=0;url=index.php>"; } } else { $result = mysql_query("SELECT * from content WHERE id='1'", $db); while ($row=mysql_fetch_assoc($result)){ require('fckeditor/fckeditor.php'); $oFCKeditor = new FCKeditor('txt'); $oFCKeditor->BasePath = 'fckeditor/'; $oFCKeditor->Value = $row['txt']; $oFCKeditor->Height = '300'; $oFCKeditor->Create(); } } ?>
  12. Hi again DFT, The problem stems from the location of the first $result variable. It is inside the first if() clause and so will only exist IF the form has been submitted. You then call the variable outside of the if() before the form has been submitted and so the variable hasnt been created yet - giving you the error. I would guess that moving the { on line 10 down to where the else is on line 16 would do the trick. <?php include("config.php"); if (isset($_POST["submit"])) { $txt = $_POST['txt']; $txt = mysql_real_escape_string($_POST['txt']); $result = mysql_query("UPDATE content SET txt='$txt' WHERE id='1'", $db); if ($result) { echo "<meta http-equiv=Refresh content=0;url=index.php>"; } } else { $result = mysql_query("SELECT * from content WHERE id='1'", $db); while ($row=mysql_fetch_assoc($result)){ require('fckeditor/fckeditor.php'); $oFCKeditor = new FCKeditor('txt'); $oFCKeditor->BasePath = 'fckeditor/'; $oFCKeditor->Value = $row['txt']; $oFCKeditor->Height = '300'; $oFCKeditor->Create(); } } ?>
  13. Have a look at http://uk.php.net/htmlspecialchars(). it converts charcters to their html entities
  14. That seems a more than logical idea
  15. You are most welcome DFT

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.