| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Senior Member | Good project to better my php skills? What would be a good project to better my php skills? Im new at php and finish coding a simple script at: http://www.netsnatch.com/script (which checks to see if the entered domain contains a valid license) I dont think im ready with mysql, as most of the mysql information in the above script was copied from other scripts i bought. |
| |
| | #2 (permalink) |
| Buy my domains. | http://www.netsnatch.com/script/ Doesn't work. ![]() MySQL basically has 3 commands (insert, select, update; the others aren't used as much) that you need to know. It isn't hard at all. |
| |
| | #3 (permalink) |
| Senior Member | im working on making the script do more right now so it may give errors at times. The things im not understanding right now about mysql is mysql_query mysql_fletch_array etc. Edit: How can i get the number in a row in the database? Code: <? $query = "SELECT downloads FROM counter WHERE id='1'"; $result = mysql_query($query); $myrecord = mysql_fetch_row($result); echo''.$myrecord.''; ?> Last edited by killaklown; 07-04-2006 at 07:52 PM. |
| |
| | #4 (permalink) |
| NamePros Regular | i would use mysql_fetch_array().
__________________ Free WebProxy // ProxBot!ImagePros.us - FREE Image Hosting! Try us out www.team-shock.com |F.L.U.M.P Mutuo 100%|Partito Di Dio X-Box Advice | LazyArcade.com | Itachi.info |
| |
| | #5 (permalink) |
| Buy my domains. | Use mysql_fetch_array instead of mysql_fetch_row. I don't know why you are doing echo '', since the '' doesn't do anything. $myrecord is an array with the row you got from the database. If you do mysql_fetch_array instead of mysql_fetch_row, you can do $myrecord['something'], where something is the name of the column in the database. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |