38,025 Topics

Member Avatar for
Member Avatar for amras123

[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 />'; } …

Member Avatar for sourcebits
0
109
Member Avatar for arunpatyal1987
Member Avatar for nevvermind
0
69
Member Avatar for Designer_101

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 …

Member Avatar for mschroeder
0
125
Member Avatar for almahmeed

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 …

Member Avatar for rch1231
0
82
Member Avatar for kashif farooq

[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 …

Member Avatar for hielo
0
92
Member Avatar for dev.vini

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

0
54
Member Avatar for andydeans

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? …

Member Avatar for andydeans
0
72
Member Avatar for ZER09

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 …

0
61
Member Avatar for rje7

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 …

Member Avatar for rje7
0
123
Member Avatar for raul8
Member Avatar for flamer_x86

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....

Member Avatar for flamer_x86
0
61
Member Avatar for ayooshkasmth

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 …

Member Avatar for ayooshkasmth
0
95
Member Avatar for Dante2

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 …

Member Avatar for Dante2
0
138
Member Avatar for AlmostRambo

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: ' . …

Member Avatar for Arrorn
0
295
Member Avatar for drostydw

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 …

Member Avatar for drostydw
0
158
Member Avatar for Meg_Spence

<?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, …

Member Avatar for nevvermind
0
98
Member Avatar for Jothe

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..

Member Avatar for Daiva
0
112
Member Avatar for ello

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" …

Member Avatar for ello
0
551
Member Avatar for syd919

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 …

Member Avatar for Nyight
0
366
Member Avatar for chuckwilliams11

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 …

Member Avatar for Nyight
0
144
Member Avatar for InfernalEternal

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 …

Member Avatar for Nyight
0
143
Member Avatar for mpc123

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>"; …

Member Avatar for mpc123
0
79
Member Avatar for andydeans

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 …

Member Avatar for andydeans
0
158
Member Avatar for Charles1718

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']; …

Member Avatar for abogadooo
0
2K
Member Avatar for amras123

[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: …

0
76
Member Avatar for mbano

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

Member Avatar for EvolutionFallen
0
56
Member Avatar for Cool&Awesome

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, …

Member Avatar for Cool&Awesome
0
114
Member Avatar for Arsench

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 …

Member Avatar for Arsench
0
64
Member Avatar for bjeffries

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 …

Member Avatar for pritaeas
0
159
Member Avatar for shivarkishna

The End.