39,320 Topics
| |
I am using ldap_connect function in phpmaker tool,but it is giving error like Fatal error: Call to [B]undefined function[/B] ldap_connect() in C:\xampp\htdocs\register\1v6\phpfn7.php on line 4127 | |
| I have a text file and i want it to open and add all the line to an array. Which function is used in php for that task?? Which separator is used for a new line..?? Can any one help... |
I want to insert records into multiple tables at one go, I am doing this in the following way, is this the correct way of doing? If not, what is the better way? [CODE] mysql_query("insert into table1 values('abc')"); mysql_query("insert into table2 values('ttt')"); mysql_query("insert into table3 values('5t6')"); mysql_query("insert into table4 values('ghy')"); … | |
OK, Here's what I have. This is my simple form. [CODE]<form action="log_test.php" method="post"> <input type="text" name="username"> <input type="password" name="password"> <input type="submit" name="submit" value="Log in"> </form>[/CODE] and here is my script [CODE]$query = "SELECT userId, password FROM table"; $result = mysql_query($query); while($row = mysql_fetch_array($result)) { echo $row['userId']; echo $row['password']; }[/CODE] I … | |
When I use the following PHP code I get this error Error performing query: Unknown column 'nh12134' in 'where clause' Yet when I use 'nh12345', which is the Value that the variable $username contains (i've checked that it does by printing it out elsewhere) instead of the $username in the … | |
Hi, I need to grab the data from the other specified websites, any idea how to implement this? Thanks in advance. Satees | |
i have a basic script where in i check if the content is inputted or not . If the content is not present i redirect to the same page also echoing a statement that u have not entered any data , but the echo message is not being printed. the … | |
I've got what I think must be a pretty simple question, but it's my first time doing something like this. Here's my situation. I have a simple database. It's a dictionary of words. I want to have a form that I can enter a word into. Once I do that, … | |
HI guys, just wondering how to get a customised page, depending on an id. Eg mysite.org/view?id=1, mysite.org/view?id=2 etc. How does that work? Is it possible to provide the whole url including the id so I can put a direct link to the page I want someone to view? Cheers, | |
| |
Hi, can anyone give me a bit of advise? Ok this code works and sends a result if it is higher than 99% to an email address. What I now need to do is limit the number of times a person can access the quiz if they don't score 99% … | |
I don't know how to explain what i need. For example: How load/add daniweb.com header into other file for example [url]www.test.com/header.php[/url] I just need to load part of website into other php file. Could you advise what functions to use? Sorry for bad english. | |
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 successfully reading and displaying a .txt file with 3 variables, lets say for example name, age and comments. When the file is written, 1 name, 1 age and 1 comment gets written on a line. Any further additions get added as a new line. When this gets read … | |
I was wondering if some one could point me in the right direction with making an image show how many times it's been clicked. | |
hi, i want convert the time stamp unix format to hours and days i have this: $date = trim(date('H:i:s', $ofwhat)); $ida = trim(date('d', $ofwhat)) -1; if ($ida >0) {if ($ida==1) { $dia= $ida. " day, "; } } if ($ida >0) { if ($ida>1) { $dia= $ida. " days, "; … | |
Hey there, I hope this is the right place to put this in? Anyway, Im currently using PHPMyAdmin application on the yahoo small business web hosting. Basically when I click the privelages button I recieve this errer: [QUOTE]Warning: Your privilege table structure seems to be older than this MySQL version! … | |
I want a partner for preg_split for multiple matches. For example preg_split('/(.be|.fr|.im|.fi)/i', $input[$i], -1, PREG_SPLIT_DELIM_CAPTURE); I tried something like this but doesnt work. I want for example to search for these 5 strings and if it finds them split the string there. Anyone know? | |
hi there:twisted: i'm verry new here but i hope that there is sombody here that can help me with the following i have a fusker script called fusker.ne build in in a verry old xoops engine i wil use this script again but there is a verry hard to understand … | |
[CODE]<?php $host='localhost'; //Change the user,password and database variables as desired $user='root'; $pass=''; $dbname='imagedb'; $link=mysql_connect($host,$user,$pass) or die(mysql_error()); $db=mysql_select_db($dbname) or die(mysql_error()); ?> <html> <head> <title>Uploading image to MySQL database and displaying it</title> <script src="mootools1_2.js" type="text/javascript" language="javascript"></script> <script src="ajax.js" type="text/javascript" language="javascript"></script> <link href="style.css" rel="stylesheet" type="text/css"> </head> <body> <fieldset> <legend>Upload Form</legend> <form enctype='multipart/form-data' name='frmupload' … | |
Hi there, can anyone familiar with Magic Box help me. The structure of magic box within a table. I have no idea where to start with the for loop. Please help me. Please. Thank you. | |
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 … | |
Hello everyone, I have a Counter-Strike 1.6 server and I would like to let my server admins to turn ON the server when it crashes, so I investigated a bit to do this using PHP to run an .exe on my server but I'm not very experienced at php and … | |
Hi all, I have an if statement here that works well except when i try to put it inside of the code you see starting at line 7. What you see on line 1 is only the code I want to insert. The code you see at line 5 is … | |
Hi everybody I am very new to PHP and MYSQL How can I implement : [CODE] $q=$_GET["q"]; $CMY=$get["CMY"]; ... $query=("INSERT INTO the_array($CMY, model) VALUES('$q','dddd')");[/CODE] $q and $CMY are results I get from AJAX, and I think the only way to save the results is using the DB. | |
So far progress overall has been going well in general on my pet project I call the TAXA project (nickname for taxonomy). The heart of it is a botanical tree on all the woods of the world. Since viewing it can make it easier for any of you to understand … | |
Hi i am using xampp server (php/mysql) and getting error like "Mysql packet size is 0.9990234375MB and it is lower than the size of the file GeoIPCountryWhois.csv which is 9MB. " So I want to change packet size to make it happen. can anyone please tell how to make it … | |
Hey, I have yet another question, so here it is. I have a roster page, and i have multiple players on the page. The players each have a unique playerid stored in the database. Now what i want to do is link up their name on the roster list that … | |
I have been working on this for a while now and have had no luck. I have tried this code on 2 servers and they both render the same results: everything loads up to the title and description. Does anyone know what could possibly be the problem and help me … |
The End.