Jump to content

rabmerab

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Everything posted by rabmerab

  1. Hi again, I don't know how come it didn't display the error even i got display_errors in phpinfo shows it is on. It did shows me other errors. Any way even I change it to $num=mysql_num_rows($rs), now it shows 2 but in reality, the table has 6 rows. I don't know what's going on. thanks for any more help. rabmerab
  2. Hi there, Thanks for replaying. Is not that the problem; in the program above, using $num=mysql_numrows($rs) to count number of rows should deliver 4, even if I add more rows always echo($num) only show 1. Any more ideas. rabmerab
  3. Hi every one, May be this is a just a basic but I am stuck. I am using the sql query $sql="select * from mytable " to try to display 4 rows but I getting only one. when I am using mysql command line with the same query I get all the 4 rows. the problem only in php. The other things like connecting to mysql and selecting the database been done. Any help please. Thanks in advance. Rabmerab Screen shot: #connect to my sql $conn=@mysql_connect("localhost","me","mypass") or die ("Couldn't connect"); # select database $rs=@mysql_select_db("mydatabase",$conn)or die("could not select database"); #Create the sql query $sql="select * from mytable "; # Execute query $rs= mysql_query($sql,$conn); #get the number of rows $num=mysql_numrows($rs); while($row= Mysql_fetch_array($rs) ) { $list="<br>".$row["imei"]; echo($list); } ?>
  4. I did manage to make it works. the steps with i did follow are : copy libmysql.dll php5apache2.dll php5apache.dll php5ts.dll php_mysql.dll to C:\windows\system32 add extension_dir = "C:\php\ext" extension=php_mysql.dll to php.ini Thanks every 0ne rabmerab
  5. Hi there, After stangling to make php and apache server works ( success at last ), now I am having problem using mysql. The installaion went with no problem. I can use it in console ( under dos ) with no problem but when I try to using it in php that's where I am craying for help. Bellow is php script: <?php $conn = mysql_connect("somedomain", "some_user, "soem_passord") or die ("Hey loser, check your server connection."); ?> and this is the HTMl output: Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache group\Apache2.2\htdocs\connect.php on line 6 Any ideas please. rabmerab
  6. Hi there, I was in rush so I went for the easy installation given in other part of this forum (http://www.wampserver.com/en/index.php ) . But I wasn't happy until I make it work using the normal way ( httpd.conf and php.ini). I am glad it did work. Thank you very much for the help. rabmerab
  7. Hi I made the change to httpd file and restart the apache as you adviced me. First when I type http://localhost in IE it show “It works!”, is that good so far ? Then I typed http://localhost/phpinfo.php with phpinfo.php file is saved at htdocs folder. doc_root in the file php.ini point to the right folder ( doc_root=”C:\Program Files\Apache Software Foundation\Apache2.2\htdocs”). This is what was displayed in IE: The page cannot be found The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. Please try the following:· If you typed the page address in the Address bar, make sure that it is spelled correctly.· Open the localhost home page, and then look for links to the information you want. · Click the Back button to try another link. · Click Search to look for information on the Internet. HTTP 404 - File not foundInternet Explorer It seem I moving forward with you help, any more ideas. Thanks in advance rabmerab
  8. Hi wildteen88, I will try this and get back to you. Thank you very much. rabmerab
  9. hi again, just to add this, I did install apache, mysql and PHP 03 years a go and that was a peace of cake . Now I don't know where is the problem.
  10. Thanks for showing interest , 1 -I downloaded and install this software apache_2.2.8-win32-x86-no_ssl 2- Also extract php-5.2.5-Win32 in c:/php 3- I made this changes bellow to the file httpd.conf and save it in the C:\Program Files\Apache Software Foundation\Apache2.2\conf where apache been install. The new lines added to httpd.conf are : # added configurartion AddType application/x-httpd-php .phtml .php .php3 .php4 AddType application/x-httpd-php-source .phps ScriptAlias /php/ "C:/php/" Action application/x-httpd-php "/php/php.exe" 4- I added the following line to php.ini and save it in the c:/windows folder doc_root =C:\Program Files\Apache Software Foundation\Apache2.2\htdocs. This is the way, I did it. When I type http://localhost in Internet explorer, it display: “It works”. How ever when I type in http://localhost/phpinfo.php , it show can’t display page and underneath access forbidden. I don’t know what I am doing wrong even I was following a book procedure. Any more idea. Thanks rabmerab
  11. Hi every one, I hope this is not will sound very basic but I am new to apache server. Any way, I downloaded apache_2.2.8-win32-x86-no_ssl and Installed it in deferent windows ( XP, 2000 server and Vista). I make change to the necesseary change to httpd.conf like the path of php.exe. When I type http://localhost in Internet explorer, it shows the message "It works" but when I type the address of the file (sample.php) which was saved at the folder /htdocs, the web browser reply with "The page cannot be displayed" and the raison is "HTTP Error 403 - Forbidden Internet Explorer" . I don't understand this knowing I am accessing my computer as admin. Please nead help and thanks a million rabmerab
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.