
kalpz
Beta Tester-
Posts
128 -
Joined
-
Last visited
Everything posted by kalpz
-
Have you checked Apache error log? Can be viewed in apanel? Lets see if the errors are actually there...
-
I know you have print errors on but double check phpinfo() and find "display_errors". Are you sure that's ON? Also, check for "short_open_tag" or something similar, make sure that's ON too..
-
Can there possablely a direct link for the uniserver
kalpz replied to markitzero's topic in Uniform Server - Windows
Thanks Ric, I always forget to check the md5 stuff. -
Can there possablely a direct link for the uniserver
kalpz replied to markitzero's topic in Uniform Server - Windows
Hi, Which version do you need? Edit: I have uploaded the latest version to my server. You can download it from here: http://www.atomicwebhosting.com/dl/UniServer5_6_11.exe. The file size is 9mb. -
Newbie question: error conecting to MySQL server
kalpz replied to MordoSairon's topic in Programming & Web Design
Hi there, You only need to connect to localhost without any port. MySQL runs on port 3306 by default. Please try: $dbhost = "localhost"; If you are still having a problem.. find this code: mysql_connect($dbhost, $dbuser, $dbpass); and ensure it looks like this: mysql_connect($dbhost, $dbuser, $dbpass) or die (mysql_error()); This will show a better error - you may show us this so we can further determine what is happening. -
Hi check out the main page here - http://www.uniformserver.com/ - and you can read what it is about. In a nut shell, it is an out of the box web server package for windows. You can run your own web sites from your own internet connection at home.
-
Uniform Server 5.5a runs with PHP version 5.2.12. You shouldn't need to downgrade to 5.2.9. Also - there is a configuration problem with PHP causing the phpMyAdmin to not work.. Do you have MSN or Yahoo? I could find the problem for you if you would like me to? you may PM me.. Kalpz
-
Yes that is correct. Try it out first to ensure your phpMyAdmin works. Then make your changes one at a time testing phpMyAdmin in between... Good luck
-
The easiest and quickest way to resolve this problem is to actually upgrade your server. You may as well skip the fix step Download Uniform Server 5.5a Nano. Put it in say, C:\55a\ (example) Your existing will be C:\40\ (example) Copy all files in C:\40\udrive\www\ Paste into C:\55a\www\ Copy all files in C:\40\udrive\usr\local\mysql\data\ Paste into C:\55a\usr\local\mysql\data\ Stop 4.0 server Start 5.5a and you should be OK. Kalpz
-
Hello, You mentioned you copied those files into PHP's extension directory. From where did these files come from? If they were from a PHP source download from www.php.net, did you download the same PHP version you have? Kalpz
-
Hello, Please try this.. Browse to: /usr/local/php/extensions or /ext In there you should find, php_mysql.dll and php_mysqli.dll. If so proceed.. Open: /usr/local/php/php.ini Find: extension=php_mysql.dll Find: extension=php_mysqli.dll Remove both semi-colons ( ; ) at the beginning of each line. Reply if you have further problems. Kalpz
-
Hi, Have you tried rebooting your computer? Sometimes this is a quick fix for files in use, so try that first. Kalpz
-
Hey, I've been talking to a couple of people at various data centers who have been talking about the Apache web server alternative nginx. Seems like a very good HTTP server. I wonder if Uniform Server could integrate this? I have not looked into this deeply myself yet, will probably require a bit research. Have you heard about this one? Kalpz
-
Your very welcome! Kalpz
-
Ah, I too should have known that! As soon as I get Uniform Server I turn on the short tags. Oh well, glad its solved!
-
Hi, Yes, that is corrent. The input code is HTML, the rest is PHP. It should work as I have tested this on my server. Try changing both $directPay lines to double quotes instead of single quotes? Example: $directPay = "Yes";
-
Yes it is possible and it is done like so: <INPUT TYPE=CHECKBOX NAME="Direct_Pay" value="Yes"> Amount should be paid directly paid to contractor // Set variable $directPay = ''; // If Direct Pay is set (checked) and value of it is Yes... if ( isset($_POST['Direct_Pay']) && $_POST['Direct_Pay'] == "Yes" ) { // Set variable to yes $directPay = 'Yes'; } else { // Set variable to No $directPay = 'No'; } // Do query after the above check mysql_query("INSERT INTO table_name (Name, Address, Email, Direct_Pay) VALUES ('$Name', '$Address', '$Email', '$directPay')"); Hope that helps.
-
Hello, Sorry this is delayed. Note: I changed your code a bit to make it better. Have added a edit link, which goes to editinvoice.php passing its invoice number. You just need to GET the id on this file and you can use it for your query. <? include("dbinfo.inc.php"); mysql_connect('localhost',$username,$password); @mysql_select_db($database) or die( "Unable to select database"); echo "<b><center>Database Output</center></b><br><br>"; ?> <table border="0" cellspacing="2" cellpadding="2"> <tr> <th><font face="Arial, Helvetica, sans-serif">Invoice Number</font></th> <th><font face="Arial, Helvetica, sans-serif">Name</font></th> <th><font face="Arial, Helvetica, sans-serif">Phone</font></th> <th><font face="Arial, Helvetica, sans-serif">Mobile</font></th> <th><font face="Arial, Helvetica, sans-serif">Fax</font></th> <th><font face="Arial, Helvetica, sans-serif">E-mail</font></th> <th><font face="Arial, Helvetica, sans-serif">Website</font></th> <th> </th> </tr> <? $query="SELECT * FROM contacts"; $result=mysql_query($query); while ( $rows = mysql_fetch_assoc($result) ) { ?> <tr> <td><font face="Arial, Helvetica, sans-serif"><? echo $rows['Invoice_Number'];?></font></td> <td><font face="Arial, Helvetica, sans-serif"><? echo $rows['first'];?> <?=$rows['last'];?></font></td> <td><font face="Arial, Helvetica, sans-serif"><? echo $rows['phone'];?></font></td> <td><font face="Arial, Helvetica, sans-serif"><? echo $rows['mobile'];?></font></td> <td><font face="Arial, Helvetica, sans-serif"><? echo $rows['fax'];?></font></td> <td><font face="Arial, Helvetica, sans-serif"><a href="mailto:<? echo $rows['email'];?>">E-mail</a></font></td> <td><font face="Arial, Helvetica, sans-serif"><a href="<? echo $rows['web'];?>">Website</a></font></td> <td><font face="Arial, Helvetica, sans-serif"><a href="editinvoice.php?id=<? echo $rows['Invoice_Number'];?>">Edit Invoice</a></font></td> </tr> <? } ?> </table>
-
Hi there, Yes, I didn't supply further code as I wasn't sure how your database looks. Here it is anyway, you will just need to change the queries slightly. <INPUT TYPE=CHECKBOX NAME="Direct_Pay" value="Yes"> Amount should be paid directly paid to contractor // In PHP // If Direct Pay is set (checked) and value of it is Yes... if ( isset($_POST['Direct_Pay']) && $_POST['Direct_Pay'] == "Yes" ) { // Insert yes into DB mysql_query("INSERT INTO table_name (direct_pay_field) VALUES ('Yes')"); } // otherwise if not set and value is not Yes, insert no // This comment is to show you what this if logic is doing.. else { // Insert no into DB mysql_query("INSERT INTO table_name (direct_pay_field) VALUES ('No')"); } Hope that helps.
-
Hello, You should really be doing this check in PHP rather than utilizing a hidden input field. You also have a value set to yes so lets make use of that. <INPUT TYPE=CHECKBOX NAME="Direct_Pay" value="Yes"> Amount should be paid directly paid to contractor // In PHP // If Direct Pay is set (checked) and value of it is Yes... if ( isset($_POST['Direct_Pay']) && $_POST['Direct_Pay'] == "Yes" ) { // Insert yes into DB } // otherwise if not set and value is not Yes, insert no else { // Insert no into DB } You force the logic with PHP using IF statements. Hope that helps, Kalpz
-
Hi tomk358, Are you able to show me those two files? I'll be able to help you from a PHP viewpoint. Thanks Kalpz
-
This post cannot be displayed because it is in a password protected forum. Enter Password
-
Actually, to clean this up, loading all dll files in php.ini file did not work! I recently found the errors in the logs. So all I had to do was load the php_ice.dll file only. The other dependant dll files went into apache/bin folder. SOLVED! - Kalpz
-
Thanks for your reply. I got it going!! Your suggestions didn't really work Ric. I had to put php_ice.dll in php/extensions folder and the other 7 dll files in apache2/bin folder. I loaded all files in php.ini which worked. Thanks Kalpz