Search found 9 matches

by drumking88
Thu Apr 15, 2010 7:54 am
Forum: PHP - Code
Topic: So simple, yet not working
Replies: 4
Views: 321

So simple, yet not working

I can't believe this, but my simple query isnt working. My code is as follows: (all database configs are already included at the top of the page. $bName = $_POST['building_name']; $delete_query1 = "DELETE FROM locations WHERE Name = '$bName'"; $delete_query = mysql_query(($delete_query1));...
by drumking88
Sun Feb 14, 2010 4:18 pm
Forum: Javascript
Topic: Line Breaks Using Google Maps
Replies: 0
Views: 571

Line Breaks Using Google Maps

I'm trying to have a line break in my google map code. I'm using V2 of the API. My code is as follows: (p.s The PHP variables are showing up fine.) <!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN"   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://ww...
by drumking88
Sat Dec 05, 2009 8:12 am
Forum: Javascript
Topic: Google Maps Problem ;(
Replies: 0
Views: 450

Google Maps Problem ;(

I am currently trying to get the center of a point on a Google Map. Ive used the Google Maps API to get the map, and am trying to get the Lattitude, Longitude values. My Javascript code is: script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></scri...
by drumking88
Tue Sep 22, 2009 4:44 pm
Forum: PHP - Code
Topic: Searching glitch (mysql database)
Replies: 2
Views: 194

Re: Searching glitch (mysql database)

Got it working!

Beautiful percentage variable!
by drumking88
Tue Sep 22, 2009 3:23 pm
Forum: PHP - Code
Topic: Searching glitch (mysql database)
Replies: 2
Views: 194

Searching glitch (mysql database)

Ive been trying to create a system where the user can search through a table of tracks by inputing the name of the track. The problem is that the code works for one word songs like "Bonkers" or "Beautiful", but anything more than that it falls to pieces.     Search by Track Title...
by drumking88
Mon Sep 21, 2009 8:31 pm
Forum: PHP - Code
Topic: Pagination, PHP Search Results
Replies: 5
Views: 231

Re: Pagination, PHP Search Results

print "<a href="products.php?page_number=$i">$i</a>"; You have to escape your quotes :). It should be: print "<a href=\"products.php?page_number=$i\">$i</a>"; Glad you're taking the initiative and actually trying to figure this out. i Just figured that out as...
by drumking88
Mon Sep 21, 2009 8:17 pm
Forum: PHP - Code
Topic: Pagination, PHP Search Results
Replies: 5
Views: 231

Re: Pagination, PHP Search Results

You might find this guide helpful: http://www.webpronews.com/expertarticles/2006/06/20/php-pagination-with-mysql Thank you Mirge for your reply. I read the tutorial you linked me to, but alas have fallen into deep waters once again. <?php //Database connection parameters mysql_connect("localho...
by drumking88
Mon Sep 21, 2009 7:27 pm
Forum: PHP - Code
Topic: Pagination, PHP Search Results
Replies: 5
Views: 231

Pagination, PHP Search Results

I am currently trying to fix a bug in a requests system which I have designed in PHP for my radio stations new website. In a nutshell: There is a text field (part of a form) which the user fills in. Upon pressing submit, the user is then presented with the search results (from an SQL Query, using a ...
by drumking88
Tue Apr 28, 2009 4:36 pm
Forum: PHP - Code
Topic: general directory crawling problems
Replies: 0
Views: 98

general directory crawling problems

I am trying to get a searcher working as part of a project and am a little confused. I need to be able to get the html content from all the files in the directory, sub director(ies) and dump it into a mysql database. I have no problems connecting to a database, but I think this code is causing probl...