• (2 Pages)
  • +
  • 1
  • 2

mySQL & PHP: A Beginners Look Rate Topic: ***** 1 Votes

#16 moopet  Icon User is offline

  • binary decision maker
  • member icon

Reputation: 339
  • View blog
  • Posts: 1,185
  • Joined: 02-April 09

Posted 28 August 2010 - 01:26 PM

This is a good tutorial. However, one thing I noticed was that you said that dropping back to HTML and displaying the PHP variables in their own tags was faster. I've not got any data to back it up but I think that's wrong. It's not like the PHP interpreter is only seeing certain parts of the file; the whole file is being passed through, so it shouldn't matter. In fact, if anything, your way might be slower since it's making two separate calls to PHP's internal print function rather than bundling them together.
Was This Post Helpful? 0
  • +
  • -

#17 Jfrans  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 24-November 10

Posted 28 November 2010 - 10:16 PM

:nervous: Kudos you did good by posting that code but i find it hard to implement in my every practise because i have a problem when it comes to running php...... Please i need straightforward guide on how to execute php mysql....... I have installed wampserver and i want to write my codes in notepad. so please somebody help.... I'm completely stack........
Was This Post Helpful? 0
  • +
  • -

#18 kabuto178  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 130
  • Joined: 29-January 11

Posted 30 January 2011 - 11:48 AM

Thanks for this lil tut appreciate it! helped alot
Was This Post Helpful? 0
  • +
  • -

#19 JamesConley  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 19
  • View blog
  • Posts: 341
  • Joined: 09-March 09

Posted 02 February 2011 - 12:48 AM

This is great! I've just recently started learning PHP and this very helpful!

Thanks!!
Was This Post Helpful? 0
  • +
  • -

#20 Guest_Vaibhav*


Reputation:

Posted 14 February 2011 - 08:22 AM

I have WAMP2.0i server at my PC.The code I have written is

<?php
$server = "localhost";
$username = " ";
$password = " ";
$dbname = "Bank1";
$con = mysql_connect("$server","$username","$password");
mysql_select_db("$dbname");
?>

but is not executing on serverside.The databse is not getting created.
Was This Post Helpful? 0

#21 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10367
  • View blog
  • Posts: 38,403
  • Joined: 27-December 08

Posted 14 February 2011 - 08:35 AM

That selects the database, but doesn't create it. You shouldn't be creating a database or dealing with DDL commands on the PHP side of things.
Was This Post Helpful? 0
  • +
  • -

#22 latino321  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 10-November 10

Posted 16 February 2011 - 11:16 AM

thanks, it was very useful and easy to follow
Was This Post Helpful? 0
  • +
  • -

#23 azizmuda  Icon User is offline

  • New D.I.C Head

Reputation: -4
  • View blog
  • Posts: 33
  • Joined: 14-February 11

Posted 18 March 2011 - 01:31 AM

nice tutorial :) :online2long: :online2long:
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2