38,025 Topics
| |
[CODE]<?php require('./configs/reg_conf.php'); function doesUsernameExist($name){ $exit = FALSE; $result = @mssql_query("SELECT * FROM ACCOUNT_TBL WHERE account='$name'"); if (mssql_num_rows($result) != 0){ $exit = TRUE; } return $exit; } if(isset($_POST['submit'])){ $user = preg_replace ("[^A-Za-z0-9]", "", $_POST['username']); $pass = preg_replace ("[^A-Za-z0-9]", "", $_POST['password']); if($_POST['username'] == ""){ echo '<font color="red">Enter a user.</font><br /><br />'; } … | |
How to search a particular substring from number of strings in the database? | |
Hi, I have a list of postcodes in the UK and their co-ordinates... I've also written a nice function that measures the distance between two postcodes. When my user logs in their postcode will be stored in a cookie, when they do a search for events I want to show … | |
Hi Everybody, I have two tables in my database (mySQL). The 1st table records the data entry of the employee with the following columns: 1. msisdn: Mobile Number 2. fname: Full Name 3. cpr: National ID 4. username: Username (of my data entry staff) 5. createdate: Record Create Date The … | |
[B]Pagination in PHP (New help) display page wise results, CAN U DO IT... FOR ME... [/B] :) There are tons of pages, I'm not in favor of the display page numbers in PHP like that << <1 2 3 4.... 100 > >>. I like the drop down menu for … | |
if we delete any entry in a table in mysql than there has another field that has serialise no and if one entry is deleted from whole entry than another fiels entry will automaticaly searlized.......pls help | |
hi, this is prob really simple but what is the best way for me to add time to call on a form? i have created a column in my tesk table called timetocall with type = TIME what is best way to allow the user to key on the time? … | |
i hope i entered in the right place and ask this question. hello to i am new in joomla and still doing something unfamiliar, now i am trying to install resmanai but i cant install it correctly. i already installed ioncube but when and all the prerequisite for installing resmanai … | |
How do i perform search from php within the search result that was just returned? In oder to perform a search on the result set again i need to have the result set stored some where. either in session/cookie or temporary table in the mysql server. i tried the mysql … | |
How to install & run drupal on tomcat 5.5? Thank You | |
I'm newbie in MSSQL, I would like to ask what web server should i use? Should i install IIS in my PC? I appreciate your suggestions... Thanks.. Mar.... | |
Hi, I am trying to print different messages based on what is selected. The selections are stored in a database as $perm, and the options are low, intermediate and high. I am using switch, however i only get the first case printed: [CODE] $low = "Low"; $int = "Intermediate"; $high … | |
Hi I have some homework that I need to get done here. Our instructions are to manipulate an array and add, replace, sort, and change an array as asked. I have gotten pretty much everything done up the the point where my teacher wants me to ADD a Finch to … | |
I've been looking at this too long and just cannot figure out what's wrong here :( [code] <?php $config['name'] = 'admin'; $config['password'] = 'xxxxxxxx'; $config['email'] = 'admin@rltz.com'; $config['db_user'] = 'ephrils'; $config['db_pass'] = 'xxxxxxxx'; $config['db_data'] = 'addv2'; $config['db_host'] = 'addv22.rltz.com'; $con = mysql_connect('addv22.rltz.com','ephrils','xxxxxxxx'); if (!$con) { die('Could not connect: ' . … | |
Hey y'all. I hope someone can shed some light on what I am needing to do. Just a little guidance should be good... What I have is an app where an employee slides their id badge and a form captures the long string of data from the magnetic strip on … | |
<?php echo "<table>"<table cellpadding='4' cellspacing='3' border='1'>; $query = mysql_query("SELECT orderID, entrytime, advertiser, contactname, contactemail, billingadress, billingcity, billingstate, billingzip, accountexecutive, aeemail, aextphone, accountnumber, contactphone, contactfax, nrirep, nriemail, clientwebsite, clickthroughurl, adelements, campaignreports, additionalinfo, assignedto, workpath, status, submittedby, rev, lastupdate, approved FROM Mickeymouse"); while(list($orderID, $entrytime, $advertiser, $contactname, $contactemail, $billingadress, $billingcity, $billingstate, $billingzip, $accountexecutive, … | |
any one with an idea of how to embed a player such as VLC on my page. or else how can people play music that is within my server..any resources such as sites or books on how to do this will be highly appreciated.. | |
Hey guys, Just wondered if someone could tell me how to make this echoed DIV dissapear. Here's my code with an explination: [CODE] <?php session_start(); if (isset($_GET['beginCount'])) { $_SESSION['countView'] = true; } if ($_SESSION['countView']) { $_SESSION['count']++; } if (($_SESSION['count'] % 5 == 0) && ($_SESSION['countView'])) { echo '<a href="http://google.com" title="x" … | |
Hello I am trying to learn php, I have been looking up information on google, I understand a few things but i need help, I want to get input form an html form and save it to a text file here a snippet of some code I have tried: [code=php]<!DOCTYPE … | |
Hi any help would be great... I am moving one site from one host to another and on the current host not getting any errors:...on the new host constantly getting....in_array(): Wrong datatype for second argument in here is the code that is coming up with an error and the full … | |
Hi there. I have a page that lists the records of a table. On this page I want to be able to edit/update two attributes of these records by using checkboxes - e.g., being able to update multiple records at once. I thought the smartest way to achieve this would … | |
Hi , hope you can help i have this code [code=php] <?php mysql_connect("localhost","x","x"); mysql_select_db("x"); $result = mysql_query("SELECT * FROM x") or die(mysql_error()); echo "<table class = feature >"; echo "<tr> <th></th> <th></th> <th></th> </tr>"; while($row = mysql_fetch_array( $result )) { echo "<tr><td>"; echo $row['Date']; echo "</td><td>"; echo $row['Title']; echo "</td><td>"; … | |
hi, i get this error on one of my pages, however if i move the session start code to check if user is logged in down a few lines below some query code for searching the site it works fine. why would moving the session start down a bit on … | |
Hi, i'm new about PHP, and i try to insert the PHP Upload script in the php mail, but somehow i don't get it to work! :) [B]this actually goes to header:[/B] [CODE]<?php if(isset($_POST['submit'])) { $errors = array(); $allowed_filetypes = array('.pdf','.zip','.rar'); $max_filesize = 52428800; $upload_path = './uploads_SS/'; $filename = $_FILES['userfile']['name']; … | |
[CODE]<?php $online = @fsockopen("112.205.30.106", 28000, $errno, $errstr, 1); if($online >= 1) { echo '<b><font color=#00FF00>Online</font></b>'; } else { echo '<b><font color=#FF0000>Offline</font></b>'; } ?></li> <br><li>Login Server: <?php $online = @fsockopen("127.0.0.1", 23000, $errno, $errstr, 1); if($online >= 1) { echo '<b><font color=#00FF00>Online</font></b>'; } else { echo '<b><font color=#FF0000>Offline</font></b>'; } ?></li> <br><li>World Server: … | |
i have a simple system,when i logout the system logout but the problem is, when i click back, it turn to main page. please guys help | |
Hi Everyone!:) Searched net up'n down and also related threads but can't figure this one. I have this: RewriteRule ^(\w+)$ index.php?pageid=$1[icode] for the purpose of pretty urls. Now, as long as pageid is a single word, everything's nice, but if there are dashes (kinda-like-this) it simply doesn't work, that is, … | |
Hi all, I have a table curs_period where inserting some data to send them via email, this table contains data for 1st email [CODE] Id = Auto increment Name = Madrid Period = 01/11 to 01/12 [/CODE] Then I have another data for 2nd email [CODE] Id = Auto increment … | |
Which is the smarter way to do things.. Should I create a thumbnail script that resizes and crops the images so they are uniform when I create and upload a gallery? Or Should I run a script when the page loads that resizes and crops the images so they are … | |
The End.