I want to develop a edit form for newsletter. I have done this but i can't load category list in same view.
if user click on newsletter its open in edit view, in this edit view i want to give him a option for category selection option. categories are stored in different table name cat.
i have tried it but its showing only one category....
Hi everybody,
I am using Drush which is launching php in command line. I copied my initial php.ini in my local directory so that php is using the same configuration as if it was launched by the web server. When used with the web server, it works well. Unfortunately, when launched with the command line, PHP crashes when drush calls mysql...
So I have been using a method to retrieve images from a website but I thought it may be easier to simply show the page without some details I don't want displayed. The website in paticular know we are doing this so there shouldn't be any legal complications. So would it be possible to open the html page within PHP, search for a specific ...
I have a table
$query=
"CREATE TABLE screenshot ".
"(screenshot_id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, ".
"source_video_id INT UNSIGNED NOT NULL, ".
"screenshot_file_name VARCHAR(128), ".
"x_res INT, ".
"y_res INT, ".
"time INT UNSIGNED);";
mysql_query($query);
Then I insert things into that table.
I often want to do an SQL quer...
I added a new column "features" to the site table and regenerated the models using Doctrine
This code is causing an error
$siteTable = Doctrine_Core::getTable("Site");
$site = $siteTable->findOneByName("site"); // this line is throwing an exception
Exception : Unknown column "s.features" in field list.....
I checked the database ...
hi,
i have create a cookie using setcookie method in php. i want to reset this cookie using ajax. but this doesn't work. if any one have an idea. please help.
Thanks,
...
According to DOMPDF's FAQ, you can use page-break-before and the similar to force page breaks.
I had to lay out my page with tables, as DOMPDF does not support floats.
On a <tr> element, I have placed style="page-break-before: always" but the generated PDF doesn't seem to follow this rule.
Is it because I have placed it on a tr elemen...
I have an application in which I have manually uploaded videos using Youtube Data API.
It is working fine.
But now I want to display thumbnails of video uploaded by my users in my application.
I have tried a lot for this with getVideoThumbnails(), but I can not get videoEntry object of recently uploaded video.
This is my code :
$yt...
I'm running XAMPP.
Is there a line I can add to .htaccess or http.conf to make ASP be parsed and handled as PHP pages?
I had it setup before but can't remember how to do it. What I've tried so far hasn't worked.
Edit: None of these solutions are working, I've tried everything.
...
I have a long running php script which is basically an infinite loop listening for events (its an xmpp bot), I start the script with nohup php bot.php &.
The raw structure of the script is like
$mysqli = mysqli_connect(...);
while(1) {
if(event1) {
// do database action
} else if(event2) {
// non database action
...
Hello !
I just want to ask how to encode URL or hide confidential information to be displayed on browser
for e.g
<a href="path/profileId/<?php echo $this->data['profile_id'];?>Edit</a>
I dont want profileid to be displayed on Browser..
is there any function or method in zend or php ... to accomplish this task... And how can i use th...
Can you recommend me some book about CodeIgniter? I have knowledge about oop but not about mvc or other frameworks.
...
Hi all,
I'm about to begin work on my first ever PHP project -- building a new website for a small non-profit organization. Coming from a .Net and Java background, object oriented programming comes very naturally for me, but I'm not sure if it's the right approach for bulding a website of moderate complexity in PHP. My understanding is ...
Mostly need insipiration on this topic:-
Will be building one with:-
1) Google maps retaurant delivery range system
2) Food menu with infinite number of categoies, sub-categories, toppings, etc-
* making the restaurant owner enter their menu will be a bit tricky. Some UI elements to seamlessly add products would be great.
3) Something...
I'm trying to install berta (v 0.6.3b) a cms.
and I get this error. The error seems to happen on line 75 of class.bertasecurity.php (view source code)
What is wrong and how can I fix it?
Thank you so much!
Answer
I added this to the class.bertasecurity.php file
session_save_path($_SERVER['DOCUMENT_ROOT'] . '/randomfolder/sessions');
...
For URL Rewriting, i have got the output for static URL
But , for dynamic URL , i am getting partial output only.
I have placed the .htaccess file in the root directory only.
Here is the code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^booking/price/([0-9]+)/?$ booking.php?price=$1
What will be the solution ?
...
Ok so i've made this function which works fine for converting most urls like pies.com or www.cakes.com to an actual link tag.
function render_hyperlinks($str){
$regex = '/(http:\/\/)?(www\.)?([a-zA-Z0-9\-_\.]+\.(com|co\.uk|org(\.uk)?|tv|biz|me)(\/[a-zA-Z0-9\-\._\?&=#\+;]+)*)/ie';
$str = preg_replace($regex,"'<a href=...
I'm looking for a subscribe/unsubscribe mailing list to install on my website.
Requirements:
PHP/MySQL;
Cron job: uses scheduling to send email in batches;
Multiple languages: when user is subscribing, they need to select preferred language from a drop-down;
Send in both HTML/Text;
Bounce-email check;
Double opt-in: user must confirm ...
Hi
Iam developing a theme for wordpress.And i have many images in 'images' folder.But when i take the page in browser its not comming
My code is
index.php
<ul>
<li><a href="#"><img src="images/mindset.jpg" width="145" height="32" /></a></li>
Is there any function for getting the image path in wordpress ?
...
The Scenario
I am building a web application where reports can be generated on the fly (based on information retrieved from an SQL database). These reports will contain charts, which can also be generated on the fly. Because these charts contain sensitive information, using a 3rd party chart API (ie: Google Charts) is out of the questi...