Beginner PHP Tutorial - 115 - SELECT Part 1

Beginner PHP Tutorial - 115 - SELECT Part 1

thenewboston

13 лет назад

99,503 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Unfiltered Opinion
Unfiltered Opinion - 12.01.2018 15:05

All msql tags used in thesw tutorials are outdated.

Ответить
christofer i
christofer i - 05.11.2017 17:40

$con = mysql_connect("localhost" ,"root" , "");
if(!$con){die(" could not conect".mysql_error());}
mysql_select_db("boston" ,$con );

Ответить
ptrchovan
ptrchovan - 03.10.2016 15:20

Ok.. And what if I want to log in as different user with different privileges. I tried to create new user in phpmyadmin but when I change name and password in php file it always end up with error

Ответить
stephen cabreros
stephen cabreros - 01.10.2015 12:47

i got an query failed didnt notice i did not use this `

Ответить
Snajperist
Snajperist - 31.05.2013 03:50

use backticks ` inside query these are not single-quotes or an apostrophe!

Ответить
WegHuZ Weggans
WegHuZ Weggans - 24.02.2013 19:54

Awesome tutorials, it's great! :))))

Ответить
dirtyweasel
dirtyweasel - 23.01.2013 23:21

i type on an international keyboard. I have like a bunch of characters ,' ńǹ , sorry i forgot that.

Ответить
smosherx
smosherx - 30.12.2012 10:26

hes talking about when using PHP code. You will have to use something like this to use an apostrophe; echo ('don'/t')

Ответить
Chad Bowman
Chad Bowman - 20.12.2012 06:20

ALEX YOU FUCKIN ROCK!

Ответить
gedq
gedq - 24.11.2012 18:55

hrd to tell from that but it looks likse you're using single inverted commas rather than backticks. it's a bit naughty but easier to leave them off - SELECT food, calories FROM food you don't need order by id, it's the default sort field.

Ответить
paul deleon
paul deleon - 16.11.2012 08:06

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''food' ORDER BY 'id'' at line 1 $query = "SELECT 'food', 'calories' FROM 'food' ORDER BY 'id' ";

Ответить
Talk Of The Town
Talk Of The Town - 22.06.2012 20:26

he does that to let you know that the file is being included into another file.

Ответить
vilivan1
vilivan1 - 26.05.2012 15:58

Just for tutorial Purposes.

Ответить
Red Zambala
Red Zambala - 10.05.2012 15:53

Connect 'OK' , 'Query failed'

Ответить
dirtyweasel
dirtyweasel - 03.05.2012 20:38

remember that single quotes are not apostrophes. There is a difference and I made the mistake. Look out for that.

Ответить
pancake
pancake - 18.02.2012 11:35

@LetsSpotIt it stands for "include". like an "include" file that index.php needs. either "include" or "require".. same thing.

Ответить
LetsSpotIt
LetsSpotIt - 14.02.2012 18:10

what does 'inc' stand for in the file name?

Ответить
FFWDEntertainment
FFWDEntertainment - 11.11.2011 12:03

Should of set healthy_unhealthy to U by default just like real life :p

Ответить
Mark Jericho
Mark Jericho - 17.07.2011 17:44

its not working for me... it only sends me to the index of php?

Ответить
Nahiyan Alamgir
Nahiyan Alamgir - 16.07.2011 12:55

@Dalwanaage Cause he doesn't proper sense at all.

Ответить
mlg
mlg - 14.06.2011 21:17

great tut

Ответить
HAADKA FANKA
HAADKA FANKA - 07.05.2011 02:02

Why using bad language please.

Ответить