39,320 Topics

Member Avatar for
Member Avatar for Eagle.Avik

hi, in the mysql we can fetch data and store them into variables, like the code below: if (mysql_num_rows($userquery) != 1) { die ("that member could not be found!"); while($row = mysql_fetch_array ($userquery, MYSQL_ASSOC)){ $first_name = $row['first_name']; $last_name = $row['last_name']; $email = $row['email']; $password = $row['password']; $sex = $row['sex']; $dbusername …

Member Avatar for diafol
0
222
Member Avatar for sra1
Member Avatar for rhodoscoder

<?php // post_add.php if( isset ($_POST['title']) && ($_POST['body']) && !empty($_POST) ){ require 'connection.php'; $stmt = $conn->prepare('INSERT INTO posts (title,body) VALUES (:title, :body)'); $stmt->bindValue(':title', $_POST['title']); $stmt->bindValue(':body', $_POST['body']); $stmt->execute(); echo 'Entry posted. <a href="post_view.php?id='.$conn->lastInsertId().'">View</a>'; }else if(empty($_POST['title']) || empty($_POST['body']) ){ echo "no values entered"; } ?> As my code is , empty fields …

Member Avatar for Eagle.Avik
0
174
Member Avatar for lillorme

<?php require_once('connections/careergroup.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . …

Member Avatar for phaneendrahari
0
275
Member Avatar for Asif Naveed

hi i am new in the development field i want a little guide line about the WYSIWYG editor i have website and i want to integrate a wix html 5 type http://www.wix.com/ editor in it i try to edit the tinymce editor but i does not found it flexible as …

Member Avatar for diafol
0
389
Member Avatar for 9tontruck

/php/FrontController.php namespace FrontController; class FrontController { public static function add($a, $b) { return $a+$b; } } /project/index.php use FrontController; echo FrontController::add(4,5); error message: Warning: The use statement with non-compound name 'FrontController' has no effect in C:\wamp\www\project\index.php Fatal error: Class 'FrontController' not found in C:\wamp\www\project\index.php I want to use namesapces instead …

Member Avatar for 9tontruck
0
142
Member Avatar for kcrazy

Ive been coding in PHP for over a year now. I was thinking to learn a PHP Framework. After googling around, i found few top frameworks such as Zend, CakePHP, CodeIgniter and Symfony. Still, im not able to choose between these. Can anyone please suggest me the best one ? …

Member Avatar for jkon
0
435
Member Avatar for castajiz_2

Hi guys. for several weeks i can t make my mind whether to go and learn php or should i stick with my C# knowledge and learn ASP.net. I ve started to programming in C# 2 years ago, learned sql and databases and learned html css when i was still …

Member Avatar for JorgeM
0
135
Member Avatar for Priti_P

Hello, I have a question as: I have a calender invitation code for gmail as below: $vcal .= "BEGIN:VCALENDAR\r\n"; $vcal .="-//Google Inc//Google Calendar 70.9054//EN\r\n"; $vcal .= "VERSION:2.0\r\n"; $vcal .= "CALSCALE:GREGORIAN\r\n"; $vcal .= "METHOD:REQUEST\r\n"; $vcal .= "BEGIN:VEVENT\r\n"; $vcal .= "DTSTART:$dtstart\r\n"; $vcal .= "DTEND:$dtend\r\n"; $vcal .= "DTSTAMP:20110302T115742Z\r\n"; $vcal .= "ORGANIZER:mailto:$organizer\r\n"; $vcal .= …

Member Avatar for Priti_P
0
154
Member Avatar for HunainHafeez

i developed a website in php i did it 90% but the problem is that if i have 4 PDF files in website and via search box i enter a text and then it finds that text for me in all 4 odf files or display a message that "No …

Member Avatar for Julsy
0
155
Member Avatar for fheppell

I'm looking for a way to ensure that zero cookies are created by session, is there any way to do so? The session does not need to be overly secure, it is mainly being used to transfer basic and non-sensetive data inbetween pages. This is on a dedicated ubuntu box …

Member Avatar for fheppell
0
174
Member Avatar for rhodoscoder

I found this code online and i want to understand it, i have read the php documentation but i have found out that the php programming community offers better explanations PHP Code: function mysql_safe_query($query) { $args = array_slice(func_get_args(),1); $args = array_map('mysql_safe_string',$args); return mysql_query(vsprintf($query,$args)); } I figure the function isn't a …

Member Avatar for rhodoscoder
0
209
Member Avatar for TIM_M_91

Ok so for my register.php page I want to use https however the code that I am using makes my whole site use https how do I make it so only my register page uses https? Code I'm using: if(!isset($_SERVER['HTTPS'])) { header("location: https://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);

Member Avatar for LastMitch
0
143
Member Avatar for engr.chid

What is the best API/The CODE to use in integrating e-payment info PHP e-commerce site. especially if the payment is to be made with Phone by Cash Transfer through Mobile Banking.

Member Avatar for LastMitch
0
32
Member Avatar for brandon66

I have an array like so: $array = array(value1,value2,value3,value4,value5,value6,value7,value8,value9,value10,value11,value12); What i need to do is insert the array value into a database row one would have value1,value2,value3,value4 row two would have value5,value6,value7,value8 row three would have value9,value10,value11,value12 I was thinking i would need a for loop. Can anyone help on …

Member Avatar for broj1
0
160
Member Avatar for everton.retweets

This is driving me nuts... I am new to wordpress plugin development... I have got the basic plugin developed. Added my admin menus... What I am trying to do is add a banner image to each options page inside the plugin dashbaord. i'v tried the usual ../images/imagename.png and ./imagename.png but …

Member Avatar for everton.retweets
0
176
Member Avatar for lillorme

<?php require_once('connections/careergroup.php'); ?> <html> <head> <title> <?php echo $first_name; ?> <?php echo $lastname; ?>s Profile</title> </head> <body> <?php // Check for a form submission if (isset($_GET["username"])){ $email = $_GET['username']; mysql_connect ("$hostname_careergroup", "$username_careergroup", "$password_careergroup") or die ("Could not connect to the server"); mysql_select_db("careergroup") or die ("That database could not be found"); …

Member Avatar for lillorme
0
450
Member Avatar for cussel

hi all, i'm difficult to get values array condition: 1. if value only one get values 2. if value same then get value with index or key most high 3. if value same and key most high get all example: $data = Array(Array ("1" => "12306") , Array ("0" => …

Member Avatar for cmps
0
356
Member Avatar for dany12

What will be the language of the feature web PHP or Python? What framework will be the future a php one or a python one? I would like to add that Laravel for php is still young and the development is not made by a corporation so I don't think …

Member Avatar for profmuluka
1
457
Member Avatar for azapovjednik

hello all I am a beginner... I want to move a wordpress site from a local computer to live server... live server: plesk parallels I followed some tutorials and it says: you must create a new mySql database on server... ok I went to parallels plesk panel and I created …

Member Avatar for azapovjednik
0
1K
Member Avatar for el macho

hi guys, i try write this java code in php using php java bridge: http://www.lucenetutorial.com/lucene-in-5-minutes.html when i found this line: IndexReader reader = DirectoryReader.open(index); i dont get it how to write it in php. i've tried but error result. when it be like this: Query q = new QueryParser(Version.LUCENE_40, "content", …

Member Avatar for LastMitch
0
2K
Member Avatar for Moderns

Hello, I have a project hosted on a live server has a domain like: www.abc.com On live domain: I am unable to set cookies in IE (7, 8, 9, 10) - as it is explained in the code below - (cookies are enabled on the IE browser), but able to …

Member Avatar for LastMitch
0
209
Member Avatar for davy_yg

Hello, I have tried to create login page with CI. This is the codes that I have: views/login.php <html> <link href="<?php echo $logincss; ?>" rel="stylesheet" type="text/css" media="screen"> <div id="logoadmin"></div> <div id="loginbox"> <img src="<?php echo $logo2; ?>" width="150"> <br><br> <div id="username"> <br><br> <div id="position"> <?php echo form_open('clogin/process'); echo form_label('Username:&nbsp&nbsp', 'username'); $dataUsername …

Member Avatar for davy_yg
0
224
Member Avatar for hemanshurpatel

Hello friends I have little issue. I'm having a block of text, which is log from syslog. say log is Oct 28 11:42:59 MyMachine dbus[692]: [system] Activating service name='net.reactivated.Fprint' (using servicehelper) Oct 28 11:42:59 MyMachine dbus-daemon[692]: dbus[692]: [system] Successfully activated service 'net.reactivated.Fprint' Oct 28 11:42:59 MyMachine dbus[692]: [system] Successfully activated …

Member Avatar for hemanshurpatel
0
316
Member Avatar for subrata_ushasi

Hi all , After a long googling I am raising this issue. I want an online invoice from distribut to customer using tripletex but every one used using magento or drupal and I want it from website in php using tripletex.Is there any way to do it because I did …

Member Avatar for jani5
0
827
Member Avatar for dheerajvermawd

This is my form and i need a script to allow user to send their cv to my email. <form action="post-cv-action.php" method="post" enctype="multipart/form-data"> <table width="100%" border="0" cellpadding="05" cellspacing="0" style="font-size:12px; font-family:Arial, Helvetica, sans-serif;"> <tbody><tr> <td colspan="2" align="center"><h2 style="color:#333333; border-bottom:1px dashed #989898; padding-bottom:7px; margin-top:10px; padding-bottom:15px;">Submit your resume, we will find a right …

Member Avatar for paulkd
0
276
Member Avatar for everton.retweets

Hi Everyone. I am trying to add a pagination.class.php to my wp plugin options page using include(ABSPATH.'/includes/pagination.class.php'); But I am getting an error... Saying the file does not exists. When I view the source, the file location is website/includes/pagination.class.php How do I set this to be the plugin directory ?

Member Avatar for everton.retweets
0
261
Member Avatar for spyece

Hello, I am looking for some WordPress plugin to create a tabbed widget like this one. [B]Widget Preview[/B] [img]http://imgcrave.com/u/KLzXt.jpg[/img] [B]Theme URL[/B] [CODE]http://themes.arunkurian.net/stream/[/CODE] If anyone knows to do it or if you know a WordPress plugin then please share me the plugin link, i tried Google and some plugins from WordPress …

Member Avatar for everton.retweets
0
269
Member Avatar for Indians

here if user logged information is correct it should show the main page. in that mainpage right top corner i need to show the username, employee id, employee name. here i can get username correctly. but, i did not get employee id and employee name. for example : Name - …

Member Avatar for minitauros
0
727
Member Avatar for riahc3

Hello How can I do something like this: <script type="text/javascript"> var one="hi "; var three="there"; <?php echo ConcatTwoStrings(?>one<?php,?>two<?php);?>; </script> That should produce "Hi there". Yes, I know there is concat Javascript functions; Thats not the point as I was simply showing a easy example. How can I do the above? …

Member Avatar for poosapatisuresh
0
12K

The End.