39,323 Topics

Member Avatar for
Member Avatar for vizz

How to extract only first two paragraph form mysql? [CODE] while($row = mysql_fetch_assoc($result)) { $about=$row["about"]; } $start = strrpos($about, '<p>'); $end = strrpos($about, '</p>', $start); $paragraph = substr($about,$start,$end-$start ); [/CODE] This code gives first only one paragraph. How to get first two paragraphs? Please help

Member Avatar for vizz
0
2K
Member Avatar for Olifant

i want to do a project on online vihecle tracking so i need to know the requirements and the code

Member Avatar for diafol
0
59
Member Avatar for swilliamrobert

Hi, This is code. $toname = 'XXXXXXXX'; $to = 'test@mail.com'; $fromname = 'YYYYYYY'; $from = 'test123@mail.com'; $subject = 'This is test email '; $body = 'Hai this is test email MIME......Help me out.....'; $text_body ='<html> <head> </head> <body> <table align="center" cellpadding="5" cellspacing="0"> <tr align="right"> <td bgcolor="#336699"> <b><font color="#FFFFFF" face="Verdana, Arial, …

Member Avatar for pritaeas
0
117
Member Avatar for arjani10

Hello! I ma trying deferent times but nothing happened in my website the frontpage dont change ...I have 3 colums i need 2 colums ,when i set nothing happend.Can i have an help please?my website is [url]http://shqiplive.info[/url] i set like image here[CODE]http://desmond.imageshack.us/Himg201/scaled.php?server=201&filename=tablehj.jpg&res=medium[/CODE]

Member Avatar for Ritesh_4
0
196
Member Avatar for anthonyjpv

Im building a very small website which has an admin and public area what i want to know is your prefence when it comes to reporting or logging ie. when admin or user insert, update, delete, from and to the database changes will be written to either a database or …

Member Avatar for anthonyjpv
0
84
Member Avatar for cartergarth

How do I set default value of function parameter as today's date? I tried: [CODE]function funcName($today=date('Y-m-d')) {do something}[/CODE] Throws me this error: [CODE]Parse error: syntax error, unexpected '(', expecting ')'[/CODE] Thanks.

Member Avatar for pritaeas
0
221
Member Avatar for epicrevolt

So, for the past couple years, I've been using systems like WordPress and now Drupal to construct client websites. Most of the development has been front-end with themes and simple widgets (or blocks in Drupal). Don't get me wrong, I love using those systems, but now I want to move …

Member Avatar for diafol
0
238
Member Avatar for anthonyjpv

Hi! Im changing my database engine from MyISAM to InnoDB its because I learned online that if I were to use FK's that its more likely that I have to use InnoDB my question is: if I have a one-to-many relationship tables: ie. one PK in table 1 can have: …

Member Avatar for baig772
0
75
Member Avatar for simirnov

Hi all, I do not know PHP at expert level. I have an admin panel which has index file coded in OOP which does not open the admin_home.php. When i give admin username and password to login, it logs in and takes me no where and shows the same log …

Member Avatar for baig772
0
62
Member Avatar for mohamedasif18

Hi all, I hav a code that takes my table rows and displays as checkboxes in a registration form, When the form submits user checked values will be saved separated by comma's(,) in one column . In future the user need to edit his details means how to show that …

Member Avatar for mohamedasif18
0
1K
Member Avatar for vaultdweller123

Hey guys anyone here know how to set-up virtual host on nginx? ive tried the manuals but doesn't work for me

Member Avatar for vaultdweller123
0
438
Member Avatar for adityamadhira

