- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 18
- Posts with Upvotes
- 14
- Upvoting Members
- 10
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
I'm a pilot who enjoys programming.
- Interests
- Flying, mountain biking
22 Posted Topics
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
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` … | |
Re: 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 … | |
Re: 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) | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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'); … ![]() | |
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 … | |
Re: 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 … | |
Re: 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. | |
Re: All you need to do is change $_POST to $_POST['family']. | |
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 … |
The End.