39,393 Topics
![]() | |
I have a db query, which show datas from mysql database. I want to do : ıf number of rows from query is bigger than x do something if small do another thing. Namely; [code=php] $qry = mysql_query("SELECT * FROM data_table WHERE page='$page'",$dbh); $total = mysql_num_rows($qry); if($total>7) { something... } … | |
Hello! The error above appears on line 9 and i can't seem to figure it out! [code=php] <?php srand(time()); for ($i=0; $i < 5; $i++) { $rand1 = (rand()%13 + 1); $rand2 = (rand()%4 + 1); $slot[$i] = $rand1*10 + $rand2; for($j=0;$j<$i;$j++) while(slot[$i] == slot[$j]) { $rand1 = (rand()%13 + … | |
Hi all Just want to know if it's possible to check if a checkbox is checked on page load. Venom Rush | |
Hi everyone, I made a chunk of code where I wanted to perform a "for" loop within a concatenated string. This is what I came up with: [CODE]$message = "The Top 5 Employees of the month are:" . for ($ctr = 0; $ctr < 5; $ctr++) { $num = $ctr … | |
Hello.. I want to counts clicks for a flash script.. For image it is easy to do..but for flash i don't know how??? Can anybody know about this...please help me... Shanti | |
strangely enough I got this to work once but I can't understand how. I've looked it over for hours. need help. here's the situation. all I want to do is have my form, a basic form, insert information into my database. It works for all my fields, except two. I … | |
Hello, I'm looking for some code that will recognize my recent blog posts (say 6 most recent posts) and display them on the homepage of my static website. The homepage would show a few lines from the blog with link to the post. Can someone help? The server is Linux … | |
I am using mod_rewrite in my website.It's a social networking website.There are various groups in my website.Some groups are lie "<spirit","<Iam the ONE>" etc. Previously every page used to get displayed by it's id,so there was not any problem But now since I am using mod_rewrite so the page's name … | |
hi i have a application in which i want to get the zipcode or search based on the zipcode.when the users give the radius and a particular zipcode..i want to get the zip code based onthe radius .please tell me how to do that.. thanks | |
Hi. I want to know the best method of making auto installer for our application, like a page appears and asking for the mysql server information such as username and password and also database and so on, and also default account for the application? something similar to moodle and etc … | |
I am trying to get to grips with Object Oriented PHP. Last week we were given a exercise to do, which creates a webpage, using a class and a client which will call the class. I am totaly not getting the hang of this, and i am getting so frustraited … | |
hi everyone can someone help me with the regular expression to chop the string in to peaces basically i am looking for a pattern to match this line in the file. "1980_1.rtf" (5 December 1984) Cosby and Cosby (189 street of people) i want to get a specific string on … | |
I want to develop online event for my college's tech fest similar to [URL="http://www.deathball.net/notpron/"]"NOTPRON"[/URL] game. To be more specific the game should be like [URL="http://www.shaastra.org/2008/Events/Kryptyk/contest/login"]http://www.shaastra.org/2008/Events/Kryptyk/contest/login[/URL] or [URL="http://www.thesilenceguild.com/Dom/game/"]http://www.thesilenceguild.com/Dom/game/[/URL] I know php and DHTML. I have prepared question for the levels. But i need to know how to implement it. Please help … | |
Hi all, Iv made a simple 5 star voting system and need a way to make sure the user can't vote on the same product again in the next hour. I'm not a mathmatician and get really confused with the time calculations and have tried quite a few methods now … | |
I am new to PHP and need help with a website I'm creating. Using a MySQL database I have created a table storing all of my images, descriptions, links etc. I need the product images to display on the PHP page (which I've already figured out) and be links to … | |
hello , I've visited the new paltalk web interface [url]http://express.paltalk.com/[/url] that i liked so much , and wondering what programming languages one can use to make a similar service .. that integrates voice and video chat ... maybe Flash & actionscript ? and does the hosting have to have certain … | |
how can i create an email address under my domain using php? | |
hai friendz !!!! Any one have online examination codez in php ??? plz help me !if u hav send it 2 me........plz its urgent...................... | |
please dear developers, i have text file, i need to trasfer its data into mysql database then read then into forms using php. any one with the solution or idea i will appreciate it. | |
function get_employees_by_hierarchy( $_employee_id = 0, $_dept = 0, $_org_array = array() ) { if ( $this->org_depth < $_depth ) { $this->org_depth = $_depth; } $_depth++; $_query = "SELECT * FROM employees WHERE "; if ( !$_employee_id ) { $_query .= "employee_manager_id is NULL OR employee_manager_id = 0"; } else { … | |
Hi, So, I'm working on some PHP scripts, and I never noticed this happening before, but on all of my PHP scripts, any POST variables automatically become regular variables. For example: If I have a post variable $_POST['firstName'] passed through a web form, and then I look at the variable … | |
Hi all, Iv looked at quite a lot of forums and cannot get the code to work properly for searching multiple search terms. I have tried exploding the search string and then doing a search similar to this: WHERE fullname LIKE '%$1%' OR fullname LIKE '%$2%' but it has not … | |
Okay i'm getting the basics of php but I have no idea where to even start to code this idea... I have a database "DB_Name" and a table "images" This table has the following columns (id, category, image name, image path, caption) Keep in mind all my images are stored … | |
Hi This is my first thread on here and wondering if anybody can help me, I want to make a database of groups with information and show this on a website then the viewer uses the checkboxes to select the groups they are interesting and contacting. I am okay in … | |
Hello EveryBody, I have large file (CSV) to be downloaded typically 20 mb which picks data from database while downloading the file it blocks all the resources on the server and no user can browse the website . Could anybody tell me a way where the server resources are not … | |
Hello, I have a question about PHP. I realized that you can use the POST variable to get data from a form submitted with the type post, but does the order of the fields matter. Example: index.html: [code=HTML]<HTML> <HEAD> <TITLE>Form</TITLE> </HEAD> <BODY> <FORM name='test' action='submit.php' method='post'> Name: <INPUT type='text' name='name' … | |
Hi all, I wanted to ask if it is a good idea to install PHP on a windows XP machine running IIS? A lot of the documentation I have read talks about Windows 2000 Server with IIS, but not XP. At work I run PHP on a Linux-like platform (FreeBSD … | |
I know this has been asked plenty, and I have tried many things but I can't get anything to work and codes that do seem to work look ridiculously large for the purpose I need them for. What I basically need is something that gets all the rows from a … | |
This one is worth two gold stars. I am working out of Cristian Darie's PHP and MySQL Ecommerce 2nd edition book and am woefully stuck on chapter 6. For some reason, on the main page load (i.e., index pulling in products_list.tpl) I am getting a repeating option dropdown and all … |
The End.