Hi I am retrieving values from database for edit profile... I have one query ..... i.e. Based on department Id in database i am showing selected value in drop down box.... but while inserting how to insert department id. $data = @mysql_query("select * from Department"); $array = array(); while ($row …

Member Avatar for vaultdweller123
0
158
Member Avatar for Trizocy

Greetings everyone, im new here so i hope anyone could help me with this: I have bought a script that are encoded is something that i cant change or read, and i have ask the owner how to put a {user} at the end of every hyperlink so are going …

Member Avatar for jkon
0
144
Member Avatar for njenge
Member Avatar for accra

Am trying to validate these variables with an if statement,but it not working,any help will do. [CODE] if($navtype == "xxxx") { $com_name = $_POST['com_name']; $loc = $_POST['loc']; $name_mech = $_POST['name_mech']; $vtype = $_POST['vtype']; $s_veration = $_POST['s_veration']; $remnder_ver = $_POST['remnder_ver']; $vreg = $_POST['vreg']; $last_startdate = $_POST['dy']."-".$_POST['dm']."-".$_POST['dd']; $mileage = $_POST['mileage']; $current_mileage = …

Member Avatar for simplypixie
0
114
Member Avatar for Martin C++

Question in title. I need it for my PHP site to know which theme is active and I dont want to use database for it. I think it should be possible, cause wordpress doesnt have this stored in database either (I think).

Member Avatar for NinjaMediaD
0
70
Member Avatar for Killuminati11

Hello! i am looking for coders to help with making a online mafia game, i myself cannot do it yet but am trying to learn, and have realized how much money can be made once you get active players!!! i am willing to put a lot of time into this …

Member Avatar for Killuminati11
0
75
Member Avatar for tokick4

Hello, First let me start of by saying that I am new to javascript and ajax, but I thing I need them to accomplish what I am trying to do and here it is. I have there search forms, 1 search owner, 2 search contractor, 3 search properity. Then I …

Member Avatar for jstfsklh211
0
207
Member Avatar for loudube

I have the code shown below that nicely fills a Combobox but I have no idea how to have it on a form so that the user can select an item and the resulting $_POST would be availabe to another page the same way it would be if the Combobox …

Member Avatar for diafol
0
86
Member Avatar for Webville312

Hello, all. I am doing a project, which supports users such as Administrators, teachers and students. Since I will not always be available when they are registering, I want a user to create for themselves an account. However, the challenge is that, I do not want a user to register …

Member Avatar for Webville312
0
155
Member Avatar for Artix123

Hi I am working on web for some group, but i have problem my code is [ICODE]<?php session_start(); $username = $_POST['username']; $password = $_POST['password']; if ($username&&$password) { $connect = mysql_connect("http://mysql.ic.cz/phpmyadmin/","USERNAME","PASSWORD") or die("Nemůžu se pÅ™ipojit"); mysql_select_db("vy_promm") or die("Nemůžu najít databázi"); $query = mysql_query("SELECT * FROM uživatelé WHERE username='$username'"); $numrows = mysql_num_rows($query); …

Member Avatar for diafol
0
101
Member Avatar for nzaman
Member Avatar for Arjun_Sarankulu

I have html page(Main_Frame.html) which contain two frames. 1)abc.php 2)xyz.php How can i auto refresh abc.php without refreshing the whole.

Member Avatar for diafol
0
89
Member Avatar for sujan.dasmahapa

I want to create a button on a php pafe like a form now after pressing this button i should load an image. Now the I have done this. when the image is appearing it's on the other page than where the button was. I want to have the button …

Member Avatar for pritaeas
0
205
Member Avatar for lifetalk

Hey guys... Needed some help in PHP .. Basically.. say.. I have 2 or more input fields and one text area. Now, I want some sort of a php script that would use POST to extract submitted data from the inputfield1, inputfield2, and text-area. The textarea is going to have …

Member Avatar for baig772
0
187
Member Avatar for cherrya

Anyone can help me how to get data from one page to other page? here code : [CODE] <form action="" method="post"> <input type="hidden" name="id" value="<?php echo $id; ?>"/> <div> <p><strong>ID:</strong> <?php echo $id; ?></p> <strong>Nik: </strong><font class="important">*</font><input type="text" name="nik" value="<?php echo $nik; ?>" /><br/><br/> <strong>Name: </strong><font class="important">*</font><input type="text" name="firstname" value="<?php …

Member Avatar for baig772
0
585
Member Avatar for anthonyjpv

Hi! I need to know if theres a function that is simmilar to mysql_insert_id function where it gets the last inserted id but the thing is my id is not auto increment i tried doing the select statement but not working my scenario is: i am updating a record from …

Member Avatar for pritaeas
0
86
Member Avatar for dancks

I was given this assignment: Create an html form. Include at least two text boxes, at least one of which must be numeric, a set of at least three radio buttons, a submit button and a reset button. Upload to your account. Make sure the permissions are correct. Name it …

Member Avatar for baig772
0
356
Member Avatar for kinuthias

Somebody please help me come up with a code that helps a motorist troubleshoot a problem in his car.A non mobile application will also be a good one.

Member Avatar for diafol
0
39
Member Avatar for baruchM

I have a directory named action at the same level as my basic script. I want to include a file called Upload which is in the action directory in my script. I keep getting errors saying the script can't find my file, but my script looks identical to the book. …

Member Avatar for vaultdweller123
0
172

The End.