- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 7
- Posts with Downvotes
- 6
- Downvoting Members
- 2
31 Posted Topics
Re: You can use isset to check if the form data has been set. Example : [CODE]<?php if (isset($_GET['test'])){ echo "Not an empty form"; }else{ echo "Empty form"; } ?>[/CODE] | |
Re: There are several ways to do this assuming that you store the 'rating' data along with the ip address or username of the person who voted: a. Fetch the ip address of the user by help of PHP (search Google to know how to fetch user's ip) if you want … | |
Hello, I am making a dynamic vertical sidebar which uses PHP to fetch data from the database. However, as it is dynamic I have to make sure it will work properly even if it has 100 lines of text. But I am facing a problem that it is going below … ![]() | |
Re: Phpacademy.org is an awesome site for learning PHP, MySQL, Ajax, jQuery and other web development related stuff. | |
Hello, I want to fetch data from a MySQL database's table and order the selected data by date. Which data format is ordered most precisely by MySQL? I also want the date format to be unique. Please express the format just like PHP's one, example: h:i:s. Thanks, Nahiyan ![]() | |
Hello, So I wrote a PHP script which will return all the contents of a table using Mysql. I want to set a limit so that PHP will display only 30 rows and divide them into pages like [1,2,3...] dynamically and the PHP script will detect the page using GET … ![]() | |
Hello, So I was working with php, jquery, javascript and html to make a show/hide toggle system. I use php to fetch some data from my database and display them using html. I use jquery to make the show/hide toggle functionality. However, as I rely on php's while loop I … | |
Hello, I am experiencing a problem with running javascript code when ajax calls a file. I have a file named 'index.php' which simply loads some comments by using the file 'comment.inc.php' and run some javascript code to change the id of some div. I don't know how to let the … | |
Hello, I am storing my mysql connection data and other sensitive information in a config file, however I detected an issue that anyone can access that file and view the contents of that file but I don't want to let anyone do that without appropriate permission. I can encode the … | |
Hi, I have used this code to make a php file with php code in it: [CODE]<?php $fn = 'connect.inc.php'; $string = "<?php $mysql_host = 'localhost'; $mysql_user = 'root'; $mysql_password = ''; $mysql_database = 'main'; @mysql_connect($mysql_host, $mysql_user, $mysql_password) or die("There was an error connecting to the server"); @mysql_select_db($mysql_database) or die("There … | |
Re: The code should look like this after editing [CODE]session_start(); $_SESSION['P_Category'] = $_GET['P_Category']; ////line 8 $P_Category = $_SESSION['P_Category']; $query = "select * from tblProducts_info where P_Category = '$P_Category'"; $result = mysql_query($query); if(!$result) { die('query:invalid Query: '.mysql_error()); }[/CODE] | |
Can anyone check out this script? My ajax code doesn't run and the xmlhttp.status is always 0 though it is always 200 in my other scripts. I am sure there is something wrong with my script. Can anyone help me fix it? I tried to debug it for hours but … | |
I have coded some ajax recently but whenever I click the 'register' button, nothing actually happens. I worked about about an hour to check what's wrong with the code but I failed to find any error. My php file just displays out an echo and runs some code if required … | |
The title says it all. I want to include a file outside the current working directory. Suppose my file is in the address "localhost/directory1/directory2" and I want to include 'core.inc.php' located in "localhost/directory1". In this case is requiring that file possible? If so then how can I achieve this? | |
Hi, I am making a mini cms for managing my website and to increase my php skills so I wrote some code to give out the result of a query by using mysql_result(..,..,..); but when I tried to echo it out, the php code which is stored in my database … | |
Re: In your page you put the following code: [CODE]<?php if(isset($_GET['p']) && !empty($_GET['p'])){ $p = $_GET['p']; //please put mysql queries and most of the code dealing with mysql in a separate page unlike this one $query = "SELECT `content` FROM `your_table` WHERE `id`='$p'"; if (@$mysql_query = mysql_query($query)){ if (mysql_num_rows($mysql_query)==1){ $content = … | |
Re: I hope you will make a separate file named: style.css and insert the following code there [CODE] body { background-color:#000000; color:#E27907; font-family:Verdana,Arial; font-size:10pt; letter-spacing:2; } .thumbNormal { border:4px solid #000000; } .thumbSelected { border:4px solid #ff0000; } .prevImage { border: 8px solid #ccc; width: 200px; height: 100px; }[/CODE] And also … | |
Re: We need more information to solve this issue. | |
Re: I think it's related to wordpress but not anything related with PHP. Maybe you should post this in wordpress' forum. | |
Hello, I wrote some code to make a table using HTML with <th> tags for displaying header in the first row followed by contents of mysql database. Due to while loop the header is displayed everytime the mysql_fetch_assoc fetches stuff from the database. However I want the header to be … | |
Re: You can use this function: [CODE]unlink(test.xls);[/CODE] I am not sure whether it will work fine with xls file but it's worth giving a try. | |
Re: Here is a link to some cool [URL="http://www.thenewboston.com/?cat=67&pOpen=tutorial"]beginner php tutorials[/URL] | |
Re: This topic has nothing to do with PHP, I think you should make this same topic in wordpress' forum. | |
Re: If you want to create awesome games using a very easy to use interface within a very short period of time then download Game Maker 8 from yoyogames.com. No special knowledge of programming is required but there is a built-in compiler and scripting language which allows you to make advanced … | |
Hello everyone, I am new to Java but know lot about other programming languages and experienced game developer. As Java is platform independent, we cannot compile it to .exe format and that's where my problem is. Suppose I have created a .java file and compiled it to .class file, then … | |
I have one MySQL database field which saves comment from users. Some comments have new lines but when I try to use PHP to display the contents of the database, the new lines are ignored. I know about nl2br() but I guess it will not work as my users will … | |
Re: I am a kid who loves computer programming. I am currently working in a big digital dictionary project alone, no one to help me but daniweb community. Try out game maker 8, you will love starting with it, it features 3D, you can make awesome 2D games, etc. You can … | |
Re: [CODE]<img src="http://www.myurl.com/images/processing.gif" width="100" height="100">[/CODE] You can resize into any size you want | |
I am new to PHP and I discovered a new trick, I want to create a script and if $pagea=1 then it will display the contents of page [B]a[/B] and so on but I want to know how to make a button or anything that is kinda like link and … |
The End.