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.

PHP or Ajax?

Featured Replies

Based on WDF members experience, is it more worthwhile to build an interactive web site/application (with MySQL backend) using PHP for the legwork (calculations, writing to the DB, reading from the DB etc) and using CSS to style the HTML output, OR going Google and using Ajax (on top of MySQL)?

 

The application itself is a stock exchange. It's not for a client/project but to learn new skills prior to uni in September. Although I have no experience of working with JavaScript I am comfortable with HTML/CSS, PHP, MySQL and C (which looks similar in style to JavaScript and PHP).

 

Any tips/pointers/wisdom greatly appreciated :D

The best way I'd suggest is first building the application using PHP and MySQL so you know it's not dependent on JavaScript. You can then enhance the site with fancy AJAX effects, and still have it work when people have JS disabled.

 

I just add a remote.php file which handles the AJAX requests, and send the appropriate response back to the page.

Agreed, build it up with the fundamentals, get everything working nicely, then just sex the whole thing up. Cutting out people without js support wouldn't be good (think mobile browsing).

 

but worse come worse, just make sure there's a usable php backup encase Ajax fails for w.e reason (a simple typo stripping an entire site of functionality wouldn't be too pleasing to see).

  • Author

Thanks for the help guys :)

Ajax used to retrive data from database with out refreshing browser window. Which greatly help to reduce access time of site or online software. And also increase efficiency of site

 

first you should need built the site with php my sql if you have little or no idea about ajax then you should need to change portion of site to ajax implemention where need to show data changing with out refreshing browser window.

Create an account or sign in to comment

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.