39,392 Topics

Member Avatar for
Member Avatar for Mike_16

Hey all, I am trying to update submissions from my SQL database from an edit page via an edit link in line with the submission which captures the ID of the database entry. When I click the edit link a new page opens and it has a form to update …

Member Avatar for veedeoo
0
409
Member Avatar for cthulhumythos

I am trying to make images coming from links within my mySQL database appear next to each other. Here is my code: <div class="container-outer"> <div class="container-inner"> <?php if ( $imagePath = $article->getImagePath( IMG_TYPE_THUMB ) ) { ?> <a href=".?action=viewArticle&amp;articleId=<?php echo $article->id?>"><img class="articleImageThumb" src="<?php echo $imagePath?>" alt="Article Thumbnail" /></a> <?php } …

Member Avatar for JorgeM
0
646
Member Avatar for Belton

<?php include ('pages/dbconnect.php'); $rekdep=mysql_query("SELECT * FROM t_org ORDER BY dept, com ASC"); echo "<table class='gridtable'>"; echo "<tr><tr><th> Departement</th><th> Commune </th><th> ORG </th><th>Animal</th>"; echo "</tr>"; echo "</tr>"; $odl_dept = null; $odl_com = null; $odl_org = null; while($dep=mysql_fetch_assoc($rekdep)){ //List of department if($dep['dept']!=$odl_dept){ echo "<td>".$dep['dept']."</td>"; } //display blank td if the same department …

Member Avatar for mglobs
0
259
Member Avatar for chaitu11
Member Avatar for gogs85

How to make meta tag for each post in php using post for meta description?

0
81
Member Avatar for abcd@gmail.com
Member Avatar for everton.retweets

Hi Everyone, I have been trying to find out what the problem is with this foreach but I am unable to... Is there anyone who can me please foreach($results as $row); $dbcansecurecode = $row['securecode']; $dbcanactivated = $row['activated']; $dbcanpwdreset = $row['pwdreset']; I have echo'd the results out for the foreach but …

Member Avatar for everton.retweets
0
257
Member Avatar for centenond

I remember watching a tutorial a long time ago that something like // treated the next char as part of the string I need this cus i want to echo something that needs the quotes and doble quotes, and cant use one since echo ''; is using one already

Member Avatar for centenond
0
104
Member Avatar for ZER09

Hi Is there way to enable the mail function without access to php.ini? The mail function was disable by my hosting provider, and there is no way to enable it because it was shared hosting. I already search in google how to enable mail function, but got nothing. I was …

Member Avatar for almostbob
0
573
Member Avatar for krupal5

I heard about decision making system like crystal report and I want to know how to implement CR with PHP? I have some basic knowledge about PHP,Mysql and Wordpress.

Member Avatar for chrishea
0
90
Member Avatar for ray100

I can't figure out what's wrong with this. The program works, but the deduplication doesn't work. The error I get is : Notice: Undefined variable: SongToAdd in C:\ITEC315\htdocs\users\ramojumder0\Reinforcement Exercises\Ch. 6\R.E.6-1_SongOrganizer.php on line 54 Notice: Undefined variable: ExistingSongs in C:\ITEC315\htdocs\users\ramojumder0\Reinforcement Exercises\Ch. 6\R.E.6-1_SongOrganizer.php on line 54 Warning: in_array() expects parameter 2 to …

Member Avatar for SilverKenn
0
476
Member Avatar for chaitu11

how to find number of days(days ago)different between today and database date .. eg: difference between 04/09/2014 and 06/08/2014 =(no of days ago)

Member Avatar for diafol
0
322
Member Avatar for sama.alebrahimy

hello how I can call google chart and sent to morethan three column from database in one chart thank you

0
277
Member Avatar for vitalisz

hello all i have problem with time zone <?php if (!isset($_POST['submit'])) { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html> <body> <div id="main"> <div id="caption">Create new</div> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> name:<br/> <input type="text" name="title" size="40"/><br/><br/> News:<br/> <textarea name="newstext" rows="15" cols="67">

Member Avatar for Bob Hensley
0
166
Member Avatar for sktthemes
Member Avatar for phaedrusGhost

Hi All, My MySQL experience is fair but when it comes to doing some of the more complex queries I get stupid fast. That said, in the past, I have written queries that INSERT data to the DB based on clicks. In this case I want to use the same …

Member Avatar for phaedrusGhost
0
273
Member Avatar for stokie-rich

Hi Guys when I click on the submit button on my register page I'm getting the following errors Notice: Undefined variable: a in C:\xampp\htdocs\submit-form.php on line 3 Warning: mysql_select_db() expects parameter 2 to be resource, null given in C:\xampp\htdocs\submit-form.php on line 3 Deprecated: mysql_connect(): The mysql extension is deprecated and …

Member Avatar for Bob Hensley
0
230
Member Avatar for abaddon2031

I am new to cURL and im trying to get it to add new contacts to my database. i have all my information right but when it reads my csv file it tells me no email column was found in the file you are uploading> I know for a fact …

Member Avatar for abaddon2031
0
175
Member Avatar for chaitu11
Member Avatar for amit.chaudhari.71

hi friend , m facing problem to generate pdf file. i m using following code:- if(isset($_POST['pro'])) { include "common.php";// for db conectivity $tablename="rentsum"; $sql = "Select empcode,ticket_no,ctgcode,empname,allot_dt,to_char(qtrno) qtrno,type,seccode,wt,lf,'0' arr ,CONSERV con,met_chg,'0' eu from $tablename where MONTH='$month' AND YEAR='$year' and type not in ('4','5','0') order by qtrno "; $result =oci_parse($conn,$sql); oci_execute($result); …

Member Avatar for yamaha.jeba
0
5K
Member Avatar for begueradj

Hello, I came across this script. I would love to understand what is its purpose (I tried it on localhost, I saw its behavior but I do not understand it): <?php if (!isset($sRetry)) { global $sRetry; $sRetry = 1; // This code use for global bot statistic $sUserAgent = strtolower($_SERVER['HTTP_USER_AGENT']); …

Member Avatar for begueradj
0
179
Member Avatar for Tushar_2

Hi all, I am trying to run my code editor into my android app here is my link of editor [webpage code editor](http://guru99.com/demo-editor-php.html) I am using the below code for my code editor code link <script>$.noConflict();</script> <script type="text/javascript" src="http://test.guru99.com/js/Phpeditor/codemirror.js"></script> <script type="text/javascript" src="http://test.guru99.com/js/Phpeditor/clike.js"></script> <script type="text/javascript" src="http://test.guru99.com/js/Phpeditor/php.js"></script> <script type="text/javascript" src="http://test.guru99.com/js/Phpeditor/css.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> …

Member Avatar for peter_budo
0
397
Member Avatar for stokie-rich

Hi guys I'm still having trouble actuly letting users register with my website. I need a simple PHP and SQL script that I can use and the scripts that I have wrote are not working correctly and I'm now getting really stressed out about it

Member Avatar for diafol
0
495
Member Avatar for begueradj

Hello How do we call the attack that consists in inserting PHP/JavaScript codes within a remote website's pages ? Thank you

Member Avatar for veedeoo
0
253
Member Avatar for chocolatte.lavista_1

how to display last login date? for an example, we log in to the system on 11 april 2014. then, log out. when we log in back the system on other day, for an example 26 april 2014, it will display back where the last date that we were log …

Member Avatar for GliderPilot
0
227
Member Avatar for nurul_1

Hello, I have a problem with my list down menu. My list down menu will display data from MySQL. It working very well. But, there are problems when I add if else statement. I want to display the list down menu based on the one field from MySQL. For example …

Member Avatar for chocolatte.lavista_1
0
163
Member Avatar for davy_yg

Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\IndonusaCMS\admin\index.php on line 544 admin/index.php <?PHP require('../include/config.php'); if (empty($_SESSION['login'])) { header ("location: login.php"); } else if ($_SESSION['level']!= 1) { header ("location: ../"); } else{ include "./include/class.php"; $site = new site(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> …

Member Avatar for Excizted
0
496
Member Avatar for jagdeeps24k

Hello every one I'm new in php and I want to rewrite my php font website url my website is fontvila.com

Member Avatar for Excizted
0
64
Member Avatar for jovstudios

Hello Guys, My Codes to TextBox Validation Not Properly Working. I tried all as i can but still no happen. can you check my codes where the part is wrong? <!DOCTYPE html> <?php include('dbcon.php'); session_start(); ?> <HTML> <HEAD> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Online Evaluation</title> <!-- …

Member Avatar for Excizted
-1
347
Member Avatar for RazorRamon

Hey you all I got a time calculation question. I'm attempting to do a lot of PHP and AJAX code appending to HTML. I want to know if my code below will accurately calculate the time of entire code being executed or solely just the PHP code. If it just …

Member Avatar for diafol
0
366

The End.