This is a discussion on "php noob in training" within the PHP Forum section. This forum, and the thread "php noob in training are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
php noob in training
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
php noob in training
hi all,
first off thanks to any help i receive. ok, i am being given an open book test in a way to asses my current knowledge (zero) of php. i am just scrutinizing and breaking it down so that i can understand what the .... is going on. i will have many questions no doubt. here is what i'm looking at right now: Code: select distinct '** ERROR ** NULL Character in : primary_mst.box_addr_stop=' || box_addr_stop Alert from primary_mst where substr(box_addr_stop,1,1) is NULL or substr(box_addr_stop,2,1) is NULL or substr(box_addr_stop,3,1) is NULL or substr(box_addr_stop,4,1) is NULL or substr(box_addr_stop,5,1) is NULL or substr(box_addr_stop,6,1) is NULL or substr(box_addr_stop,7,1) is NULL or substr(box_addr_stop,8,1) is NULL; here is what i'm to do: Code: Include information about the type of query, the data (if any) the query returns, what (if anything) the query is looking for, and any messages the query produces under various circumstances. first question: am i just supposed to pop this into phpmyadmin and write down error msgs, results, etc...? i really need to know what is being done by this code here. i can identify substr may mean substring... and that the person is trying to possibly look for errors in a variable or table called: primary_mst.box_addr_stop am i right in guess that? please if anyone could just explain it to me what is going on here. thank you , it is much appreciated any help. first thoughts: .. looking for errors in a table called: box_addr_stop what does =' mean? what does primary_mst. mean? is it that primary_mst. is the name of the table and the box_addr_stop is a variable containing data in that table? this is an array? are the numbers locations of cells? |
|
|
|
#2
|
||||||
|
||||||
|
Re: php noob in training
Quote:
Quote:
Quote:
Quote:
** ERROR ** NULL Character in : primary_mst.box_addr_stop= That's why this is sucha bizaree looking query. How do you select a distinct ** ERROR ** NULL Character in : primary_mst.box_addr_stop= Quote:
Quote:
HTH a little. Maybe someone with industrial strength sql knowledge can shed more light on this. Good luck! |
|
#3
|
|||
|
|||
|
Re: php noob in training
wow, ok thank you grande. you've been a big help.
here is my next one: can you break this down for me as well?
Last edited by esostigma; May 11th, 2007 at 05:48. |
|
#4
|
|||
|
|||
|
Re: php noob in training
Quote:
Basically you're looking for some records in a field called "box_name_change" in a table called "primary_mst". The section that I've highlighted in orange is basically saying, show me records where the box_name_change field is set to a value that is less than 0001 or greater than 99999999 but not equal to 00000000 and not equal to '' (nothing/empty). Most likely this query would return no records unless there are records where box_name_change has a value greater than 99999999. "distinct" means don't show me duplicate rows. The two vertical lines means "or", but the stuff in blue, purple and red is totally Greek to me. It's interesting that this is a PHP course, since the focus appears to be on SQL. FYI - there's a great resource for learning the basics of SQL here: http://www.sqlcourse.com - I highly recommend it. You can breeze through it pretty quickly and it will help you to understand better some of what's going on here. |
|
#5
|
|||
|
|||
|
Re: php noob in training
ok super great response amigo, thank you so much. question: what is this---> ** WARN **
and what is this from the first one at the top of the post: ** ERROR ** |
|
#6
|
|||
|
|||
|
Re: php noob in training
No idea. Sorry.
|
|
#7
|
|||
|
|||
|
Re: php noob in training
that's ok, thank you!
|
![]() |
| Tags |
| phpmysql |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Training Colleges | Merlin | Webforumz Cafe | 1 | Sep 10th, 2007 23:23 |
| Training Courses | crackafaza | Webforumz Cafe | 16 | Aug 30th, 2007 11:38 |
| on-line training | n1gel65 | Starting Out | 2 | Jun 11th, 2007 16:27 |
| javascript training | JimNewsome | JavaScript Forum | 3 | Sep 13th, 2006 13:49 |
| UK IT Training company please help | ash16 | Job Opportunities | 0 | Apr 4th, 2006 10:36 |