Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
~63.3K People Reached
Favorite Tags

53 Posted Topics

Member Avatar for codeblock
Member Avatar for sultankhan

For not making mistakes I recommend you to have one EDIT page where to edit individual users ... something as website/admin/edituser/123 There make just 1 normal form which have all current values, of the user with the id 123, and changed them to whatever you want and submit them.

Member Avatar for tscina
0
264
Member Avatar for navi18

If you are searching for speciffic file you can check if it exists with file_exists($filename).. readdir can read and return all files in some folder so you can grabthem all and check each of them..

Member Avatar for DarkMonarch
0
104
Member Avatar for xecure

If you have an exact latitude and longitude for all zipcodes I think you have to do: 1st - SELECT the latitude and longitude of the user who is searching (with query or with user session information).. 2nd - When user set the distance and search - your script must …

Member Avatar for Sogo7
0
395
Member Avatar for fahimcse2k9
Member Avatar for djbrown

Try to replace [CODE]while ($row=mysql_fetch_assoc($result)) {[/CODE] with [CODE]while ($row=mysql_fetch_array($result)) {[/CODE]

Member Avatar for diafol
0
238
Member Avatar for nestkojex

2 database or 2 tables ? If its 2 tables (in one database the function is just to do the first query, then the second query - (mysql_query(1); mysql_query(2))). If you want to do it on 2 databases. you must put select databases queries .

Member Avatar for diafol
0
98
Member Avatar for ABUMIN
Member Avatar for hish84

I can add and [CODE]-webkit-border-radius:15px;[/CODE] those 3 are all possible css elements for round corners [CODE]#example1 { -moz-border-radius: 15px; border-radius: 15px; -webkit-border-radius:15px; }[/CODE]

Member Avatar for AbhishekBiswal
0
301
Member Avatar for mary_forum

Hi. First please describe us exactly what you need. A script where you will enter money and distributors and it will divide it equally or you have store information at some type and want to make a script which will get information from there and will calculate it. [COLOR="Red"][B]And one …

Member Avatar for urtrivedi
0
230
Member Avatar for marloagapay

Copy paste your code which is INSERTing the new data. And check your database is your ID set to autoincrease

Member Avatar for decade
0
202
Member Avatar for uselessninja

the best is with id (int, 11, auto increment, unsigned, primary key) you can order it like you want it and you can manipulate it easy with maths calculations because its int I prefer to use id even if there is timestamp field .. of course it depends on your …

Member Avatar for uselessninja
0
1K
Member Avatar for Shizuo

in real if you just set it to calculate this directly it will do it :) php is making math calculations so it will calculate this for you try: [CODE]<?php $var=1 + 2 - 1 * 6 + 8 / 2; echo $var; ?>[/CODE]

Member Avatar for diafol
0
530
Member Avatar for manzoor.ilahi77

open php.ini (must be at your MAIN PHP directory) edit those two lines: [CODE]post_max_size = 2M upload_max_filesize = 2M[/CODE] Enter what ever you want for value. P.S. Don't forget, after change those settings you need to restart your webserver(apache or what ever you use)!

Member Avatar for sv3tli0
0
551
Member Avatar for Sparhauoc

[CODE]require_once "Mail.php";[/CODE] line81. This file Mail.php is not in the same folder with the file you have posted. File must be in the same location or update to correct place where you have put it.

Member Avatar for Sparhauoc
0
1K
Member Avatar for designalex

Hi the way is to set a script who will post the domain name at this register server and will get the info from the same site which you have provide us. [CODE]http://co.za/cgi-bin/whois.sh?Domain=DOMAIN_NAME&Enter=Enter[/CODE] check DOMAIN_NAME there is the name of the required domain without ending .co.za you should make script …

Member Avatar for designalex
0
173
Member Avatar for Jothe

Do you need a debug system ? I can't understand what exactly you need. Please be more specific.

Member Avatar for Jothe
0
102
Member Avatar for mary_forum

IDs are numbers only. Perhaps you may set a perfix for the ID to get CHAR.ID But in this case you will set big difficulty for your script to operate with your IDs.. If there are CHARS all math functions will be unusable

Member Avatar for mary_forum
0
175
Member Avatar for chris_j_haines

by some files what do you mean ? some file types? or its uploads/not upload same file types.. Those files names are latinic or not? its very possible the problem to come out from the file name..

Member Avatar for stoopkid
0
177
Member Avatar for mownam

[CODE]$sql=mysql_query("Select UserId, UserName, Password FROM user_login Where UserName= '".$_POST['username']."' and Password= '".$_POST['password']."'");[/CODE] This is correct written.. How ever are you sure there are POSTs ? if its function perhaps there should be $username an $password (values from the function vars) not POSTs ..

Member Avatar for stoopkid
0
230
Member Avatar for nats01282

[CODE]$query = mysql_query("SELECT * FROM marquees"); while($results = mysql_fetch_array($query)){ $home = $results['home']; echo $home; } [/CODE] This will echo each result from your database query.

Member Avatar for cgull
0
215
Member Avatar for rouse

[CODE]<!doctype html> <!-- Practice jQuery slider and gallery --> <html> <head> <title>Practice jQuery slider and gallery</title> <style> html, body{ width: 100%; height: 100%; margin: 0 auto; font-family: 'PT Sans Narrow', Arial, sans-serif; font-size:12px; background-color: #DEDEDE; color: red; } #header{ margin: 0 auto; width: 860px; height: 95px; background-color: #FAF6FA; background: #ffffff; …

Member Avatar for rouse
0
90
Member Avatar for joedy

The idea of the IFRAME is to include web page inside other page with different configurations and functions, NOT TO WORK TOGETHER, only to display the iframepage content in the main page. If your idea is to display the results from your main page you should not use Iframe. How …

Member Avatar for joedy
0
173
Member Avatar for Paaat

[CODE] if(mysql_num_rows($checkUsername)){[/CODE] should be [CODE] if(mysql_num_rows($checkUsername)>0){[/CODE]

Member Avatar for Paaat
0
90
Member Avatar for kaizokupuffball

I have one old script which worked for me in the past : [CODE] function make_thumb($img_name,$filename,$thumb_w,$thumb_h) { $ext=getExtension($img_name); if(!strcmp("jpg",$ext) || !strcmp("jpeg",$ext)) $src_img=imagecreatefromjpeg($img_name); if(!strcmp("png",$ext)) $src_img=imagecreatefrompng($img_name); if(!strcmp("gif",$ext)) $src_img=imagecreatefromgif($img_name); $old_x=imageSX($src_img); $old_y=imageSY($src_img); $dst_img=ImageCreateTrueColor($thumb_w,$thumb_h); imagecopyresampled($dst_img,$src_img,0,0,0,0,$thumb_w,$thumb_h,$old_x,$old_y); if(!strcmp("png",$ext)) imagepng($dst_img,$filename); elseif(!strcmp("gif",$ext)) imagegif($dst_img,$filename); else imagejpeg($dst_img,$filename); imagedestroy($dst_img); imagedestroy($src_img); } function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; …

Member Avatar for kaizokupuffball
0
399
Member Avatar for zjbarden

Skill 1, Skill 2 , Skill 3 are with space in POST and no space at your html code. Other thing is about Trim, use not capitalized letters trim(). I know it will work in both ways but you should make it as its on standard.

Member Avatar for ko ko
0
276
Member Avatar for jacksantho

Do you have a mysql database which you use? What results you want to display? Normally with PHP you generate html code which is writable for browsers. So its easy to create the tables with storing html code into variable as this: [CODE]$somehtmlvar="<table><tr><td>AAAA</td></tr></table>"; echo $somehtmlvar; [/CODE] To give you better …

Member Avatar for jacksantho
0
2K
Member Avatar for zack654

You can't practice web site coding without HTML :) And CSS is needed for good styling. So you will need to learn them while learning PHP. The PHP code is the one which do processes but the out code is always the HTML (browsers read HTML not PHP). If you …

Member Avatar for zack654
0
298
Member Avatar for sv3tli0

Hello. Can some one offer me a check file permissions function for PHP to work in both Linux and Windows based systems? I am able to make a such check for linux but for windows I got wrong values (it doesn't show the true permissions). It must work on both …

Member Avatar for ko ko
0
105
Member Avatar for nikki05

nikki05 I have one question do you have FIREWALL protection and have you configure it to open apache port for out world?

Member Avatar for nikki05
0
7K
Member Avatar for joeidee

[CODE]SELECT * FROM TABLENAME ORDER BY id DESC LIMIT 1[/CODE] ORDER BY id DESC is ordering all row by ID starting from last ( DESC means in back order, normally its ASC) LIMIT 1 is givving us only the first record (in our case the last one because its starting …

Member Avatar for joeidee
0
83
Member Avatar for tapuwa2002

[CODE] <?php $allowedExtensions = array("jpg", "png","bmp"); function isAllowedExtension($fileName) { global $allowedExtensions; return in_array(end(explode(".", $fileName)), $allowedExtensions); } if(isset($_POST['execute'])=="1"){ if($_FILES["firstname2"]['error'] == UPLOAD_ERR_OK) { if(isAllowedExtension($_FILES["firstname2"]['name'])) { # Do uploading here if (file_exists("img/" . $_FILES["firstname2"]["name"])) { echo $_FILES["firstname2"]["name"] . " already exists. "; echo "<script>alert(\"File already exists\")</script>"; echo "<script>window.location.replace(\"testupload_1.php\"); </script>"; } else { move_uploaded_file($_FILES["firstname2"]["tmp_name"], …

Member Avatar for sv3tli0
0
126
Member Avatar for eman neercs

Please give us your database structure for both tables. To return you a correct working code.

Member Avatar for sv3tli0
0
114
Member Avatar for asif49

you are making wrong connection config for your site. Open your cpanel and check : 1st location of the database, name of database (for prefix), username and password, Open your site config file, where you have inputted your host,name,pass and recheck if you have entered wrong information.

Member Avatar for sv3tli0
0
147
Member Avatar for Pfuller06

Normally if you don't try to manipulate iframe scrolls and the content inside is with less width and height, the scrolls wont show up. Clear all css settings for the iframe scroll, and make one sample page with set width and height less then those you have set for your …

Member Avatar for sv3tli0
0
144
Member Avatar for jacksantho

Your code haven't got sense. First your check must be at start of your code so your PHP to work depnding if the event is happened or not. Other thing is that you must add method="post" to your form. And after ($_POST['submit']) you have missed one ). One more thing …

Member Avatar for jacksantho
0
3K
Member Avatar for kaizokupuffball

[CODE]user.php?id=6 [/CODE] to work you must make a coding in your page called user.php use $_GET["id"] (this will get id of the user you visit) and make a "SELECT" mysql_query to get this user info from your database and display it. :) P.P> Here is sample: [CODE] <?php include_once(YOURCONFIGfile.php); if($_GET["id"]=="") …

Member Avatar for kaizokupuffball
0
354
Member Avatar for ghost_from_sa

onChange onBlur are for javascript. there can be made a date check without any problems

Member Avatar for jbennet
0
218
Member Avatar for 54uydf

You can't import them at once. What is the structure of your files? Your data must be stored at one DATABASE and at one table? or at one database in 10tables I didn't understand you about that.

Member Avatar for 54uydf
0
406
Member Avatar for Bazzaah

[CODE]$query = "SELECT * FROM pro_words".$_SESSION['where clause']; [/CODE] This SESSION perhaps is the problem.

Member Avatar for Bazzaah
0
113
Member Avatar for zsgamer
Member Avatar for dwlamb

Its possible in some converting between different encoding formats to get any specific characters bugged forever.

Member Avatar for dwlamb
0
222
Member Avatar for maxelcat

Hello. Perhaps your problem is from your browser configuration. I tested it with my Iexplorer 7 and its working.

Member Avatar for maxelcat
0
98
Member Avatar for eduard77

I believe you need [url]http://www.smarty.net/documentation[/url] there is full documentation for installing smarty.

Member Avatar for diafol
0
92
Member Avatar for jcarbillon

you can't use such model as [CODE]name="name1" name="name2" name="name3"[/CODE] you can use array [CODE]name[]="name1" name[]="name2" name[]="name3"[/CODE] for name of your textbox set name="name[]" after that in post it will come over as array Know that one string as name cannot be equal to 3 different values at the same time. …

Member Avatar for diafol
0
115
Member Avatar for cgull
Member Avatar for nblackburn

If there are no mistakes at the way you have written the only possible reason is to get wrong file location. Try to echo $filepath , exactly above the code you have written. And check if its the correct location of this file.

Member Avatar for nblackburn
0
19K
Member Avatar for rakwel10
Member Avatar for diafol
0
82
Member Avatar for rakwel10

Can you copy the full text from your error And can you give us the source where you save the $_SESSIONS

Member Avatar for rakwel10
0
143
Member Avatar for Meonia
Member Avatar for Meonia
0
234

The End.