Search found 28 matches

by paulng
Fri Aug 25, 2006 7:06 am
Forum: PHP - Code
Topic: PHP looping one question category to the answers of that cat
Replies: 1
Views: 642

PHP looping one question category to the answers of that cat

Hello there! Could some one please help me with the code below. I'll explain what Im trying to do. Basically, I have an FAQ application and I'm looping to output the question category and all the answers for that category. At the moment it diplaying all the categoties on top and then all the questio...
by paulng
Mon Jul 17, 2006 12:21 pm
Forum: PHP - Code
Topic: help with php strip function
Replies: 6
Views: 354

Burrito,


Thank you very much, it work exactly as I wanted...


Cheers :D
by paulng
Mon Jul 17, 2006 12:09 pm
Forum: PHP - Code
Topic: help with php strip function
Replies: 6
Views: 354

eve yes that's exactly what Im looking for, let me give u this example of something I have tried. I have two variables but I want the result of the two together. $testvar = "<div id=\"TEXT_CODE\">&nbsp;</div>"; $test = str_replace("<div id=\"","",&quo...
by paulng
Mon Jul 17, 2006 12:02 pm
Forum: PHP - Code
Topic: help with php strip function
Replies: 6
Views: 354

Burrito thanks for the quick reply.

yes TEXT_CODE is a dynamic value but as long as I can get rid of everything around TEXT_CODE my problem will be solve.

Thanks
by paulng
Mon Jul 17, 2006 11:56 am
Forum: PHP - Code
Topic: help with php strip function
Replies: 6
Views: 354

help with php strip function

Hello, I have a string as follow <div id=\"TEXT_CODE\">&nbsp;</div> and Im trying to strip off everything except TEXT_CODE. I have tried a few php predefined functions such as strip_tags, str_replace but Im not satisfy with the result... does anyone know any better function that will g...
by paulng
Fri May 19, 2006 7:21 am
Forum: PHP - Code
Topic: having problem Inserting Set data into mysql
Replies: 1
Views: 487

having problem Inserting Set data into mysql

Can any one please help... I have a survey questionnaire, one section has checkbox which are suppose to be submitted into my database if checked individually but Im having trouble writing a query, at the moment it submitting everything but I want it to submit what is checked here is my code html <ta...
by paulng
Tue Dec 13, 2005 3:37 am
Forum: PHP - Code
Topic: table cells and rows array, looping
Replies: 4
Views: 344

Everah, Jayshield

Thank you both for your replies, as Everah suggests that is what I would like to achieve...Everah in terms of styling I dont understand what you mean if you could please elaborate regarding the <div> to organinse my table.

Paulng.
by paulng
Mon Dec 12, 2005 8:42 am
Forum: PHP - Code
Topic: table cells and rows array, looping
Replies: 4
Views: 344

table cells and rows array, looping

Hi! I m retrieve data from a database using the following sql statement: sql_query = "SELECT * FROM $table WHERE StartDate <= '$currdate' AND EndDate >= '$currdate' ORDER BY DisplayOrder ASC LIMIT 4"; , Now, I was wandering if anyone could help in writing array that display the result outp...
by paulng
Mon Dec 12, 2005 4:57 am
Forum: PHP - Code
Topic: array that organises query output in sequences..
Replies: 5
Views: 1076

all I want is to a type of recordset that display the first output in the first table first cell, the second output in the first table second cell. and the remaining result to be displayed inthe second table which has only one cell. the random ranking functionality has been achieved using this code:...
by paulng
Thu Dec 08, 2005 4:23 am
Forum: Databases
Topic: No Null value in database
Replies: 1
Views: 269

No Null value in database

Hi there! I have set up a default No Null value in one of my table to stop users submitting an empty records but the No null value is not working. Users are still able to submit an empty record, Im trying avoid writing a validation script in the front end and validate the input from the database. FY...
by paulng
Tue Dec 06, 2005 10:14 am
Forum: PHP - Code
Topic: array that organises query output in sequences..
Replies: 5
Views: 1076

pickle, Thanks for your reply, but I figured you didnt understand my question, I posted a question for help for a query that was displying it output as well as ranking them (e.g 1 to 10). let say if item1 is ranked 2 item2 is ranked 5 and item6 is ranked 5 item7 is ranked 2 this will output : item 1...
by paulng
Tue Dec 06, 2005 5:57 am
Forum: PHP - Code
Topic: array that organises query output in sequences..
Replies: 5
Views: 1076

array that organises query output in sequences..

with reference fo the following topic: display database record at random and ranking then by order. http://forums.devnetwork.net/viewtopic.php?t=35433&highlight= I have two tables and I would like to display the output of the code reffered in the topic above as shown in the table below. Here is ...
by paulng
Fri Nov 25, 2005 4:00 am
Forum: PHP - Code
Topic: Javascript alert box with PHP once per browser session
Replies: 6
Views: 1125

I've tried...still give the same problem let me try to explain everything again here is my index file <?php if (!$_COOKIE['visited']) { $show = 1; setcookie("visited", "true"); } ?> <?php include("head.php"); ?> <!---------------- end : head --> <body <?php if ($LANG ==...
by paulng
Thu Nov 24, 2005 11:05 am
Forum: PHP - Code
Topic: Javascript alert box with PHP once per browser session
Replies: 6
Views: 1125

Yep the onload event is in the source, but still no effect... :?
by paulng
Thu Nov 24, 2005 9:58 am
Forum: PHP - Code
Topic: Javascript alert box with PHP once per browser session
Replies: 6
Views: 1125

I've tried what you said but it's not working, is not producing any error at the same time the alert message session cookie is not displaying per browser session.