39,393 Topics

Member Avatar for
Member Avatar for pritaeas

The following snippet will show, how you can pass a data array to a function, and generate a table with N columns. `$data` contains some dummy data, which can come from any data source. Then you call `createHtmlTable` passing the data, the number of columns you want, and a function, …

Member Avatar for LastMitch
3
531
Member Avatar for metjan.baduni

// This block grabs the whole list for viewing $my_id = isset($_POST['id']) ? $_POST['id'] : ''; $ped_list = ""; $sql = "SELECT * FROM `pedagogu`"; $result2 = @mysql_query($sql) or die($sql."<br/><br/>".mysql_error()); $pedCount = mysql_num_rows($result2); // count the output amount if ($pedCount > 0) { while($row = mysql_fetch_array($result2)){ $my_id = $row["ID_Pedagog"]; $ped_emri …

Member Avatar for broj1
0
314
Member Avatar for AARTI SHRIVAS

<html> <head> <title>PHPMailer - SMTP (Gmail) authenrication</title> </head> <body> <?php require_once('class.phpmailer.php'); $mail = new PHPMailer(false); // the true param means it will throw exceptions on errors, which we need to catch // - - - - - - - - - Email Configuration - - - - - - - …

Member Avatar for LastMitch
0
6K
Member Avatar for Wailintun

Hi!everybody,sorry for bother you again I created database as http://www.c-sharpcorner.com/uploadfile/satyapriyanayak/dfgd/ please check my code.here the code so far index.php <html> <head> <title></title> <script language="javascript" type="text/javascript"> function getXMLHTTP() { var xmlhttp=false; try{ xmlhttp=new XMLHttpRequest(); } catch(e) { try{ xmlhttp= new ActiveXObject("Microsoft.XMLHTTP"); } catch(e){ try{ xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e1){ xmlhttp=false; …

Member Avatar for diafol
0
431
Member Avatar for forexbulls
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
116
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
184
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
453
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
949
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
524
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
133
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
239
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
228
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
158
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
307
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
259
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
308
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
203
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
301
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
84
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
267
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
470
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
167
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
313
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
471
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
126
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
543

The End.