- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
53 Posted Topics
Re: on your login form what you have set for ACTION ? [CODE]<form action=???>[/CODE] | |
Re: 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. | |
Re: 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.. | |
Re: 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 … | |
Re: Write your query.. we are not gods to know what you send to your server :) | |
Re: Try to replace [CODE]while ($row=mysql_fetch_assoc($result)) {[/CODE] with [CODE]while ($row=mysql_fetch_array($result)) {[/CODE] ![]() | |
Re: 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 . ![]() | |
![]() | |
Re: 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] | |
Re: 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 … | |
Re: Copy paste your code which is INSERTing the new data. And check your database is your ID set to autoincrease | |
Re: 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 … | |
Re: 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] ![]() | |
Re: 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)! | |
Re: [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. | |
Re: 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 … | |
Re: Do you need a debug system ? I can't understand what exactly you need. Please be more specific. | |
Re: 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 | |
Re: 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.. | |
Re: [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 .. | |
Re: [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. | |
Re: [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; … | |
Re: 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 … | |
Re: [CODE] if(mysql_num_rows($checkUsername)){[/CODE] should be [CODE] if(mysql_num_rows($checkUsername)>0){[/CODE] | |
Re: 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 ""; … | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
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 … | |
Re: nikki05 I have one question do you have FIREWALL protection and have you configure it to open apache port for out world? | |
Re: [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 … | |
Re: [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"], … | |
Re: Please give us your database structure for both tables. To return you a correct working code. | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: [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"]=="") … | |
![]() | Re: onChange onBlur are for javascript. there can be made a date check without any problems |
Re: 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. | |
Re: [CODE]$query = "SELECT * FROM pro_words".$_SESSION['where clause']; [/CODE] This SESSION perhaps is the problem. | |
Re: Where is your $img_handle value ? | |
Re: Its possible in some converting between different encoding formats to get any specific characters bugged forever. | |
Re: Hello. Perhaps your problem is from your browser configuration. I tested it with my Iexplorer 7 and its working. | |
Re: I believe you need [url]http://www.smarty.net/documentation[/url] there is full documentation for installing smarty. ![]() | |
Re: 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. … ![]() | |
Re: Can you copy your source code from fgcontactform.php | |
![]() | Re: 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. ![]() |
![]() | |
Re: Can you copy the full text from your error And can you give us the source where you save the $_SESSIONS | |
Re: try to echo the $referer string before the last check .. See what it will show you |
The End.