Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
94% Quality Score
Upvotes Received
18
Posts with Upvotes
14
Upvoting Members
10
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
3 Commented Posts
1 Endorsement
Ranked #858
Ranked #2K
~15.9K People Reached
About Me

I'm a pilot who enjoys programming.

Interests
Flying, mountain biking
Favorite Tags

22 Posted Topics

Member Avatar for larry29936

Larry, it looks like you have a few things going on there. First, I'm assuming your download folder is in the same folder that your download script is in. You don't need the "/" before download. That makes the function step back up the tree one folder. Second, you need …

Member Avatar for Dani
1
2K
Member Avatar for Dani

I didn’t do much investigating, but here’s another data point. When I open the link, it appears to load the page completely before attempting to load something and then crashing. I saw your recent discussion of loading css for mobile via js. Maybe it’s the js and not the css …

Member Avatar for Dani
1
2K
Member Avatar for Kathy B

Kathy, when you submit via post, the values are being sent as strings. So in File 2, change the line `if($cityID == 0)` to `if($cityID == "0")`. When testing code like this, I would recommend changing the redirect to a printout of the posted value. That method has helped me …

Member Avatar for Biiim
0
1K
Member Avatar for Eugene_15

It looks like you're trying to mix JS with PHP here. You need to add some code to the ajax success function to do something with the result. From the code you posted, I'm not sure you're actually getting the result you want. But if you are, this code should …

Member Avatar for grant.baker
0
211
Member Avatar for Hamis_3

Because you are including idadi.php along with your form, it would reset the value to "0" if the page is loaded without any `$_GET` data sent. I'm not an expert in writing AJAX requests without using a framework, but it looks like what you have might be loading the form …

Member Avatar for grant.baker
0
304
Member Avatar for grant.baker

Consider the following query: //$fix and $limit are dynamic values $query="SELECT ICAO_Ident AS ID, Location_Identifier AS LocID, Official_Facility_Name AS Name, Landing_Facility_Type AS AptType, Associated_State_Post_Office_Code AS State, Associated_City_Name AS City FROM APT WHERE `Location_Identifier` LIKE '%$fix%' OR `ICAO_Ident` LIKE '%$fix%' OR `Official_Facility_Name` LIKE '%$fix%' OR `Associated_City_Name` LIKE '%$fix%' ORDER BY `ICAO_Ident` …

Member Avatar for grant.baker
0
277
Member Avatar for Stefce

It appears that the action is not set on your page. It's just `<form method="POST" action>`. When setting the page to `<form method="POST" action="navigation.php">`, the browser loads only navigation.php as expected, which appears to be your navigation sidebar. It also throws a `Call to undefined function getuserdata()` error, which I …

Member Avatar for Stefce
1
441
Member Avatar for ramsiva

Instead of setting search.php as your source, you will need to set your source as a function with an ajax call to search.php. See the jQuery UI documentation on how to do this [here](http://jqueryui.com/autocomplete/#remote-jsonp)

Member Avatar for Dani
0
154
Member Avatar for grant.baker

Ok, what I'm trying to do is have next and prev buttons to navigate through a mysql database sorted by date. Currently, the code I wrote does this, but gets stuck on duplicate dates. $Next = mysql_query("SELECT * FROM $logbook WHERE Date>='$Date' AND ID!='$ID' ORDER BY Date LIMIT 1"); $Prev …

Member Avatar for raybigto
0
3K
Member Avatar for grant.baker

So I've got a php script that emails me a daily database backup via cron. The script will either output success or failure upon mail->send(), and it always succeeds. However, no email ever is delived *if* the domain name is the same (i.e. www.example.com and myself@example.com), but if I send …

Member Avatar for Borzoi
0
229
Member Avatar for grant.baker

Hi, I'm having trouble figuring out how to prevent the default tab action when using jquery ui catcomplete. It works perfectly until I add the catcomplete widget code. I'm using the catcomplete widget code found on jquery ui.com: $.widget( "custom.catcomplete", $.ui.autocomplete, { _renderMenu: function( ul, items ) { var that …

Member Avatar for grant.baker
0
629
Member Avatar for grant.baker

I'm trying to sum all numeric fields individually. I won't always know the field names, otherwise I could manually construct the query `SELECT SUM(Field1) as Field1, SUM(Field2) as Field2...etc FROM myTable` Is there a way to construct this on the fly in mysql? I'm thinking there's probably a way to …

Member Avatar for grant.baker
0
245
Member Avatar for grant.baker

I'm having a problem with a MYSQL Join accross three tables. I'm new to MYSQL Join functions, and can't quite figure out how to write the code. My current code is horribly innefficient and does not implement explicit joins, which I believe is much of the problem. Here it is(in …

Member Avatar for pixelsoul
0
251
Member Avatar for grant.baker

Hi I'm working on a form validation script. Up to this point, I've only written very basic regex validations. The input that I'm trying to validate should have entries in the following format AAA111 separated by comma space. So some sample entries are : `ABC111` or `ABC111, ABC112, ABC113`. Here's …

Member Avatar for grant.baker
0
291
Member Avatar for kn3rdmeister

Maybe instead of two columns for month/year, use one column with the date formated as whatever month/year format you like, then select unique entries from that column for the unique months.

Member Avatar for pritaeas
0
674
Member Avatar for vindom

Hi, I haven't done any work with images in a database, so I'm not much help to you there. As for your second problem, if you want to either enable or disable all of the links based on if the user is logged in, then I would make two separate …

Member Avatar for grant.baker
0
294
Member Avatar for don't give up

First, I'm wondering why you're using frames? If you're wanting to have consistent banner and navigation portions of the page without having to write it into each page, just use php's `include_once()` statement. You're page (say index.php) may then look something like this: <html> <div style="width:1000px;margin:auto;border:1px solid black;"> <div><?php include_once('banner.php'); …

Member Avatar for diafol
0
109
Member Avatar for grant.baker

I have a page that I wrote to upload a text file to a mysql database. The text file has thousands of lines and each line is a separate database row. An identifier at the beginning of each line tells me which table to insert the line into in the …

Member Avatar for grant.baker
0
923
Member Avatar for apa3

cereal's code will work perfectly if you need to split it into strings of the same length. To split it into variable lengths, then you should use substr() [URL="http://php.net/manual/en/function.substr.php"]http://php.net/manual/en/function.substr.php[/URL] like this: [CODE]$string = file_get_contents('file.ext'); $array[].=substr($string,a,b); //a is where you start your string. First character in a string is at position …

Member Avatar for apa3
0
246
Member Avatar for Waardii

When the button is clicked run a mysql query like:[CODE]UPDATE MyTable SET MyColumn=MyColumn+1 Where MyID=123[/CODE] You would probably want to use JavaScript to load a file with the update code in a hidden div instead of reloading the whole page so it's more seamless for the user.

Member Avatar for karthik_ppts
0
3K
Member Avatar for QuaminaIT
Member Avatar for grant.baker

Hello all, I've been having an issue with php variables recently. I don't have much experience working with sessions, but I know that domain.com and [url]www.domain.com[/url] are viewed differently when working with sessions. The problem I have is with included files. I am calling .../logbook/header.php from ...logbook/Graphs/index.php. When I use …

Member Avatar for grant.baker
0
227

The End.