39,388 Topics

Member Avatar for
Member Avatar for davy_yg

Hello, I have this codes: <div id="contactform"> <div id="contactform"> <?php require_once('recaptchalib.php'); $error = array(); $name = strip_tags(@$_POST['name']); $email = str_replace(" ", "", strip_tags(@$_POST['email'])); $phone = str_replace(" ", "", strip_tags(@$_POST['phone'])); $message = strip_tags(@$_POST['message']); if (isset($_POST['submit'])) { if( ($name !='') && ($email !='') && ($phone!='') && is_numeric($phone) && ($message !='' ) ) …

Member Avatar for AARTI SHRIVAS
0
114
Member Avatar for lukas.vandendijssel

Hello, I know I shouldn't use mysql_. So I have a mysql_query which updates my table (for a hit counter). However, when I open the page, I get to see this: > You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version …

Member Avatar for lukas.vandendijssel
0
182
Member Avatar for naphets

I have a bash script that executes @ init level 3. I would like to "wrap" (for lack of better word) this bash script in a php script. Use the power of php to supress any output from the bash. Also display only the splash logos (like what you see …

Member Avatar for naphets
0
449
Member Avatar for ian111

php.ini file not being read Cannot get my php.ini file to be read. Running freebsd5.3 with apache2.0.53 with php5. php5 loades as a module. The server is runing fine with all sites working well. And the php scripts are being read fine as well. In fact everything is working fine. …

Member Avatar for Nika111
0
941
Member Avatar for cereal

> There is a vulnerability in certain CGI-based setups (Apache+mod_php and nginx+php-fpm are not affected) that has gone unnoticed for at least 8 years... read more: http://www.php.net/archive/2012.php#id2012-05-03-1

Member Avatar for LastMitch
2
521
Member Avatar for ebanbury

Hi I have successfully engineered a login.php system, complete with logout.php, forgotpass.php and the associated functions which go with that. My users can log in and log out of the system and go to the pages directed to them without a problem. I was then asked to create a second …

Member Avatar for ebanbury
0
128
Member Avatar for veedeoo

Hello Everyone, Please accept my simple and humble contribution. This script will validate if the user or visitor is a suspected spammer, by utilizing the stopforumspam API. Example implementation ## example usage. These items can be from database or from form input. The choice of implementation is all up to …

Member Avatar for LastMitch
5
238
Member Avatar for pucivogel

Is there anyway to view/download binary files from a folder in my server with Ajax? If not in ajax, in php? Can you show me any tutorial or page which shows this?

Member Avatar for AleMonteiro
0
227
Member Avatar for pucivogel

I get this error Notice: A non well formed numeric value encountered in C:\wamp\www\agenda\index2.php on line 178 on th following line : echo ' <b><a href="engine/changedate.php?date=' . date("Y-m-d", $dtime) . '">' . date("Y-m-d", $dtime) . '(' . $days . ')</a>:</b><span title="' . $recordSet->fields["description"] . '">' . $recordSet->fields["title"] . '</span>'; any …

Member Avatar for pucivogel
0
156
Member Avatar for sahil.bhatia.18

Hi experts, My website (PHP+mysql+javascript) khabarfast.com hacked 4 times from unknown hackers. Need suggestion for get rid of hacking.

Member Avatar for sahil.bhatia.18
0
236
Member Avatar for pucivogel

I have this code it uploads photos and deletes photos, but how can i make it to upload photos in a folder i want not in the same folder where the script is, i just can't see where can i implement the path. Here's the whole code: <?php /** * …

Member Avatar for Squidge
0
305
Member Avatar for pucivogel

i have downloaded this script , a photo gallery which creates albums, uploads photos, deletes them, i nedd to insert the path of the folder according to this instructions : $script_url=$_SERVER['PHP_SELF']; //Change this if you want to use this as an include file. $files_path="./album/"; // Where does the album start? …

Member Avatar for Squidge
0
256
Member Avatar for dxnitz

hi, I'm doing a web that can show html file code into textarea using php but my problem is when reading a html file that also contain textarea this is my html <html> <body> <textarea> Trying this !!!!!!!! </textarea> <br> <span>ASD</span> </body> </html> and this is my php code that …

Member Avatar for broj1
0
307
Member Avatar for sagisgirl

Hi all.. im now building a web-system using php..and i have 4 groups of users 1- G1 2- G2 3- G3 4- G4 in my db, those are in my table called "u_userGroup" and for my entity is "groupCode". so, these 4 groups have different privileges to each page.. G1 …

Member Avatar for sagisgirl
0
202
Member Avatar for ckjaseem

I have a button which uploads a background image to a folder and saves the file name to the database, but I cant figure how to re size the image before uploading it. Actually I am facing two problems. 1 - How to resize the image and upload it. 2 …

Member Avatar for LastMitch
0
300
Member Avatar for Wailintun

hi! everybody, I want to know dropdown and display. when I choose "red" in dropdown then refresh page and shown "red" beside dropdown. ** ONLY IN PHP** thanks for your time.

Member Avatar for LastMitch
0
83
Member Avatar for sophy27

So I have been able to post the comment in the page I am creating and that comment is also saved in the comment table in the database with the id of the picture but when i am in the first picture and I comment the comments are posted saved …

Member Avatar for LastMitch
0
265
Member Avatar for gogs85

I need php opet source code for e-commerce when client filled cart registered to the home address no pay pal and Visa.I found a lot of e-commerce CMS, but they are all for paypal or visa.I need php code to put in my site and orders sent to your home …

Member Avatar for Octet
-1
140
Member Avatar for luke.belleghem

I need a script that replaces "login" with "logout" when im logged in and vice versa. Anyone know of a god tutorial that teaches how to do this?

Member Avatar for Octet
0
469
Member Avatar for Vijaysurya

hai everybody, i need help in my container div indide all the div value is empty means container value is empty message show any body plz help me <div Id=" container1"> <div I'd=" friends-cta"> <php echo $viewee[' name'] ?> </div> <div I'd=" friends-ota> <php echo $viewee[' occupation'] ?> </div> <div …

Member Avatar for blocblue
0
166
Member Avatar for pucivogel

I am following this tutorial http://www.css-resources.com/code-for-php-photo-gallery.html to create php photo gallery but i get errors undefined index photos, categories and cy when i run this code, it gets the category names in a textarea and adds them in the db, in the output also says no database selected but i …

Member Avatar for michel.cote
1
312
Member Avatar for sophy27

Hi, everyone! I need some urgent help with displaying images in a web page from a database. I've created the table picture in phpmydamin and it has these columns: id_picture( wich is the primary key), name, description and the pic_url ( wich contains the url path of the image for …

Member Avatar for sophy27
0
1K
Member Avatar for arjay1

I am converting a traditional website to WordPress for an animal rescue charity so members can have a blog and more easily update various pages. All has gone well but I am stuck on one key aspect. Viewers of the original site can click on a page that will then …

Member Avatar for arjay1
0
470
Member Avatar for johslind

I'd like to share with others a discovery I made about using meta tags for other purposes than SEO. My issue was to have a number of articles shown in exactly the order I wanted them to be listed. I also wanted that certain articles shoule be shown as subarticles …

Member Avatar for diafol
1
125
Member Avatar for vssp

hai friends I want mail server setting in my php appliacation no need to change the php ini file I got some sample code like this $mail_ini=ini_set(SMTP,"mail.ebscon.com"); $mail_ini=ini_set(smtp_port,25); This code working on only Windows machine only. But I am using linux machine Any option without change the phpini file to …

Member Avatar for IIM
0
542
Member Avatar for Samyx

Hello Everyone, I created a form so that users can select date range. Based on the date range later on it would show a graph. I am still in the first part trying to get the value selected by the user so I can generate the query from the database. …

Member Avatar for IIM
0
632
Member Avatar for LastMitch

Hi, I been learning **OOP** slowly. I'm stuck how to resolved an **function query() on a non object issue**. My files are very basic: This is my **db.php** file: <?php global $db; class foo_mysqli extends mysqli { public function __construct($host, $user, $pass, $db) { parent::__construct($host, $user, $pass, $db); if (mysqli_connect_error()) …

Member Avatar for broj1
0
846
Member Avatar for AARTI SHRIVAS

i want to add multiple texboxes on button click and store that value in database can any one help me out how to do this i know some javascrip and jquery neede but don't know how to store the all texbox value to database because for multiple texboxes in database …

Member Avatar for AARTI SHRIVAS
0
3K
Member Avatar for Edwinner

$query = "SELECT * FROM customers WHERE firstname = '$firstname', lastname = '$lastname'"; $result = mysql_query($query); i keep getting Error: Query was empty

Member Avatar for cereal
0
128
Member Avatar for guyinpv

Hi guys, I'm looking for comments and suggestions regarding the use and place of jquery/ajax in site development. I know jquery allows a lot of cool stuff and so does ajax, but when a site becomes heavily based on these tools, the use of PHP dwindles. I am used to …

Member Avatar for guyinpv
1
457

The End.