ldougherty
-
Posts
319 -
Joined
-
Last visited
Never
Posts posted by ldougherty
-
-
Another good way to see the error is via a tool such as phpmyadmin. You can run the query via the GUI and see the error it spits out.
If the query itself works fine in phpmyadmin then it is likely the values are not coming into the script as expected.
-
You will want to use mysql_fetch_array to retrieve the values in the array returned in the $masterid value.
You can see a good working example at http://www.tizag.com/mysqlTutorial/mysqlquery.php
-
You will want to use the array_multisort function
-
That is exactly correct, it should be..
<?php $results = mysql_query("SELECT masterid FROM lockers WHERE lockerno = '01' LIMIT 0, 30"); while($values = mysql_fetch_array($results)){ //results from mysql are put in an array and each row is looped //set $timeout, $dateout and $storetimeout $resultsU = mysql_query("UPDATE lockersmaster SET timeout = '$timeout', dateout = '$dateout', storetimeout = '$storetimeout' WHERE id=" . $values['masterid']); ?>
-
You'll want to use the Win32Service
http://de.php.net/manual/en/book.win32service.php
Google has a couple good results for windows service management php
-
Depends on the type of calendar, if you are referencing the nice popup type calendars that would be Javascript. There are a lot of scripts to choose from via a Google search, namely
-
I'm sure there are people here who can "assist" you in getting PHP/PHPmyAdmin working without expecting payment.
What exactly is the issue? When you try and access phpmyadmin what happens? The more information you can provide the easier it will be to help you troubleshoot the problem.
-
this should already be configured, how is your form data being sent via GET or POST?
On the line that says <FORM METHOD=??> what is the method?
If it is POST then you should retrieve the value as $_POST['quantity'] or if it is GET then you should retrieve the value as $_GET['quantity']
-
There is a good working tutorial of creating an excel spreadsheet with PHP at the following URL:
http://www.999tutorials.com/php/create-excel-files-with-php/
-
http://dev.mysql.com/doc/refman/5.0/en/char.html
The length prefix indicates the number of bytes in the value. A column uses one length byte if values require no more than 255 bytes, two length bytes if values may require more than 255 bytes.
-
If the .htaccess file breaks your site (500 Internal Server Error) you would need to contact your host to have them add the entry to the Apache configuration (httpd.conf) file.
-
Try adding this to the top of the script.
ini_set('display_errors', 1);
error_reporting(E_ALL);
The script not doing anything is likely a PHP error, these lines will display the error if any exists when the script is executed.
I assume you've created the excel.php file as well in the same file path right?
-
Information in the database does not automatically make it information in a session. The reason you are able to output the username with $_SESSION['SESS_FIRST_NAME'] is because you must be setting this somewhere in your code first.
To take the image from the database and make it the image for that particular user on the session you would query the database to get the image path and then assign that image path as a session image variable.
Hope that makes sense.
-
So I take it you just copied the script from the URL you posted right, if so what happens when you try and run the script?
It should be creating an excel file in your site root.
-
What exactly are you trying to do with the POST variables before sending them off with email? In the formmail.pl script there is a section which redirects the user on success, you may be able to interpret that into doing what you want.
I'd personally just not use the formmail.pl script because you could then just use php mail() to send mail at any point in your script and use the variables to do whatever else you want too.
-
Is there a reason your not storing them as DATE type in the database? I suspect the comparison is where you are having the issue as though you believe the variable states a certain time comparing is against another format would cause an issue.
http://dev.mysql.com/doc/refman/5.0/en/datetime.html
-
Your individual member profiles are module based out of a completely different directory.
for example..
http://usfthetatau.org/modules/Alumni/Alpha/AndrewOrtoski.htm
These modules load inside of the iframe as this is where they are clicked on and the iframe itself has a specific target for them.
If you can show us the source for the iframe page of alumni so we can see how exactly it loads and calls the particular members we'd be able to give you a better idea of how to call the alumni page and specify a certain user.
-
Am I missing something, the logic says if the session is set to redirect the user with the header and you then have die after that.
Why would you expect it to ever get to the die statement when it is redirecting the user?
-
After this line:
$count=mysql_num_rows($result);
You should echo the value of $count to see if it is what you expect it to be.
If it is not then you need to go higher in your code and output variables before they are processed to see exactly what is not working.
-
You can retrieve the visitors IP address using $_SERVER variables, namely..
$ip=$_SERVER['REMOTE_ADDR'];
Now that you have the IP you can query a database online that is updating to locate the IP to a physical region.
If you check out the following link he explains how he implemented this onto his site.
-
Are you still getting a 404? I can access the download without any problems.
http://apache.siamwebhosting.com/httpd/httpd-2.2.12-win32-src.zip
-
Since you are trying to specify the full path you would need to include the full path in your php.ini under your include_path directive.
C:\xampp\htdocs\sub\bubble\cms\lib\
-
Found this script online...
http://www.handyphp.com/index.php/PHP-Resources/Handy-PHP-Functions/ordinal_suffix.html
Another good one here..
http://www.talkincode.com/create-ordinal-numbers-with-php-382.html
function getOrdinal($number){ // get first digit $digit = abs($number) % 10; $ext = 'th'; $ext = ((abs($number) %100 < 21 && abs($number) %100 > 4) ? 'th' : (($digit < 4) ? ($digit < 3) ? ($digit < 2) ? ($digit < 1) ? 'th' : 'st' : 'nd' : 'rd' : 'th')); return $number.$ext; }
-
Maybe there is an issue with the database server connection, ie the database server isn't reliable?
Try changing
// Table name
mysql_connect ("$host, $username, $password") or die ("cannot connect");
to
mysql_connect ("$host, $username, $password") or die(mysql_error());
This will give you the actual mySQL error.
CSS Interfering with larger screen resolutions.
in CSS Help
Posted
Are you talking about how the inntertube style has the scroll bar rather than the outside browser?
If you can explain more about what you are talking about versus what you expect it to see I'm sure people would be better able to assist you.