soak
Members-
Posts
219 -
Joined
-
Last visited
Never
Everything posted by soak
-
If you don't need particularly fine grained permissions then Joomla will probably suit your needs quite well. To be honest from that spec they probably all will.
-
Which one fits your needs the most? It's a very difficult question to answer, especially so when you provide no information on what you want to use it for. What are your requirements?
-
Would it be possible to use the $_SESSION var or would it not be guaranteed to be set by the time the iframe was called??
-
You're calling findcity.php but you indicate your file is called findCity.php. If you're on Windows this will be fine but not on nix. There's nothing obvious wrong with your javascript. What happens if you view findcity.php?id=1 in your browser?
-
change content of div with menu located in another div
soak replied to DJ Zen Masta K's topic in PHP Coding Help
You really ought to validate here. If you implement that you're effectively giving an attacker full access to your server. if (isset($_GET['page']) && preg_match('!^story[0-9]+\.html$!', $_GET['page'])) { include($_GET['page']); } else { echo "select a story"; } -
SELECT CASE `field` WHEN '' THEN 'Value' ELSE IFNULL( `field` , 'Value' ) END FROM `table`
-
You talking about cookies or a file on their c: drive?
-
Difficulty inserting checkbox array values into DB
soak replied to TecTao's topic in PHP Coding Help
So where does insert_skills() get called? -
Difficulty inserting checkbox array values into DB
soak replied to TecTao's topic in PHP Coding Help
Where's teh code that sets $skills -
Beat me to it nankoweap Ahhh, apologies, don't know how I missed those. You could use a case.
-
exactly as typed: SELECT masterdataid, IFNULL(resultsnotations.prospectrating, 'Not Rated') AS prospectratingch, IFNULL(resultsnotations.lastactivity, 'Loaded') AS lastactivity FROM resultsnotations WHERE masterdataid = '339' and (prospectrating is null OR prospectrating = '') ORDER BY resultsnotations.lastactivity DESC
-
and (prospectrating is null OR prospectrating = '') That what you mean?
-
[SOLVED] ordering a fetch array with specific row at the top
soak replied to AdRock's topic in PHP Coding Help
Good call, didn't realise you could do that. -
[SOLVED] ordering a fetch array with specific row at the top
soak replied to AdRock's topic in PHP Coding Help
You can order by more than one thing at once. Order by sticky first and date second. -
Select all of your fields in one go and loop through them. See mysql_fetch_assoc
-
[SOLVED] ordering a fetch array with specific row at the top
soak replied to AdRock's topic in PHP Coding Help
Not with that query you can't. You need a flag in the topics table to indicate if it is a rule or not (TINYINT will do, 1 or 0, suggest you call it topic_type or similar and you leave room for expanding it later to add stickies etc) . Then just ORDER BY topic_type, tm.last_msg_date DESC Not sure offhand if you need ASC or DESC on the topic_type. If you store last_post_id in the topics table it would be better to order by that than the last_msg_date (assuming you move any relevant indexes). -
<?php $fieldValue = mysql_result(mysql_db_query($db_name, "SELECT p1G6 FROM Students WHERE teacherid='$data[login]' AND ID=0 "),0); ?> <input value="<?= $fieldValue ?>" name="p1G6" id="p1G6" type="text" onblur="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('p1G6')" onkeyup="testform(this)" maxlength="1" tabindex="4" style=' width:100%; <?php if ( $fieldValue < 3 ) { echo "border: 1px red solid;"; }; ?> ' class='ee142'>
-
easy - cant figure out how to put a url in the database without error
soak replied to jwk811's topic in PHP Coding Help
try: $thumbnail = mysql_real_escape_string("http://www.sportquadchat.com/images/avatars/" . $thumbnail); -
I don't think you need to unless you're populating it in javascript. Can you show us a bit more code please?
-
[SOLVED] ordering a fetch array with specific row at the top
soak replied to AdRock's topic in PHP Coding Help
What does your SQL look like to select the rules and the normal data? -
selecting and rewriting certain lines from all files
soak replied to almightyegg's topic in PHP Coding Help
Can you even do that with a doctype declaration? a) yes b) If you're confident they'll be EXACTLY that then str_replace else preg_replace -
Difficulty inserting checkbox array values into DB
soak replied to TecTao's topic in PHP Coding Help
All looks reasonable. What does a var_dump of $arr look like before you foreach it in create_checkbox_query. Also, what does the query ($q) look like? -
Can you show us some code?