39,323 Topics
| |
I am in the process of learning PHP with JS and Ajax and have the foll. problems. I have created a class to generate master data entry screens. (1) Javascript code that works when I run master.class.php independently does not work when I run users.php. I came across this problem … | |
Hi, I am reading in a bunch of files to upload but they are in an array: [CODE]<input id="tab1file0" class="tab1Files files" type="file" name="tab1file[]" /> <input id="tab1file1" class="tab1Files files" type="file" name="tab1file[]" />[/CODE] To upload the files I call a function uploadFile() which looks like this: [CODE]function uploadFile($thefile) { $base_path = "files/"; … | |
Hey; I have 6 months of work done in PHP and I really don't want to re-invent the wheel but I want to use some Ruby in my site. Is it possible to "mix languages" like PHP and ruby or will I run into some major problems? I would really … | |
Hi guys, I am trying to add an instant messaging system to my website so that logged in member can chat one-on-one with other member on his/her contact list. I am aware that there are many of such free scripts that I can use but I would rather learn to … | |
I am having trouble getting PHP to run on Windows 7 under Apache. I know I installed everything properly because I have them running on 3 different machines (one with XP, one with Vista), but for some reason when I use my phpinfo(); script it shows up as plain text … | |
I found this script and don't understand where the argument 'next thursday' came form. I can't find it in the manual for the DateTime class. Shouldn't I be able to find it there? [CODE]<?php $date = new DateTime('next Thursday'); echo $date->format('l, F jS, Y'); ?>[/CODE] Thanks | |
Hi guys, I am trying to add an instant messaging system to my website so that logged in member can chat one-on-one with other member on his/her contact list. I am aware that there are many of such free scripts that I can use but I would rather learn to … | |
Hey, I'm trying to get a form submit to work, I've got this made: <?php $to = "xxx@xxx.xxx" ; $subject = "Application form" ; $firstname = $_REQUEST['first_name'] ; $charname = $_REQUEST['char_name'] ; $class = $_REQUEST['class'] ; $level = $_REQUEST['level'] ; $age = $_REQUEST['age'] ; $timezone = $_REQUEST['timezone'] ; $raidavail = … | |
I just bought this script; [url]http://www.scriptsez.net/index.php?action=details&cat=Reviews+and+Ratings&id=2519672139[/url] You can see a demo of the script here: [url]http://www.scriptsez.com/ez_comment/demo.html[/url] I'd like to create an 'average' of the total votes for each review/comments. Is this possible to do in an easy way? I would also like to create a top 10 list based upon … | |
HI i want to make a web site which it can make a web site map. how can I do so ? thanks | |
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] | |
I am wanting to create a drop down menu that displays one value in a database inside the form, but passes another value when the form is submitted. For example I have a table named users with entries: ----------------------------------- ID | UserName ----------------------------------- 1 BobG ----------------------------------- 2 JaneD I want … | |
How can we filter categories (checkbox) like this: [url]http://tp.jobscentral.com.sg/pubsearchjobs.php[/url] | |
I am making a PHP blog library. I am new to web development and only really programme in C++ or Python. So, I have probably done something really stupid, but this code doesn't work: [CODE] <?php class Blog { public $version = 1.0; public $mysql = NULL; public $servername = … | |
I keep getting this message Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/content/j/a/c/jackattacksite/html/register.php on line 80 Here's the code: [CODE=php] // Connect to database include_once "scripts/connect_to_mysql.php"; $emailCHecker = mysql_real_escape_string($email1); $usernameChecker = mysql_real_escape_string($username); $emailCHecker = eregi_replace("`", "", $emailCHecker); $usernameChecker = eregi_replace("`", " ", $usernameChecker); // Database … | |
hai, i want to select only parent checkbox. then automatically check all child checkboxes. i mean checkall checkboxes at once. using javascript[CODE] <SCRIPT LANGUAGE = "JavaScript"> <!-- function modify_boxes(to_be_checked,total_boxes){ for ( i=0 ; i < total_boxes ; i++ ){ if (to_be_checked){ document.forms[0].chkboxarray[i].checked=true; } else{ document.forms[0].chkboxarray[i].checked=false; } } } --> </SCRIPT> … | |
Hi frnds.. i am working on symfony and phpmyadmin.. my query is for phpmyadmin... for a field i have specified FLOAT as a datatype.. and i have not specified any size to it.. then can anyone help me what will be the default size for that? | |
I wonder if it is possible to send text file which is just at this moment prepared and it would be best if the file coud be send without creating on disc. For example I would like to have on my web [code]<a href="day.php">this day</a>[/code] and when you click on … | |
I want to use the function preg_match_all to catch data in a web page ------------------------------------------------------------------------------------------ int preg_match_all ( string $pattern , string $subject , array &$matches [, int $flags [, int $offset ]] ) Searches subject for all matches to the regular expression given in pattern and puts them in … | |
Hi, index.php posts data to process.php I want users to remain in index.php when they summit their form. I have seen this in some websites but don't know hot it done. Can anyone help me? Thanks | |
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, … | |
i have installed drupal in my xampp root. but recently even though my drupal sites work, when i call localhost, unlike other times where "xampp" page shows up to say that apache server is running successfully does not show and the following errors display. Warning: require_once(C:\xampp\htdocs\includes\defines.php) [function.require-once]: failed to open … | |
Ok, so my question is this. If I had two tables, quizzes, and users, where each user 'has many' quizzes, then one could simply just add a user_id column to the quizzes table to create this link. However, how would I implement a has many-has many relationship? For example, I'm … | |
I need to make a map of country Croatia seperated in regions and when you click one region it takes to a site that i made. | |
[code=php] include_once('session.php'); include_once('config.php'); $userid = $_SESSION['userid'] ; $uname = $_GET['uname']; $query= "call sp_active('$uname','$userid',@u_active)"; $result = mysql_query($query) or die('query_error'.''.mysql_error()); if($result) { header('location:vagent.php'); } [/code] simple php code.. but still throwing Cannot modify header information - headers already sent by i have also use ob_start(); but of no use | |
Greetings! I'm developing my own wiki and installed v1.6.5. I use MySQL v5.0.83. The wiki itself functions fine but after adding the extension Cite.php and adding the call command [ICODE]require_once( "$IP/extensions/Cite/Cite.php");[/ICODE] it gives me the stubborn fatal error message Fatal error: Class 'Cite' not found in $IP/wiki/extensions/Cite/Cite.php on line 54. … | |
my requirement is textarea have 3 keywords. no need to count letters per line. but each keyword separated by commas. forexample: abc is one keyword, defgh is another keyword, kalpana is another keyword. so we are entering like this abc,defgh,kalpana into textarea . there is no need to count no.of … | |
Hi, I was wondering why the CREATE TABLE query in my code seems to be called automatically, whilst in the example below from w3schools, there is a line which explicitly calls the CREATE TABLE query. Why is that the query in the w3schools example isn't ran twice? My code: [code=php] … | |
i am writing a php program to read simplexml file. i get the following error Parse error: syntax error, unexpected T_STRING in /Applications/MAMP/htdocs/TestSite/sqlconnectstring.xml on line 1 here is the php file [code] include ('sqlconnectstring.xml'); class sqlConnection { var $server; var $user; var $pass; function __construct() { $xml = new SimpleXMLElement($xmlstr); … | |
I am new to cron jobs and I never had an opportunity to try them. I know that they can do things in the future, so here come my questions. I am going to put my hosting in byethost.com, but before that I would like to know whether: 1. i … |
The End.