39,316 Topics

Member Avatar for
Member Avatar for dinhunzvi

i have the following code <?php require_once 'includes/initialize.php'; set_include_path( get_include_path() . PATH_SEPARATOR . CHARTS_PATH); require_once "class/pDraw.class.php"; require_once "class/pImage.class.php"; require_once "class/pData.class.php"; // create data set $myDataset = array(0, 1, 1, 2, 3, 5, 8, 13); $myData = new pData(); $myData->addPoints( $myDataset ); $myData->setAxisName( 0, "Numbers" ); // define image object $myImage …

Member Avatar for Mahesh_12
0
678
Member Avatar for peopletrendin

Hi, What is the difference between include() and reqiured() in php.

Member Avatar for peopletrendin
-1
175
Member Avatar for metalix

first create the table [CODE] create table images ( image_id serial, filename varchar(255) not null, mime_type varchar(255) not null, file_size int not null, file_data longblob not null, primary key (image_id), index (filename) ); [/CODE] the file to output the images to the browser [B]picsrc.php[/B] [CODE]<?PHP //detect if image is called …

Member Avatar for guruparthi
0
1K
Member Avatar for Gurjit_1

Hello friends, Please help me to sort out my problem , actually it is strange one and don't know why it appears. Actually I was trying to make a file upload form which I got success although a bit. A bit in the sense, if I include just <form> in …

Member Avatar for Gurjit_1
0
218
Member Avatar for Michael_29

G'day, I'm currently trying to get a input box with a submit button that puts the command into a string and executes it on a detached screen. Currently I have the following: **index.html** <form id="commandForm" method="post" action="command.php"> <input type="text" name="command" /> <input name="sendCommand" id="sendCommand" type="submit" value="Send" /> </form> **command.php** <?php …

Member Avatar for cereal
0
719
Member Avatar for Web_2

Hi everyone, i want Php script for regional Language e-paper like http://epaper.pudhari.com/ that because i want same Hard copy paper on to website in that block wise news reading option (e.g. when u select block news it display pop up or new page just see link above e-paper like that) …

Member Avatar for ankurtheprogrammer
0
2K
Member Avatar for superior7867

Dear Team I am creating a html form for data entry in mysql database and want to multiple rows inserted in one time when i filled a row then on enter key press a new row created automaticaly in html and php for more entering data so how is this …

Member Avatar for veedeoo
0
327
Member Avatar for RonKevinT.Manuela

Is it possible to list down all files from a folder then have an option to delete them one by one?if so, can you give me the right way to do it?not the code but the step by step tutorial or explanation..well if its a code I just hope I …

Member Avatar for diafol
0
275
Member Avatar for levunkosha.hihoha

I was following a tutorial by codeNmind on Youtube about Facebook SDK V4. I've followed everything, but I keep getting the error that Fatal error: Class 'Facebook\FacebookSignedRequestFromInputHelper' not found in... Anyone with an idea what that could be? And if there is another tutorial you can recommend for posting on …

Member Avatar for Natalya_1
0
583
Member Avatar for bradly.spicer

Hey! Long time no speak ^.^ I've been trying to make a query which would follow this logic (Which works in phpMyAdmin): UPDATE member_food SET food_id=12 WHERE member_id=4 AND food_type="breakfast" However, when I do it in PHP: $sql_breakfast1 = "UPDATE member_food SET food_id ='$breakfast1' WHERE member_id='$id' AND food_type='breakfast'"; if ($mysqli->query($sql_breakfast1) …

Member Avatar for bradly.spicer
0
128
Member Avatar for afaaro

Hello I have 5000 data how can i update one time dbquery("UPDATE ".CATEGORY_TABLE." SET name='".cleanString($data['title'])."'");

Member Avatar for afaaro
0
170
Member Avatar for surprino

