- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 1
- PC Specs
- Celeron 125MB Memory . Dell ^_^
Re:
Hi there, I've started to create a site for me and my friends, and I want to be able to have each of us upload an image, and store it in a database, and then have it display as a display picture on a profile page. I've been looking around, … |
|
Re:
hi m going to develop a web application for a brush manufacturing factory.m in design phase now. but as i m a beginner i dont have much knowlege about language to be used in that. can any one help me which language should i learn . php or java?? |
|
Re:
Trying to figure out why a script that worked perfectly well on Linux is not working on Windows server now after I moved it. It has the latest version of PHP installed and there is no reason it should not work on both. I have posted the code snippet, however … |
|
Re:
[CODE]<html> <head> <title>Applicant Login Page </title> </head> <center> <body bgcolor = "#000000" text = "#70db93"> <h1> Passport System <hr> </h1> </center> <form> <p> Fill in the form below. </p> Title <input type = "radio" name = "response" value = "Mr" checked = "checked"> Mr <input type = "radio" name = … |
|
Re:
Iam Using This Code [CODE]$result = mysql_query("SELECT games.*, console.name AS gconsole , genre.name AS ggenre , company.name as gcompany, status.name as gstatus from games as games left join console on (games.console = console.id) left join genre on (games.genre = genre.id) left join company on (games.company = company.id) left join status … |
|
Re:
Hi all, I have a database which I would like to use to power an HTML list. I'm struggling to get the loop to print out more than one line. This is the script: [CODE] <?php $query = "SELECT * FROM `table` ORDER BY `year` ASC"; $resultID = mysql_query($query, $conn) … |
|
Re:
the view_count of the notes table will increment 2 times everytime i click the button that link into this page.. need help desperately.. thanks! [CODE]<?php ob_start(); $note_id=$_GET['note_id']; include 'fconnect.php'; if ($note_id!=null) { $query_ncount = "UPDATE notes SET view_count = (view_count+1) WHERE note_id = '$note_id'"; $result_ncount = mysql_query($query_ncount); if(!$result_ncount ){ die('invalid … |
|
Re:
Hi I am getting uploaded image in text format. [B].txt[/B] need help & suggestions. [CODE] $email_from = "resume@ihmjobs.com"; // Who the email is from $email_subject = "Attached image"; // The Subject of the email $email_message = "Name : "; $email_message .= $_POST['name']."<br>"; $email_message .= "Message : ".$_POST['message']."<br>"; // Message that … |
|
Re:
hy! I am designing a website, i want to ask few questions: to design my website i am going to use Dreamweaver. 1. i want to add feature where newsletters get emailed to customers automatically every month. 2. also i want to add feature where users can search products on … |
|
Re:
hello guys... I have an html page inwhich I collect some data using text boxes. Now in this page, I have button and I set the action attribute of [B]<form>[/B] a php script like this. [CODE] <form action="test.php" method="post"> ----- [/CODE] Now this does the job. But the problem is … |
|
Re:
I've been following several tutorials in order to build a simple search engine for my website. But I can't seem to be able to do pagination I.E show results by pages (10 per page). I'll list the code I have thus far and hopefully if there's someone well versed with … |
|
I currently have this function [CODE] processfn('sponsor = 1', 1, '', 0, 'buyer = 0'); function processfn($sponsor, $level, $sad, $sadista, $bumili) { $result = mysql_query("SELECT id FROM ahentes WHERE $sponsor") or die(mysql_error()); if (mysql_num_rows($result) > 0) { $sad = mysql_num_rows($result); while ($row = mysql_fetch_array($result)){ $sila[] = "buyer = '".$row['id']."' "; … |
|
It's like a tree pyramid. I want to get the members sponsored by the current user. The result will be used to get its sponsored members and so on until everyone is read. How can I achieve this? I currently have this code but I can only go to level … |
|
I am currently making a binary tree and I was able to create the tree. What I am facing now is " How to get the total number of children in my left side and total number in my right side ". The structure is: [CODE] 1 2 3 4 … |
|
Hi, I need something like recursion wherein the query repeats itself using it's result to start the NEXT - SAME - QUERY. I made 1 but it just simple reecho the same result. [CODE]// KUNIN ANG ID NI KURIMAW $root = $_GET['id']; $result = mysql_query("SELECT COUNT(*) as count, id, sponsor … |
|
Hi I currently have date in database in this format: 11-7-2009 But I think I need to echo this in this format: 2009-11-07 |
|
I would like to ask how can I check if a sample date is earlier than another specified one. I have this: $Monday = 1-18-2010 $enroll = 12-29-2009 [CODE] $enroll = $row['enroll']; if($enroll >= $Monday){ echo "<br>$enroll is earlier than $Monday this returns TRUE ( 1 )"; }else{ echo "<br>$Monday … |
|
i need to know if there is a member whose enrollment date is earlier than a specified date. If this case, the specified date = $Monday [CODE] $Monday = 12-30-2009; $result = mysql_query("SELECT COUNT(*) FROM agents WHERE (sponsor = '$parent') and (lft between $leftlft AND $leftrgt) and (enrollment_date >= '$Monday')"); … |
|
Hi, i am working on a member database. I need to get all the registrations except the current week. I have a "week" field in my database. This one is fine and echos all the records from week 1 to 8: [CODE]SELECT COUNT(*) FROM agents WHERE week < 9 and … |
|
Re:
Hi, I had developed a viewing table from mysql database using php and it is showing me the whole list of contents in a single webpage. I would like to know if there anyway i can actually split the contents into multiple pages for easy viewing?? Your help is greatly … |
|
I am having this error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''3'' at line 1 The $get1 value is 3. I tried enough but to no avail. I don't see any … |
|
I can't seem to limit the result to a desired number. I have this code: [code]//GET THE TOTAL OF LEVEL 2 $result = mysql_query("SELECT COUNT(*) FROM agents WHERE (sponsor = '1' or sponsor = '2' or sponsor = '3') LIMIT 0,1")or die(mysql_error()); while($row = mysql_fetch_array( $result )) { $lvl2parent = … |
|
Re:
Anybody can u help me with full source code and I have facing the problem to make the tree like your structure,how and where i used html code your posted code. Suppose I have to make unlimited IDs in tree then how can go the tree on another page of … |
|
i must be able to extract the results of this query and use it as another value for "Parent" in the succeeding "THE SAME QUERY". Right here, the value of parent in WHERE clause is "1". Now, I want to create the same query but the value of the parent … |
|
I am currently working on an MLM System which supports Unilevel with Dynamic Compression. So far, though the below code looks really messy, it was able to get what I want which is to get the Unilevel 8 Levels Deep. The system should run this way: 1 is sponsor of … |
|
RewriteEngine on RewriteRule ^([^/\.]+)/?$ index.php?j=$1 [L] This makes index.php?j=sample look like [url]http://www.domain.com/sample[/url] Now, i want to except [url]http://www.domain.com/account[/url] from the rewrite rule. How can I proceed? Thanks a lot! |
|
Re:
Please need some help about uploading photos and determine its image size |
|
Anyone who knows how to apply this in php scripting? the scripts in this site can be xecuted in mysql console but I can't get it working in php script in the website im studying. I want to create a tree like this: [URL="http://sitepointstatic.com/graphics/sitepoint_numbering.gif"]http://sitepointstatic.com/graphics/sitepoint_numbering.gif[/URL] |
|
mysql_connect("localhost", "root", "") or die(mysql_error()); mysql_select_db("test") or die(mysql_error()); $root = 1; function display_tree($root) { // retrieve the left and right value of the $root node $result = mysql_query('SELECT lft, rgt FROM tree '. 'WHERE name="'.$root.'";'); $row = mysql_fetch_array($result); // start with an empty $right stack $right = array(); // now, … |
|
Re:
Hey everyone. I first post and I couldn't figure out how to encase my code, sorry. Let me know and I'll do it next post. Anyways, I've built binary tree using recursion and included a function to print out the sum of the level of the tree of a given … |