Hi Guys I am a rookie here... I have a function which gets information from a postgres database. And returns an array. But how do I echo a single value from the array returned by the function. Please see function below: function getDate($campid) { global $conn,$agencies; $return=array( 'date'=>'', ); $sql …

Member Avatar for pritaeas
0
193
Member Avatar for Nurul_2

Hello, I had an error while compile this code. Can somebody help me.. I need the answer ASAP..Thank you search.html <form name="form" method="post" action="search0.php"> Search by Matric No.: <input type="text" name="patron_ID" placeholder="Student No."> <input type="submit" name="Submit" value="Search"> </form> search0.php <?php /* include db connection file*/ include("dbconnect.php"); /* capture student number …

Member Avatar for cereal
0
131
Member Avatar for Dartz654

So, I just installed XAMPP on my PC running Windows 7. Here's what my website looks like: [B]/Header.php[/B][CODE] <?php session_start(); include("http://localhost/Functions.php"); connect(); ?> [/CODE] [B]/Functions.php[/B][CODE] <?php function connect(){ $username = "dartz654"; $password = "letmein"; $hostname = "localhost"; $con = mysql_connect($hostname,$username,$password) or die ("Unable to connect"); mysql_select_db(database, $con); } ?> [/CODE] …

Member Avatar for Asromi rOmi
0
925
Member Avatar for ooshaonline

a white blank space comes up when i try to access my site, and when i checked the error log on the server, i saw this: "PHP Warning: PHP Startup: Unable to load dynamic library '/usr/php/54/usr/lib64/php/modules/http.so' - /usr/php/54/usr/lib64/php/modules/http.so: undefined symbol: zend_new_interned_string in Unknown on line 0"

Member Avatar for hericles
0
39
Member Avatar for Richtofen345

Hi, I am trying to connect to mysql from php Below is the sample code i used. [COLOR="Green"]<?php <?php $username = "root"; $password = "pwd"; $hostname = "localhost"; $dbh = mysql_connect($hostname, $username, $password) or die("Unable to connect to MySQL"); print "Connected to MySQL<br>"; mysql_close($dbh); ?>[/COLOR] The problem here is I …

Member Avatar for Deepika_6
0
2K
Member Avatar for kasr12

I have a query by different attributes. When one query is started and we are for example on page 7, and a new attribute is chosen, the query still shows the 7 page of new results. And it should show page 1 as the new attribute is chosen. Could you …

Member Avatar for cereal
0
194
Member Avatar for subramaniyam.k

Error: Apache shutdown unexpectedly. improper privileges, a crash, or a shutdown by another method. Press the Logs button to view error logs and check the Windows Event Viewer for more clues If you need more help, copy and post this entire log window on the forums

Member Avatar for cereal
0
35
Member Avatar for minitauros

So I've given RequireJS a try this weekend, and although it appears to work pretty smooth, I can't figure out one thing: How do I combine PHP and Javascript while using RequireJS? See, RequireJS can only work with .js files, meaning that it cannot "require" .php files. In many files, …

Member Avatar for minitauros
0
724
Member Avatar for Chem_1

Web address of some web sites end with ".aspx", ".php", ".jsp", etc.How web developers can hide the extensions from visibility.

Member Avatar for diafol
0
214
Member Avatar for razar63

I now have a simple "shopping cart" script that I have converted to an "add to shortlist" script to better suit my website. Everything wokrs great however after you click the add to shortlist link it goes to the shortlist page. Here is the code for "add to shortlist" <a …

Member Avatar for razar63
0
4K
Member Avatar for razar63

Im trying to bebug some javascript in firefox and I keep getting this error. SyntaxError: syntax error data: {action: addtocart, id: <br /> the javascript is this: <script type="text/javascript"> jQuery(document).ready(function($){ $('#button').on('click', function(e){ $.ajax({ url: 'shopping2/includes/functions.php', type: 'POST', data: {action: addtocart, id: <?php echo $pid; ?> }, cache: false, success: function(data){ …

Member Avatar for hericles
0
285
Member Avatar for RodneyzPc

Hi..I sure hope you can help me ! 2 years ago you helped with a Update Form and I've been trying to adapt the form to my mySQL Database.As I'm just learning and trying to figure some of this out I've seemed to have hit a road block. . . …

Member Avatar for RodneyzPc
0
440
Member Avatar for bro_1

how to remove php extension in .htaccess example media.php?page=test

Member Avatar for Isaac_4
0
223
Member Avatar for thilipdilip

Hi: I'm creating one classified site, in that we need to write SEO friendly urls for google page ranking and optimisation. How to do that any one pls help me.

Member Avatar for matrixdevuk
0
527
Member Avatar for rjusman90

want to minus the quantity when click delete if cart qty is more then 1 //remove item from shopping cart if(isset($_GET["removep"]) && isset($_GET["return_url"]) && isset($_SESSION["products"])){ $product_code = $_GET["removep"]; //get the product code to remove $product_s = $_GET["removes"]; //get the product size to remove $return_url = base64_decode($_GET["return_url"]); //get return url foreach …

Member Avatar for minitauros
0
172
Member Avatar for numus175

hello im newbie i have a string example " i want to buy a new car " and i want to show only 3 words("i want to") from string can you help me please ? Does an example project exist for something like this? thank you

Member Avatar for diafol
0
682
Member Avatar for HuePig

Hi, im trying to transform a string to make it a date $date1 = '$month/$day/$year'; //in jS value form type="number" $date2 = strtotime($date1); $date3 = date('Y-m-d',$date2); The problem is that when I SET date = $date3 the database saves 0000-00-00. what am I doing wrong??

Member Avatar for diafol
0
266
Member Avatar for Isaac_4

Here is a simple way to insert into a database that isn't much harder than using string concatenation - which we all know is very dangerous due to SQL injection attacks. Put the code snippet into `database.php`. Now, in a script handling a form post, such as `post_reply.php`: <?php require_once("database.php"); …

Member Avatar for diafol
4
498
Member Avatar for missy_mi

I am trying to make a registration form and when submit it will save in my phpmyadmin database. this is for my register.html : <!doctype html> <html> <head> <meta charset="utf-8"> <title>Register</title> </head> <body> <form name="register" action="register_p.php" method="post"> <center><table width="900" border="0" cellspacing="0" cellpadding="0"> <center></br></br> <tr><td width="61%"><p>Full Name: <input name="Fullname" type="text" id="Fullname" …

Member Avatar for missy_mi
0
317

The End.